.home-solutions {
  padding-block: clamp(24px, 4vw, 42px);
}

.home-solutions h2 {
  margin-bottom: 12px;
}

.home-solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 16px);
}

.home-solution {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--white);
}

.home-solution:is(:hover, :focus-visible) {
  border-color: var(--orange-text);
}

.home-solution-copy {
  display: grid;
  gap: 4px;
  padding: clamp(10px, 1.35vw, 18px);
  padding-inline-end: 30px;
}

.home-solution h3 {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-solution p {
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.35;
}

.home-solution-arrow {
  position: absolute;
  inset-block-start: clamp(10px, 1.35vw, 18px);
  inset-inline-end: 10px;
  color: var(--orange-text);
  font-weight: 700;
}

:root[data-theme="dark"] .home-solution {
  border-color: var(--dark-card-edge);
  background: var(--dark-card-fill);
}

:root[data-theme="dark"] .home-solution:is(:hover, :focus-visible) {
  border-color: var(--orange-text);
}

#solutions + #works {
  margin-block-start: 0;
  padding-block-start: 0;
}

#works .work-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
  margin-inline: auto;
}

#works .work-showcase > li:nth-child(n) {
  grid-column: auto;
}

@media (max-width: 900px) {
  .home-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #works .work-showcase > li:last-child .work-tile {
    grid-template: auto 1fr / minmax(0, 1fr);
    align-items: stretch;
  }
  #works .work-showcase > li:last-child .work-tile-media {
    border-inline-end: 0;
  }
}

/* The visitor can open the chat from its launcher. Keep the enquiry form clear. */
#genagent-teaser,
.home-lead-visible #genagent-launcher:not([aria-expanded="true"]),
body:has(#lead:focus-within) #genagent-launcher:not([aria-expanded="true"]) {
  display: none !important;
}

.home-hero-short { display: none; }

@media (max-width: 760px) {
  .home-hero-full { display: none; }
  .home-hero-short { display: inline; }
  .hero .hero-lead { margin-bottom: 16px; }
  .hero .hero-media.hero-apps { margin-top: 20px; }
  .hero .hp-stage { width: min(100%, 272px); }
  .hero .hp-tag { font-size: 11px; }
  #works + #services { padding-top: 24px; }
}
@media (max-width: 360px) {
  .hero .hp-stage { width: min(100%, 252px); }
}
