/* Our stack: introduction; 01 technology (five layer rows); 02 the main project (three delivery options);
 * 03 the operating model (five steps); 04 proof of concept (dark closing section).
 * Sections have 80 px above and below (56 px on phones; the introduction 56 px
 * below) and end in a 1 px ink rule; content blocks are 40 px apart, a section's label, title and text 24 px.
 */
.stack-section { padding-block: 80px; box-shadow: inset 0 -1px 0 var(--ink); }
.stack-intro { padding-bottom: 56px; }
.stack-flow { display: flex; flex-direction: column; gap: 40px; }
.stack-head { display: flex; flex-direction: column; gap: 24px; }
.stack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Section titles on this page wrap "pretty", not balanced as base.css sets them. */
.stack-section .t-h2 { text-wrap: pretty; }
/* Text blocks clip at their edges, as in the original design, where a glyph's anti-aliasing past a box at a
 * fractional x (the middle option card) or a descender left of the edge is cut off. Only containers without
 * buttons, so focus rings are never clipped. */
.stack-head, .stack-intro__text, .stack-intro__card, .layer__text, .option__head, .option__fact, .step, .poc__point { overflow: clip; }

/* introduction: text and card side by side, bottoms aligned; the text takes 1.7 parts, the card 1 */
.stack-intro__row { display: flex; align-items: flex-end; gap: 56px; }
.stack-intro__text { flex: 1.7 0 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.stack-intro__card { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 24px; box-shadow: inset 0 0 0 1px var(--ink); }

/* 01 technology: rows with a number column, a rule under each row */
.layers { display: flex; flex-direction: column; box-shadow: inset 0 -1px 0 var(--ink); }
.layer { display: flex; gap: 24px; padding: 24px; box-shadow: inset 0 -1px 0 var(--ink); }
.layer__number { flex: none; }
.layer__text { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* 02 the main project: three option cards; label/value facts separated by rules */
.options { display: grid; grid-template-columns: repeat(3, minmax(50px, 1fr)); gap: 24px; }
.option { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink); }
.option__head { display: flex; flex-direction: column; gap: 24px; min-height: 180px; }
.option__facts { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.option__fact { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--ink); }
.option__fact dd { margin: 0; }

/* closing line of a section: text, then a button */
.stack-cta { display: flex; align-items: center; gap: 24px; }
.stack-cta > p { flex: 1 0 0; min-width: 0; }

/* 03 the operating model: five step cards */
.steps { display: grid; grid-template-columns: repeat(5, minmax(50px, 1fr)); gap: 12px; }
.step { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }

/* 04 proof of concept: introduction beside three points, each above a white rule */
.poc { display: flex; gap: 56px; }
.poc__intro { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.poc__intro .btn { align-self: flex-start; }
.poc__points { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.poc__point { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; box-shadow: inset 0 -1px 0 var(--white); }

@media (max-width: 1199.98px) {
  .stack-intro__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .stack-intro__text, .stack-intro__card { flex: none; }
  .options { display: flex; flex-direction: column; }
  .option__head { min-height: 0; }
  .steps { display: flex; flex-direction: column; gap: 24px; }
  .stack-cta--stories { flex-direction: column; align-items: stretch; gap: 40px; }
  .stack-cta--stories > p { flex: none; }
  .poc { flex-direction: column; gap: 40px; }
  .poc__intro, .poc__points { flex: none; }
}
@media (max-width: 809.98px) {
  .stack-section { padding-block: 56px; }
  .stack-actions--intro { flex-direction: column; align-items: flex-start; }
  .stack-cta--choose { flex-direction: column; align-items: flex-start; }
  .stack-cta--choose > p { flex: none; align-self: stretch; }
}
