/* =============================================================================
   page-sections.css — reusable blocks for the Page Sections builder.

   These render from group_siegel_industries layouts, so any page on the
   Industries template can use them. Nodes are from About Us 153:11191, which
   is where they were drawn first.

   525:16685  strength_stats         heading + body + icon row
   525:16864  quality_hover          image + hover list
   525:17063  sustainability_scroll  sticky image + scrolling text
   153:12166  open_positions         sticky heading + list

   Siegel Assured 153:5590 adds three more; see the block at the foot of this
   file for 528:17638 pillar_cards, 528:18036 solutions_grid, 528:18552
   stack_cards.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Strength / stats — 525:16685 (1440×549)
      Container x=40 y=128, 1360 wide. Heading 751 | paragraph 585 on one row,
      icon row 176 below with five equal 272 columns.
   --------------------------------------------------------------------------- */

.strength {
	padding-block: 128px 96px;
}

.strength__inner {
	max-width: var(--content-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.strength__intro {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.strength__heading {
	flex: 0 1 751px;
	margin: 0;
	color: var(--text-heading-primary);
}

.strength__body {
	flex: 0 1 585px;
	margin: 0;
	color: var(--text-body-primary);
}

.strength__body p { margin: 0 0 12px; }
.strength__body p:last-child { margin-bottom: 0; }

/* Five equal columns; each icon is centred over its caption. */
.strength__icons {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.strength__icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 12px 0;
	text-align: center;
}

.strength__icon {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
}

.strength__icon-text {
	margin: 0;
	color: var(--text-body-primary);
	max-width: 220px;
}

/* ---------------------------------------------------------------------------
   2. Quality hover — 525:16864 (1440×856)
      Header centred at 876 (intro 750), row at y=335: image flex-1 radius 10,
      right column 688 with 64 left padding. Every item stays open; the red
      marker slides between them.
   --------------------------------------------------------------------------- */

.qhover {
	padding-block: 96px;
	overflow: hidden;
}

.qhover__header {
	/* The drawn frame is 876. Aktiv sets this heading fractionally wider than
	   Figma renders it, so the box is given the room the single line actually
	   needs rather than wrapping it — the intro keeps the drawn 750. */
	max-width: min(1100px, 100% - 2 * var(--gutter));
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.qhover__heading {
	margin: 0;
	color: var(--text-heading-primary);
	text-wrap: balance;
}

.qhover__intro {
	margin: 0 auto;
	max-width: 750px;
	color: var(--text-body-primary);
}

.qhover__inner {
	max-width: var(--content-w);
	margin: 80px auto 0;
	padding-inline: var(--gutter);
	box-sizing: content-box;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

/* Images stack and cross-fade. Radius 10 is this component's own, not --r-sm. */
.qhover__media {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	aspect-ratio: 672 / 425;
	overflow: hidden;
	border-radius: 10px;
	background: var(--fig-neutral-50);
}

.qhover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity var(--dur-base) ease-out;
}

.qhover__img.is-active { opacity: 1; }

.qhover__list-wrap {
	position: relative;
	flex: 0 0 688px;
	box-sizing: border-box;
	padding-left: 64px;
}

/* The marker. One element that slides, rather than a border switching on each
   item — a per-item border can only appear and disappear, it cannot travel. */
.qhover__bar {
	position: absolute;
	left: 64px;
	top: 0;
	width: 3px;
	height: var(--bar-h, 0);
	background: var(--fig-red-600);
	transform: translateY(var(--bar-y, 0));
	transition: transform var(--dur-base) ease-out, height var(--dur-base) ease-out;
	pointer-events: none;
	z-index: 1;
}

.qhover__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Items butt against each other, so their 2px borders read as one track for
   the marker to run along. */
.qhover__item {
	border-left: 2px solid var(--fig-neutral-100);
	padding: 16px 0 24px 24px;
}

.qhover__trigger {
	display: block;
	width: 100%;
	padding: 0 0 16px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: rgba(51, 51, 51, .5);
	transition: color var(--dur-base) ease-out;
}

.qhover__item.is-active .qhover__trigger {
	color: var(--text-heading-primary);
}

.qhover__trigger:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 4px;
}

.qhover__title { display: block; }

/* Desktop keeps every panel open — the accordion only exists on mobile. */
.qhover__panel,
.sustain__panel {
	display: grid;
	grid-template-rows: 1fr;
}

.qhover__panel-inner,
.sustain__panel-inner { min-height: 0; }

/* The +/- marker belongs to the mobile accordion only. */
.pshow-icon { display: none; }

.qhover__body { color: var(--text-body-primary); }
.qhover__body p { margin: 0 0 12px; }
.qhover__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   3. Sustainability scroll — 525:17063 (1440×1812)
      Header at y=96 (835 wide), row at y=306. 672 image column pins; the 624
      text column scrolls past it. Blocks butt together with 80 of padding each
      — 160 between them — inside a column padded 203.7 top and bottom.
   --------------------------------------------------------------------------- */

.sustain {
	padding-block: 96px 48px;
}

.sustain__header {
	max-width: 835px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: border-box;
	text-align: center;
}

.sustain__heading {
	margin: 0;
	color: var(--text-heading-primary);
}

/* align-items must stay stretch here. With flex-start the media column shrinks
   to the image's own height, and a sticky child has no room to travel inside a
   box that is exactly its own size — the image scrolled away instead of
   pinning. Stretch makes the column as tall as the text beside it. */
.sustain__inner {
	max-width: var(--content-w);
	margin: 80px auto 0;
	padding-inline: var(--gutter);
	box-sizing: content-box;
	display: flex;
	align-items: stretch;
	gap: 64px;
}

.sustain__media-col {
	flex: 0 0 672px;
}

/* The pin. Nothing in JS moves this — sticky does the whole job, so there is
   no per-frame work and no chance of the image lagging the scroll. */
.sustain__media {
	position: sticky;
	top: calc(var(--header-h) - 20px);
	aspect-ratio: 672 / 679;
	overflow: hidden;
	border-radius: 10px;
	background: var(--fig-neutral-50);
	max-height: calc(100vh - 72px - 6rem);
    margin: auto;
}

.sustain__img {
	position: absolute;
    inset: 0;
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--dur-base) ease-out;
    aspect-ratio: 672 / 679;
    margin: auto;
}

.sustain__img.is-active { opacity: 1; }

.sustain__text-col {
	flex: 1 1 624px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	/* 525:17072 — the column's own padding. It doubles as the room the first
	   and last blocks need to reach the middle of the viewport, where the
	   active band sits. */
	padding-block: 204px;
}

/* Blocks butt against each other; the space between them is their own padding,
   80 each side, so a gap here would add to it rather than replace it. */
.sustain__block {
	padding: 80px 0 80px 24px;
	opacity: .35;
	transition: opacity var(--dur-base) ease-out;
}

.sustain__block.is-active { opacity: 1; }

/* Summary pb-16 plus the details gap of 8. */
.sustain__title {
	margin: 0 0 24px;
	color: var(--text-heading-primary);
}

/* On desktop the trigger is just the heading — no affordance, nothing to
   toggle. It becomes a real control at the mobile breakpoint. */
.sustain__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: default;
}

.sustain__trigger:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 4px;
}

