/* ==========================================================================
   Hero
   .hero__inner      page container (same edges as header and sections)
   .hero__content    title, lead text, CTA (in normal flow)
   .hero__media      collage + hashtag, scaled and positioned as one unit
     .hero__art      decorative collage image
     .hero__hashtag  campaign hashtag, right-aligned to the container

   Desktop: media sits behind the text, right-aligned to the container.
   Tablet/phone: media stacks under the text.
   ========================================================================== */

.hero {
  min-height: clamp(560px, 36.4583vw, 700px);
  overflow: hidden;
  background: var(--color-bg-hero);
}

.hero__inner {
  position: relative;
  padding-top: clamp(87px, 5.6823vw, 109px);
  padding-bottom: 48px;
}

/* ---- Media (collage + hashtag) ------------------------------------------- */
.hero__media {
  position: absolute;
  top: clamp(49px, 3.229vw, 62px);
  right: var(--page-padding); /* right edge of the container content */
  width: min(71.4949vw, 1373px);
}

.hero__art {
  width: 100%;
  /* The image has a white background; multiply blends it into the hero colour
     so no rectangle edge shows at any width. */
  mix-blend-mode: multiply;
}

/* Sits just under the collage (539px from its top at 1920px). */
.hero__hashtag {
  position: absolute;
  top: 91.67%;
  right: 0;
  color: var(--color-stat);
  font-size: var(--font-size-hashtag);
  font-style: italic;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---- Content -------------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: min(29.7vw, 570px);
}

.hero__title {
  max-width: 9.25em; /* 536px at 58px — forces the Figma 3-line wrap */
  color: var(--color-heading);
  font-size: var(--font-size-display);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-heading);
}

.hero__text {
  margin-top: clamp(20px, 1.406vw, 27px);
  color: var(--color-text);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-body);
}

.hero__button {
  margin-top: clamp(28px, 2.083vw, 40px);
  border-color: rgb(15 98 254 / 14%); /* same see-through ring as the header CTA */
  background-clip: padding-box;
}

.hero__button:hover {
  background-clip: padding-box;
}

/* ---- Tablet: stack media under the text ---------------------------------- */
@media (max-width: 1100px) {
  .hero {
    min-height: 0;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    padding-top: 62px;
  }

  .hero__content {
    width: 100%;
    max-width: 640px;
  }

  .hero__title {
    font-size: clamp(37px, 5vw, 48px);
  }

  /* The collage occupies the right 63% of the image (the left 37% is blank).
     Enlarge the image and shift it left so that the collage part is centred
     in the column. */
  .hero__media {
    --media-width: min(150%, 960px);

    position: relative;
    top: auto;
    right: auto;
    width: var(--media-width);
    margin-top: 32px;
    margin-left: calc((100% - var(--media-width) * 0.63) / 2 - var(--media-width) * 0.37);
  }

  .hero__hashtag {
    right: 3%;
  }
}

/* ---- Phone ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .hero__inner {
    padding-top: 46px;
    padding-bottom: 30px;
  }

  .hero__title {
    font-size: clamp(37px, 10.7vw, 48px);
    line-height: 1.08;
  }

  .hero__text {
    margin-top: 22px;
    line-height: 1.55;
    font-size: var(--font-size-base);
  }

  .hero__button {
    width: 100%;
    margin-top: 28px;
    padding-inline: 24px;
  }

  .hero__media {
    margin-top: 24px;
  }

  .hero__hashtag {
    display: none;
  }
}
