/* Figma 5952:9719. Shared hero markup; only this page's composition changes. */
.hero--agency {
  --agency-unit: min(clamp(.857142857rem, 1.142857143vw, 1.529051988rem), calc(var(--container-width) / 72.5));
  --hero-title-font-size: 3.21061635rem;
  --hero-image-overlay: none;
  --hero-compact-ratio: 900 / 697;
  container: agency-hero / inline-size;
}
.hero--agency .hero__description {
  max-width: 100%;
  margin-top: 1.375rem;
  font-size: clamp(.875rem, .82rem + .2vw, 1.019886375rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.03em;
  opacity: .8;
  overflow-wrap: anywhere;
}
.hero--agency .benefit__accent { color: #b298fb; }
.hero--agency .benefit__title { flex: 1; }

/* Center the group; align wrapped lines to keep the icon-to-text gap even. */
@media (32rem <= width < 48rem) {
  @container benefits (min-width: 30em) {
    .hero--agency .benefit { justify-content: center; padding-inline: .625rem; }
    .hero--agency .benefit__title { flex: 0 1 auto; text-align: left; }
  }
}
@media (48rem <= width < 75rem) {
  .hero--agency .benefit { justify-content: center; padding-inline: .625rem; }
  .hero--agency .benefit__title { flex: 0 1 auto; text-align: left; }
}

@media (width >= 75rem) {
  .hero--agency {
    --hero-header-height: 3.0625rem;
    --hero-padding-bottom: calc(2.375 * var(--agency-unit));
    --hero-desktop-min-height: calc(43.5625 * var(--agency-unit));
    padding-top: calc(.875 * var(--agency-unit));
    background: var(--hero-compact-sky);
  }
  .hero--agency .hero__content {
    width: min(100%, calc(46.875 * var(--agency-unit)));
    padding-top: calc(9.4375 * var(--agency-unit) - var(--hero-header-height));
  }
  .hero--agency h1 { font-size: calc(3.21061635 * var(--agency-unit)); line-height: 1; }
  .hero--agency .hero__description {
    width: calc(24.3125 * var(--agency-unit));
    margin-top: calc(2.277525 * var(--agency-unit));
    margin-left: calc(.0625 * var(--agency-unit));
    font-size: calc(1.019886375 * var(--agency-unit));
  }
  .hero--agency .split-button {
    --button-height: calc(4.875 * var(--agency-unit));
    --arrow-size: var(--button-height);
    width: min(100%, calc(23.6875 * var(--agency-unit)));
    margin-top: calc(2.45815 * var(--agency-unit));
    font-size: calc(1.0625 * var(--agency-unit));
  }
  .hero--agency .hero__media { min-height: calc(2.75 * var(--agency-unit)); }
  .hero--agency .hero__art {
    inset: 0 auto auto 50%;
    width: calc(87.5 * var(--agency-unit));
    max-width: none;
    height: calc(43.5625 * var(--agency-unit));
    margin: 0;
    translate: -50% 0;
    mask-image: none;
  }
  .hero--agency .hero__art img { object-position: center; }
  .hero--agency .hero__art::after { display: none; }
  .hero--agency .hero__video-area {
    inset: 0 auto auto 50%;
    width: calc(87.5 * var(--agency-unit));
    max-width: none;
    height: calc(43.5625 * var(--agency-unit));
    margin: 0;
    translate: -50% 0;
  }
  .hero--agency .video-trigger {
    --play-size: calc(10.4375 * var(--agency-unit));
    left: 79.392857143%;
    right: auto;
    top: 66.49928264%;
    translate: -50% -50%;
  }
  @container agency-hero (min-width: 70em) {
    /* The content may grow a few pixels taller than the proportional artwork.
       Continue its baked page-colour lower edge instead of exposing the sky. */
    .hero--agency .hero__media::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background: var(--color-page);
    }
  }
  @container benefits (min-width: 48em) {
    .hero--agency .benefits { grid-template-columns: var(--benefits-columns); gap: 0; }
    .hero--agency .benefits > li { padding-right: var(--benefit-gap-after); }
    .hero--agency .benefit {
      display: grid;
      grid-template-columns: var(--benefit-text-inset) minmax(0, 1fr);
      gap: 0;
      min-height: 3.375rem;
      padding: 0 .5rem 0 0;
    }
    .hero--agency .benefit__art { display: block; position: relative; align-self: stretch; }
    .hero--agency .benefit__illustration {
      position: absolute;
      left: var(--benefit-art-inset);
      top: 50%;
      translate: 0 calc(-50% + var(--benefit-art-offset-y, 0px));
      width: var(--benefit-art-width);
      height: var(--benefit-art-height);
    }
    .hero--agency .benefit__title { font-size: .875rem; line-height: .99; }
  }
}
@media (width > 87.5rem) {
  @container agency-hero (min-width: 70em) {
    /* Continue the source sky across the extra space without enlarging the
       1400px artwork. These stops follow the source's left edge colours. */
    .hero--agency .hero__media::before {
      background: linear-gradient(#7e6cd7, #8e7ad6 22%, #b091da 43%, #c9a9cb 65%, #a37ab4 86%, #a174bd);
    }
    .hero--agency .hero__art {
      /* The source has baked lower corners and a 5px page-colour strip.
         Dissolve them before the edge; only the outer hero stays rounded. */
      mask-image:
        linear-gradient(to right, transparent, rgb(0 0 0 / 6%) 2%, rgb(0 0 0 / 22%) 5%, rgb(0 0 0 / 48%) 8%, rgb(0 0 0 / 76%) 11%, rgb(0 0 0 / 93%) 14%, #000 18%, #000 82%, rgb(0 0 0 / 93%) 86%, rgb(0 0 0 / 76%) 89%, rgb(0 0 0 / 48%) 92%, rgb(0 0 0 / 22%) 95%, rgb(0 0 0 / 6%) 98%, transparent),
        linear-gradient(#000 86%, rgb(0 0 0 / 93%) 89%, rgb(0 0 0 / 65%) 92%, rgb(0 0 0 / 27%) 95%, rgb(0 0 0 / 5%) 98%, transparent 99%, transparent);
      mask-composite: intersect;
    }
  }
}

/* The same compact arrangement also accommodates 200% text on desktop. */
@container agency-hero (width < 70em) {
  .hero--agency .hero__layout { margin-bottom: calc(-1 * var(--hero-padding-bottom)); }
  .hero--agency .hero__intro { order: 0; position: relative; z-index: 1; }
  .hero--agency .hero__content { width: 100%; padding-block: 1.625rem 2rem; text-align: center; }
  .hero--agency h1 { font-size: clamp(1.875rem, 1.25rem + 3vw, var(--hero-title-font-size)); line-height: 1; }
  .hero--agency .hero__description { width: min(100%, 35rem); margin: 1.375rem auto 0; font-size: clamp(.875rem, .82rem + .2vw, 1.019886375rem); }
  .hero--agency .hero__media { order: 1; position: relative; flex: none; width: 100%; aspect-ratio: var(--hero-compact-ratio); min-height: 0; margin: 0; }
  .hero--agency .hero__art { inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; translate: none; mask-image: linear-gradient(transparent, #000 min(18%, 5rem)); }
  .hero--agency .hero__art img { object-position: right center; }
  .hero--agency .hero__art::after { display: block; inset: auto 0 0; height: var(--hero-compact-fade-height); background: var(--hero-compact-fade); }
  .hero--agency .hero__video-area { inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; translate: none; }
  .hero--agency .video-trigger { --play-size: min(clamp(5.5rem, 14vw, 7.75rem), 28vw, 124px); left: 70%; top: 64%; right: auto; }
  .hero--agency .hero__cta { order: 2; position: relative; z-index: 1; width: 100%; max-width: none; padding-inline: var(--page-gutter); margin-top: calc(-1 * var(--hero-compact-cta-overlap)); text-align: center; background: linear-gradient(transparent var(--hero-compact-cta-overlap), var(--color-page) var(--hero-compact-cta-overlap)); }
  .hero--agency .split-button { --button-height: 4.25rem; --arrow-size: min(var(--button-height), 78px); width: min(100%, 23.75rem); margin: 0; font-size: 1.0625rem; }
  .hero--agency .hero__benefits { order: 3; width: 100%; max-width: none; margin: 0; padding: 1.625rem var(--page-gutter) 2.25rem; background: var(--color-page); }
  @media (48rem <= width < 75rem) {
    /* Trim the scene's empty sky without scaling the artwork or enlarged text. */
    .hero--agency .hero__media { margin-top: calc(-1 * clamp(48px, 6vw, 64px)); }
  }
}
@media (width < 75rem) {
  .hero--agency { --hero-padding-bottom: 0rem; }
}

/* Phone: enlarge the original scene while keeping every face inside its crop.
   The long lower fade is shared with the other main pages (hero-compact.css). */
@media (width < 48rem) {
  .hero--agency { --hero-compact-ratio: 800 / 697; }
  .hero--agency .hero__art {
    mask-image: linear-gradient(transparent, rgb(0 0 0 / 8%) 4%, rgb(0 0 0 / 30%) 8%, rgb(0 0 0 / 62%) 12%, rgb(0 0 0 / 88%) 16%, #000 20%);
  }
  /* The right-anchored crop put the lion left of centre: centre the group.
     With the narrower frame of 25.10.2026 the figure in red on the left
     stays whole (client request), the girl on the right keeps her face. */
  .hero--agency .hero__art img { object-position: 86% center; }
}

