/* The reading order is heading, sample, consultation, then detail. */
.hero.section-wrap {
  grid-template-rows: 1fr auto 1fr;
  column-gap: 45px;
  row-gap: 0;
  align-items: start;
}
.hero-heading { grid-column: 1; grid-row: 1; align-self: end; }
.hero .device-showcase { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.hero-description-block { grid-column: 1; grid-row: 2; }
.hero-action-block { grid-column: 1; grid-row: 3; }
.hero-mobile-lead, .sample-note-mobile { display: none; }

@media (min-width: 600px) and (max-width: 899px) {
  .hero.section-wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-heading, .hero-action-block, .hero-description-block { width: 100%; }
  .hero-heading { order: 0; }
  .hero-description-block { order: 1; }
  .hero-action-block { order: 2; }
  .hero .device-showcase { order: 3; margin-top: 37px; }
}

@media (max-width: 599px) {
  .site-header { height: 70px; }
  .hero.section-wrap { display: flex; flex-direction: column; gap: 0; padding-top: 8px; padding-bottom: 34px; }
  .hero-heading, .hero-action-block, .hero-description-block { width: 100%; }
  .hero-heading { align-self: auto; }
  .hero-heading .industry-label, .hero-heading .hero-lead,
  .hero-copy #hero-title > span:last-child, .hero-action-block .hero-bottom,
  .hero-action-block .microcopy, .hero-action-block .text-link,
  .hero .visual-label, .hero .update-card, .hero .sample-caption > span,
  .hero .sample-note-full { display: none; }
  .hero-copy #hero-title { margin: 0; font-size: clamp(30px, 8.7vw, 38px); line-height: 1.38; letter-spacing: 0; text-wrap: initial; }
  .hero-copy #hero-title > span { display: block; }
  .hero-mobile-lead { display: block; margin-top: 12px; font-size: 17px; line-height: 1.65; font-weight: 600; letter-spacing: .01em; }
  .hero .device-showcase { width: 100%; max-width: 420px; padding: 0; margin: 20px auto 0; }
  .hero .device-stage { aspect-ratio: 1.55; }
  .hero .laptop-device { width: 85%; top: 0; left: 3%; }
  .hero .phone-device { width: 25%; top: 13%; right: 0; }
  .hero .phone-top > span { display: none; }
  .hero .sample-caption { margin: 20px 0 0; justify-content: flex-end; font-size: 12px; }
  .hero .sample-caption a { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
  .hero .visual-note { margin: 0; text-align: right; line-height: 1.7; }
  .sample-note-mobile { display: inline; }
  .hero-action-block .hero-actions { margin-top: 18px; }
  .hero-action-block .hero-actions .button { width: 100%; min-height: 56px; padding-inline: 21px; font-size: 15px; }
  .hero-description-block .hero-description { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.95; }
  .mobile-consult.is-before-hero-cta { visibility: hidden; pointer-events: none; }
}
@media (max-width: 359px) {
  .hero-copy #hero-title { font-size: 30px; }
  .hero-mobile-lead { font-size: 16px; }
  .hero .device-showcase { margin-top: 16px; }
  .hero .phone-top:after { width: 20%; left: 41%; }
}
/* The longest industry name needs its own size, while keeping the whole word. */
@media (max-width: 599px) {
  body[data-industry="cleaning"] .hero-copy #hero-title { font-size: clamp(26px, 7.7vw, 34px); }
}
