/* Homepage hero: Figma 2241:1443 / 2241:1495. */
.hero {
  --hero-muted: #526078;
  --hero-header-gap: 80px;
  --hero-parallax-scale: 1;
  padding: max(192px, calc(var(--hero-header-bottom, 112px) + var(--hero-header-gap))) 0 96px;
  background: var(--_website---white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding-block: 0;
  margin: 0 auto;
}

.hero-heading, .hero-summary {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.hero-title {
  flex-shrink: 0;
  margin: 0;
  color: var(--blue);
  font-size: 56px;
  font-weight: 500;
  line-height: 64px;
  letter-spacing: -1.5px;
}

.hero-description {
  flex: 1;
  max-width: 640px;
  margin: 0;
  color: var(--hero-muted);
  font-size: 18px;
  line-height: 28px;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 460;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(-15.40579deg, #14274e 39.881%, #2e5ab4 328.81%);
}

.hero-icon {
  position: absolute;
  aspect-ratio: 1;
  pointer-events: none;
  transform-origin: 0 0;
  transform: translateY(var(--parallax-y, 0px)) rotate(var(--icon-angle));
}

.hero-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Positions use the unrotated Figma origins; the container clips the result. */
.hero-icon--web { left: 2.5%; top: -6.086957%; width: 26.25%; --icon-angle: 12deg; --parallax-distance: 14; }
.hero-icon--seo { left: 28.333333%; top: 38.043478%; width: 22.083333%; --icon-angle: -8deg; --parallax-distance: 10; }
.hero-icon--ppc { left: 47.916667%; top: -1.73913%; width: 25%; --icon-angle: 8deg; --parallax-distance: 18; }
.hero-icon--crm { left: 65.833333%; top: 53.26087%; width: 19.166667%; --icon-angle: -10deg; --parallax-distance: 8; }
.hero-icon--email { left: 10.416667%; top: 58.695652%; width: 15%; --icon-angle: -12deg; --parallax-distance: 12; }
.hero-icon--smm { left: 80.833333%; top: -3.478261%; width: 19.583333%; --icon-angle: 12deg; --parallax-distance: 16; }

.hero-summary, .hero-clients, .hero-action { align-items: center; }
.hero-clients, .hero-action, .hero-client-list { display: flex; }
.hero-summary { flex-wrap: wrap; }
.hero-clients { gap: 20px; flex-wrap: wrap; min-width: 0; }
.hero-clients-label { margin: 0; color: var(--hero-muted); font-size: 16px; line-height: 24px; }
.hero-client-list { isolation: isolate; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 0; padding: 0; }
.hero-client {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0 -8px 0 0;
  border: 2px solid var(--_website---white);
  border-radius: 15px;
  background: var(--numbers-bg);
  overflow: hidden;
}
.hero-client:last-child { margin-right: 0; }
.hero-client-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 13px; }
.hero-client-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.hero-client-logo { display: block; width: 60px; height: 40px; object-fit: contain; }
.hero-action { gap: 12px; margin-left: auto; }
.hero-action .button { padding: 15px 22px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.hero-action .hero-cta { border: 0; }
.hero-action .hero-details { padding-block: 14.5px; color: var(--blue); background: transparent; border: 1px solid #dfe5ee; }
.hero-action .hero-details:hover { background: var(--numbers-bg); border-color: var(--blue); }
.hero-action .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#services { scroll-margin-top: 132px; }

/* Reserve room for the heading, actions and header in laptop browser windows. */
@media (min-width: 1101px) {
  .hero-media {
    height: clamp(220px, calc(100svh - 488px), 340px);
    aspect-ratio: auto;
    container-type: size;
  }
  .hero-icon--web { width: min(26.25%, 68.47826cqh); }
  .hero-icon--seo { width: min(22.083333%, 57.608696cqh); }
  .hero-icon--ppc { width: min(25%, 65.217391cqh); }
  .hero-icon--crm { width: min(19.166667%, 50cqh); }
  .hero-icon--email { width: min(15%, 39.130435cqh); }
  .hero-icon--smm { width: min(19.583333%, 51.086957cqh); }
}

@media (max-width: 1100px) {
  .hero-heading { flex-direction: column; gap: 16px; }
  .hero-description-break { display: none; }
}

@media (max-width: 767px) {
  .hero { --hero-header-gap: 40px; --hero-parallax-scale: .65; padding: max(144px, calc(var(--hero-header-bottom, 104px) + var(--hero-header-gap))) 0 48px; }
  .hero-content { gap: 24px; }
  .hero-title { font-size: 36px; line-height: 44px; }
  .hero-description { font-size: 16px; line-height: 24px; }
  .hero-media { aspect-ratio: auto; height: 420px; background: linear-gradient(-40.781245deg, #14274e 39.881%, #2e5ab4 328.81%); }
  .hero-icon--web { left: 10%; top: 2.380952%; width: 47.142857%; }
  .hero-icon--seo { left: 44%; top: 40.47619%; width: 48.571429%; }
  .hero-icon--ppc { left: 48.571429%; top: 0; width: 45.714286%; }
  .hero-icon--crm { left: 8.571429%; top: 69.047619%; width: 36%; }
  .hero-icon--email { left: 0; top: 46.428571%; width: 34.285714%; }
  .hero-icon--smm { left: 64.285714%; top: 71.904762%; width: 32.571429%; }
  .hero-summary { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-clients { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-clients-label { order: -1; }
  .hero-action { flex-direction: column; align-items: stretch; margin-left: 0; }
  #services { scroll-margin-top: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon { transform: rotate(var(--icon-angle)); }
  .hero-action .button { transition: none; }
}