.sustain__body { color: var(--text-body-primary); }
.sustain__body p { margin: 0 0 12px; }
.sustain__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   4. Open positions — 153:12166 (1440×640)
      py-96, container px-40, two flex-1 columns gap-64 (648 each at 1440).
      Posts 32 apart, each with a rule above it and 24 of padding under it.
   --------------------------------------------------------------------------- */

.positions {
	padding-block: 96px;
}

.positions__inner {
	max-width: var(--content-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

/* Equal halves, not a fixed left column — 1360 less the 64 gap, split. */
.positions__intro {
	flex: 1 1 0;
	min-width: 0;
	position: sticky;
	top: calc(var(--header-h) + 40px);
}

.positions__heading {
	margin: 0 0 20px;
	color: var(--text-heading-primary);
}

.positions__body {
	margin: 0;
	color: var(--text-body-primary);
}

.positions__list {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* The rule sits above each post, including the first — it separates the post
   from the heading row, it is not a divider between pairs. */
.positions__item {
	border-top: 1px solid var(--fig-neutral-50);
	padding-top: 24px;
}

.positions__title {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 8px;
	color: var(--text-heading-primary);
}

.positions__link {
	color: inherit;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.positions__link:hover { text-decoration: underline; }
}

.positions__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 10px 2px 8px;
	border-radius: var(--r-sm);
	background: var(--fig-red-100);
	color: var(--badge-primary);
	mix-blend-mode: multiply;
}

.positions__desc {
	margin: 0 0 24px;
	color: var(--text-body-primary);
}

/* Aktiv Regular 16/24 here, not the body face. */
.positions__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	font: var(--fw-regular) 1rem/1.5rem var(--font-heading);
	color: var(--text-body-primary);
}

.positions__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.positions__meta-icon {
	flex-shrink: 0;
	color: var(--text-body-primary);
}

/* ---------------------------------------------------------------------------
   5. Responsive
      1440 and 393 are drawn; everything between is fluid, no new decisions.
      About Us Mobile is 164:7378 — 16 gutters, headings at Mobile/H2 32/34,
      a 2-up icon row, and NO image in either the quality or the sustainability
      section: both are text-only on a phone.
   --------------------------------------------------------------------------- */

@media (max-width: 1439px) {
	.sustain__media-col { flex: 0 1 55%; }
	.sustain__text-col { flex: 1 1 45%; }
	/* The right column keeps its 64 offset but gives up the fixed 688. */
	.qhover__list-wrap { flex: 0 1 52%; }
}

@media (max-width: 1023px) {
	.strength__intro {
		flex-direction: column;
		gap: 24px;
	}

	/* The desktop basis is a WIDTH on a row; once the column stacks the same
	   value becomes a height and left a 751px void under the heading. */
	.strength__heading,
	.strength__body {
		flex: none;
	}

	.strength__icons {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 24px;
	}

	.qhover__inner,
	.sustain__inner,
	.positions__inner {
		flex-direction: column;
		gap: 40px;
	}

	.qhover__media,
	.qhover__list-wrap,
	.sustain__media-col,
	.sustain__text-col,
	.positions__intro,
	.positions__list {
		flex: none;
		width: 100%;
	}

	/* Nothing to pin against once the columns stack. */
	.sustain__media,
	.positions__intro {
		position: static;
	}

	.sustain__text-col {
		padding-block: 0;
	}

	.sustain__block {
		padding: 32px 0;
	}

	/* With the image above the text there is no pairing left to imply, so
	   every block reads at full contrast. */
	.sustain__block { opacity: 1; }

	/* Stacked: the 64 indent and the marker's offset go with it. */
	.qhover__list-wrap { padding-left: 0; }
	.qhover__bar { left: 0; }
	.qhover__media { aspect-ratio: 672 / 425; }
}

/* ── About Us Mobile 164:7378 ─────────────────────────────────────────────── */
/*
   Quality (164:8068) and Sustainability (164:8161) are a different component at
   this width: no image, a centred header, and a plus/minus accordion with a
   rule above each row and only one row open. Not the desktop hover list at a
   narrower width — the marker, the faded titles and the always-open panels all
   belong to the wide layout only.
*/

@media (max-width: 767px) {
	.strength__heading,
	.qhover__heading,
	.sustain__heading,
	.positions__heading {
		font: var(--fw-bold) 2rem/2.125rem var(--font-heading);
		letter-spacing: var(--ls-tight);
	}

	/* 164:7380 — container at y=48, icon row butted to it, 32 below. */
	.strength {
		padding-block: 48px 32px;
	}

	.strength__intro {
		flex-direction: column;
		gap: 24px;
	}

	/* The desktop basis is a WIDTH on a row; once the column stacks the same
	   value becomes a height and left a 751px void under the heading. */
	.strength__heading,
	.strength__body {
		flex: none;
	}

	/* 554:9472 — two columns of 180.5, each 160 tall. */
	.strength__icons {
		grid-template-columns: repeat(2, 1fr);
		margin-top: 0;
		row-gap: 0;
	}

	.strength__icon-item {
		gap: 12px;
		padding: 24px 12px 0;
	}

	.strength__icon-text {
		max-width: 156.5px;
	}

	/* ── Quality + Sustainability as an accordion ─────────────────────────── */

	.qhover,
	.sustain {
		padding-block: 32px;
	}

	/* Text only — neither section draws an image at this width. */
	.qhover__media,
	.sustain__media-col {
		display: none;
	}

	.qhover__header,
	.sustain__header {
		max-width: none;
		gap: 24px;
	}

	.qhover__intro {
		margin-inline: 0;
		max-width: none;
	}

	.qhover__inner,
	.sustain__inner {
		display: block;
		margin-top: 24px;
		padding-inline: var(--gutter);
	}

	.qhover__list-wrap {
		padding-left: 0;
	}

	/* The marker is a wide-layout device; rows carry a rule instead. */
	.qhover__bar {
		display: none;
	}

	.qhover__item,
	.sustain__block {
		border-left: 0;
		border-top: 1px solid var(--fig-neutral-100);
		padding: 24px 0;
		opacity: 1;
	}

	.qhover__trigger,
	.sustain__trigger {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		padding: 0;
		cursor: pointer;
		/* Titles are full strength here — the 50% state belongs to the hover
		   list, where it marks what is not selected. Nothing is unselected in
		   an accordion. */
		color: var(--text-heading-primary);
	}

	/* Both titles drop to Mobile/H3 22/24. */
	.qhover__title,
	.sustain__title-text {
		font: var(--fw-bold) 1.375rem/1.5rem var(--font-heading);
		letter-spacing: var(--ls-tight);
	}

	.sustain__title {
		margin: 0;
	}

	.pshow-icon {
		position: relative;
		display: block;
		flex-shrink: 0;
		width: 20px;
		height: 20px;
		color: var(--fig-red-600);
	}

	.pshow-icon__plus,
	.pshow-icon__minus {
		position: absolute;
		inset: 0;
		transition: opacity var(--dur-fast) linear;
	}

	.pshow-icon__minus,
	[aria-expanded="true"] .pshow-icon__plus { opacity: 0; }
	[aria-expanded="true"] .pshow-icon__minus { opacity: 1; }

	.qhover__panel,
	.sustain__panel {
		grid-template-rows: 0fr;
		overflow: hidden;
		transition: grid-template-rows var(--dur-base) ease-out;
	}

	.qhover__panel[data-open],
	.sustain__panel[data-open] {
		grid-template-rows: 1fr;
	}

	.qhover__panel-inner,
	.sustain__panel-inner {
		overflow: hidden;
	}

	/* Inside the clipped box so a 0fr row can still collapse to nothing. */
	.qhover__body > :first-child,
	.sustain__body > :first-child {
		margin-top: 24px;
	}

	.sustain__text-col {
		padding-block: 0;
	}

	/* ── Positions ────────────────────────────────────────────────────────── */

	.positions {
		padding-block: 32px;
	}

	.positions__inner {
		gap: 32px;
	}

	/* The badge sits under the title on a phone, not beside it. */
	.positions__title {
		display: block;
	}

	.positions__tag {
		margin-top: 8px;
	}

	.positions__meta {
		flex-wrap: wrap;
		gap: 12px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qhover__img,
	.qhover__bar,
	.qhover__trigger,
	.sustain__img,
	.sustain__block {
		transition: none;
	}
}


/* =============================================================================
   Siegel Assured blocks — 153:5590 (1440) / 153:7155 (393).

   528:17638   pillar_cards    heading + body + red pillar cards
   528:18036   solutions_grid  heading + body + image, then a 2-col icon grid
   528:18392 +
   528:18552   stack_cards     centred heading, then cards that stack on scroll
   ============================================================================= */

/* ---------------------------------------------------------------------------
   5. Pillar cards — 528:17638 (1440×686)
      Container x=40 y=128, 1360 wide. Heading 586 | paragraph 750 with a 24
      gap, card row 48 below: three 434.667 columns, 28 gap, 272 tall.
   --------------------------------------------------------------------------- */

.pillars {
	padding-block: 128px 96px;
}

.pillars__inner {
	max-width: var(--content-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.pillars__intro {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.pillars__heading {
	flex: 0 0 586px;
	margin: 0;
	color: var(--text-heading-primary);
}

.pillars__body {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--text-body-primary);
}

.pillars__body > :first-child { margin-top: 0; }
.pillars__body > :last-child  { margin-bottom: 0; }

.pillars__cards {
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Siegel red, radius sm, white type throughout — 528:17149. */
.pillars__card {
	box-sizing: border-box;
	min-height: 272px;
	padding: 32px;
	background: var(--fig-red-600);
	border-radius: var(--r-sm);
	color: var(--fig-siegel-white);
}

.pillars__icon {
	display: block;
	width: 48px;
	height: 48px;
}

/* Icon at y=32, title at y=152 — the gap is 72, not a spacing-scale value. */
.pillars__card-title {
	margin: 72px 0 0;
	color: inherit;
}

.pillars__card-body {
	margin: 12px 0 0;
	color: inherit;
}

/* ---------------------------------------------------------------------------
   6. Solutions grid — 528:18036 (1440×1283)
      Text 599 | image 761 across 1360, 661 tall. Icon grid 48 below: two 656
      columns, 48 gap, 191-tall rows ruled along the top.
   --------------------------------------------------------------------------- */

.solgrid {
	padding-block: 96px;
}

.solgrid__inner {
	max-width: var(--content-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.solgrid__top {
	display: flex;
	align-items: stretch;
}

.solgrid__text {
	box-sizing: border-box;
	flex: 0 0 599px;
	padding-right: 24px;
}

.solgrid__heading {
	margin: 0;
	color: var(--text-heading-primary);
}

/* The paragraph is drawn at 476 inside the 599 column, not full width. */
.solgrid__body {
	margin: 24px 0 0;
	max-width: 476px;
	color: var(--text-body-primary);
}

.solgrid__body > :first-child { margin-top: 0; }
.solgrid__body > :last-child  { margin-bottom: 0; }

.solgrid__media {
	flex: 1 1 auto;
	min-width: 0;
	aspect-ratio: 761 / 661;
	border-radius: var(--r-sm);
	overflow: hidden;
}

/* A labelled diagram, not a photograph — cropping it would cut the labels off,
   so it is contained rather than covered. */
.solgrid__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.solgrid__list {
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	/* Column-major: 528:18155 holds items 1 and 2, 528:18156 items 3 and 4. The
	   items are authored in mobile reading order (top to bottom of the single
	   column), and this reflows them down each desktop column instead of across
	   the row. */
	grid-auto-flow: column;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, auto);
	column-gap: 48px;
	row-gap: 0;
}

/* Rows butt at 191, each ruled along its top edge — the rule doubles as the
   grid's own top edge, which is how 528:18170 draws it. */
.solgrid__item {
	box-sizing: border-box;
	min-height: 191px;
	padding-top: 24px;
	border-top: 1px solid var(--fig-neutral-50);
}

.solgrid__icon {
	display: block;
	width: 32px;
	height: 32px;
}

.solgrid__item-title {
	margin: 24px 0 0;
	color: var(--text-heading-primary);
}

.solgrid__item-body {
	margin: 8px 0 0;
	color: var(--text-body-primary);
}

/* ---------------------------------------------------------------------------
   7. Stack cards — 528:18392 heading (1440×160) + 528:18552 stack (1192×1348)
      Cards 1192×388 inset 124 either side, 32 apart, image 596 | red panel 596.

      Sticky positioning supplies the no-JS fallback. With JS, cards land 20px
      apart and earlier cards scale down as the next card approaches.
   --------------------------------------------------------------------------- */

.stackcards {
	padding-block: 96px 0;
}

.stackcards__header {
	max-width: var(--content-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
	text-align: center;
}

.stackcards__heading {
	margin: 0;
	color: var(--text-heading-primary);
	text-wrap: balance;
}

/* 1192 content + 40 gutters = 1272 at 1440, which lands the card edges on the
   drawn x=124. Narrower viewports keep the gutter and lose the inset. */
.stackcards__stack {
	position: relative;
	max-width: 1192px;
	margin-inline: auto;
	padding: 120px var(--gutter) 0;
	box-sizing: content-box;
}

.stackcards__card {
	position: sticky;
	top: calc(var(--header-h) + 40px);
	display: flex;
	min-height: 388px;
	background: var(--fig-red-600);
	border-radius: var(--r-sm);
	/* Opaque all the way across, or the covered card shows through the join. */
	overflow: hidden;
}

/* The enhanced state is added only after the scroll geometry is ready. Keeping
   these rules behind a class preserves the original sticky overlap when JS is
   unavailable. Each landed card sits 20px below the previous one; JavaScript
   writes --stack-scale continuously as the following card approaches. */
.stackcards.is-stackcards-enhanced .stackcards__card {
	top: calc(var(--header-h) + 40px + var(--stack-offset, 0px));
	z-index: calc(var(--card-i) + 1);
	transform: scale(var(--stack-scale, 1));
	transform-origin: top center;
	will-change: transform;
}

.stackcards__card + .stackcards__card {
	margin-top: 32px;
}

/* The image is taken out of flow inside its half so its intrinsic height cannot
   set the card's — a 1724×1514 photograph at 596 wide is 524 tall and would
   push every card 136 past the drawn 388. */
.stackcards__media {
	position: relative;
	flex: 0 0 50%;
	align-self: stretch;
}

.stackcards__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stackcards__panel {
	box-sizing: border-box;
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	align-items: center;
	padding: 32px;
}

.stackcards__panel-inner {
	max-width: 532px;
}

.stackcards__title {
	margin: 0;
	color: var(--fig-siegel-white);
}

.stackcards__body {
	margin: 12px 0 0;
	color: var(--fig-siegel-white);
}

/* ---------------------------------------------------------------------------
   8. Assured mobile — 153:7460 / 153:7778 / 153:10943 / 153:7584.
      Placed after the shared mobile block above so the qhover overrides win.
   --------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.pillars__heading,
	.solgrid__heading,
	.stackcards__heading {
		font: var(--fw-bold) 2rem/2.125rem var(--font-heading);
		letter-spacing: var(--ls-tight);
	}

	.pillars__card-title,
	.solgrid__item-title,
	.stackcards__title {
		font: var(--fw-bold) 1.375rem/1.5rem var(--font-heading);
		letter-spacing: var(--ls-tight);
	}

	/* -- Pillar cards — 153:7460 ------------------------------------------- */

	.pillars {
		padding-block: 48px 32px;
	}

	.pillars__intro {
		flex-direction: column;
		gap: 24px;
	}

	/* The desktop basis is a WIDTH on a row; once stacked the same value would
	   become a height and leave a 586px void under the heading. */
	.pillars__heading,
	.pillars__body {
		flex: none;
	}

	.pillars__cards {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 24px;
	}

	.pillars__card {
		min-height: 185px;
	}

	.pillars__icon {
		width: 32px;
		height: 32px;
	}

	.pillars__card-title {
		margin-top: 12px;
	}

	/* -- Solutions grid — 153:7778 ----------------------------------------- */

	.solgrid {
		padding-block: 32px;
	}

	.solgrid__top {
		flex-direction: column;
	}

	.solgrid__text {
		flex: none;
		padding-right: 0;
	}

	.solgrid__body {
		max-width: none;
	}

	.solgrid__media {
		flex: none;
		margin-top: 24px;
		aspect-ratio: 361 / 319;
	}

	.solgrid__list {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-template-rows: none;
		margin-top: 24px;
	}

	.solgrid__item {
		min-height: 0;
		padding-bottom: 24px;
	}

	.solgrid__item-title {
		margin-top: 12px;
	}

	/* -- Stack cards — 153:10943: no images, no pinning, 12 apart ---------- */

	.stackcards {
		padding-block: 32px 0;
	}

	/* 153:10946 keeps this centred — the heading text node is the full 361 and
	   the render sets it 57 in from either edge. Only the quality-hover header
	   goes left-aligned on Assured's mobile frames. */

	.stackcards__stack {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.stackcards__card {
		position: static;
		min-height: 0;
		transform: none;
	}

	.stackcards__card + .stackcards__card {
		margin-top: 12px;
	}

	.stackcards__media {
		display: none;
	}

	/* -- Quality hover, Assured variant — 153:7584 / 554:9747 -------------- */

	/* Left-aligned header and the active item's image kept below the list,
	   rather than the centred, image-less About treatment. */
	.qhover--m-media .qhover__header {
		text-align: left;
	}

	.qhover--m-media .qhover__inner {
		display: flex;
		flex-direction: column;
	}

	.qhover--m-media .qhover__list-wrap {
		order: 1;
	}

	.qhover--m-media .qhover__media {
		display: block;
		order: 2;
		margin-top: 24px;
		aspect-ratio: 361 / 250;
	}
}

/* Sticky is layout rather than animation, but the stack still reads as motion
   the reader did not ask for — unpin it and the cards simply follow each other
   down the page. */
@media (prefers-reduced-motion: reduce) {
	.stackcards__card {
		position: static;
		transform: none;
		will-change: auto;
	}
}
