/* Home: the opening screen over the plant video, five content sections, the dark call to action.
 * Layout breakpoints as in base.css:
 * desktop >= 1200, tablet 810-1199, phone < 810. Borders are inset box-shadows, so boxes keep their size.
 * overflow: clip is set where the original design clips (it trims glyphs that start on a fractional pixel edge).
 */
html { scroll-behavior: smooth; }

/* ---------- opening screen ---------- */
.hero { position: relative; overflow: clip; }
.hero__video, .hero__wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; object-position: 50% 50%; filter: grayscale(1); }
.hero__wash { background: var(--paper); opacity: 0.79; }
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 740px; }
.hero__content { flex: 1 1 auto; min-width: 0; overflow: clip; display: flex; flex-direction: column; gap: 24px; padding-block: 56px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }

/* ---------- sections ---------- */
.home-section { scroll-margin-top: 24px; }
.home-section__inner { display: flex; flex-direction: column; gap: 40px; }
.home-intro { display: flex; flex-direction: column; gap: 24px; overflow: clip; }
.home-intro--narrow { max-width: 920px; }

/* cards: paper with a 1 px line border; three per row on desktop, rows as tall as the tallest card */
.card { overflow: clip; display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.benefits, .card-grid { overflow: clip; display: grid; grid-template-columns: repeat(3, minmax(50px, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 24px; }
.benefit__figure { overflow: clip; display: flex; flex-direction: column; gap: 8px; }

.ownership { overflow: clip; display: flex; align-items: center; gap: 40px; }
.ownership > .t-body { flex: 1 1 0; min-width: 0; }

/* ---------- customer projects ---------- */
.stories { overflow: clip; display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 24px; }
.story { align-self: start; overflow: clip; display: flex; flex-direction: column; gap: 32px; min-height: 320px; padding: 32px; border-radius: 4px; background: var(--ink); color: var(--white); }
.story__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.story__head > .t-h3 { align-self: stretch; }
.story__logo { height: 32px; width: auto; max-width: 100%; object-fit: cover; }
.story__logo--brokertrust { aspect-ratio: 800 / 175; }
.story__logo--fingera { aspect-ratio: 520 / 92; }
.story__metrics { overflow: clip; display: flex; gap: 24px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--white); }
.story__metric { flex: 1 1 0; overflow: clip; display: flex; flex-direction: column; gap: 12px; }
.story__metric:first-child { flex-grow: 1.3; }
.stories-action { overflow: clip; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.stories-action > .t-small { flex: 1 1 0; min-width: 0; }

/* ---------- evidence ladder ---------- */
.ladder { overflow: clip; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 var(--ink); }
.ladder__step { overflow: clip; display: flex; align-items: flex-start; gap: 24px; padding: 24px; box-shadow: inset 0 -1px 0 var(--ink); }
.ladder__num { flex: none; }
.ladder__body { flex: 1 1 0; min-width: 0; overflow: clip; display: flex; flex-direction: column; gap: 12px; }

/* ---------- talk to an expert ---------- */
.invite { overflow: clip; display: flex; align-items: flex-start; gap: 56px; }
.invite__copy { flex: 1.3 1 0; overflow: clip; display: flex; flex-direction: column; gap: 24px; }
.invite__actions { overflow: clip; display: flex; align-items: flex-start; gap: 12px; }
.topics { flex: 1 1 0; overflow: clip; display: flex; flex-direction: column; gap: 24px; padding: 24px; box-shadow: inset 0 0 0 1px var(--white); }
.topics__list { display: flex; flex-direction: column; gap: 24px; }
.topics__item { overflow: clip; display: flex; align-items: flex-start; gap: 24px; }
.topics__item > .t-eyebrow { flex: none; }
.topics__text { flex: 1 1 0; min-width: 0; }

/* ---------- tablet ---------- */
@media (max-width: 1199.98px) {
  .hero__inner { min-height: 680px; }
  .hero__content { padding-block: 48px; }
  .benefits, .card-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .ownership { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ownership > .t-body { flex: none; align-self: stretch; }
  .story { padding: 24px; }
  .invite { flex-direction: column; align-items: stretch; gap: 32px; }
  .invite__copy, .topics { flex: none; }
}

/* ---------- phone ---------- */
@media (max-width: 809.98px) {
  .hero__inner { min-height: 0; }
  .hero__content { padding-block: 48px 40px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
  .stories-action { flex-direction: column; align-items: flex-start; }
  .stories-action > .t-small { flex: none; align-self: stretch; }
  .ladder__step { padding-inline: 0; gap: 16px; }
}
