/* =========================================================
   Ammn landing — CTA banner (Figma 190:55883, 1440 × 580)

   Desktop: text and art are positioned against the full-bleed band (.al-cta__inner is a
   plain, unpositioned container). The art sits at the band's physical left, which is the
   inline END in RTL; in LTR the whole art layer is mirrored so the photo moves to the right
   (the person is then shown un-mirrored relative to the source photo, which is fine).

   Mask gotcha: Figma exports image + mask inside a scaleX(-1) wrapper, so mask offsets are
   in mirrored space. Correct values: white shape 142.889px -138.652px, photo 0 -46.738px.
   ========================================================= */

.al-cta {
  padding-block: var(--al-sp-4xl);
  background: var(--al-bg);
}

.al-cta__band {
  --al-cta-shift: min(0px, calc((100% - 1440px) * 0.35));

  position: relative;
  width: 100%;
  height: 452px;
  overflow: hidden;
  background: color-mix(in srgb, var(--al-primary-light) 50%, transparent);
}

.al-cta__text {
  position: absolute;
  z-index: 2;
  /* Was max(--al-gutter-min, calc(50% - 580px)) — its own hardcoded 1160 column, narrower than
     the 1280 one. The band is already full-bleed, so the text just follows the page margin now. */
  inset-inline-start: var(--al-gutter-min);
  top: calc(50% + 0.46px);
  transform: translateY(-50%);
  width: min(600px, 42%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--al-sp-lg);
}
.al-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--al-sp-md);
  width: 100%;
  text-align: start;
}
.al-cta__title {
  width: 100%;
  max-width: 543px;
  min-height: 162px;
  font-weight: 700;
  font-size: clamp(36px, 3.34vw, 48px);
  line-height: 1.5;
  color: var(--al-heading);
}
.al-cta__sub {
  width: 100%;
  max-width: 543px;
  font-weight: 500;
  font-size: clamp(20px, 1.67vw, 24px);
  line-height: 1.5;
  color: var(--al-text-2);
}

/* ---------------- Art ---------------- */
/* Under 1440 the art slides out toward its edge so the curve clears the text column. */
.al-cta__art {
  position: absolute;
  inset: 0;
  translate: var(--al-cta-shift) 0;
}
[dir="ltr"] .al-cta__art {
  transform: scaleX(-1);
  translate: calc(-1 * var(--al-cta-shift)) 0;
}

.al-cta__shape { position: absolute; display: flex; align-items: center; justify-content: center; }
.al-cta__shape--white { left: -545.26px; top: 91.65px; width: 1353.816px; height: 693.519px; }
.al-cta__shape--photo { left: -39.33px; top: -0.26px; width: 705px; height: 548.26px; }
.al-cta__flip { flex: none; transform: scaleX(-1); }

.al-cta__masked {
  position: relative;
  -webkit-mask-image: url('../../assets/home/cta-shape-mask.svg');
  mask-image: url('../../assets/home/cta-shape-mask.svg');
  -webkit-mask-size: 1026.667px 616px;
  mask-size: 1026.667px 616px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.al-cta__masked--white {
  width: 1353.816px;
  height: 693.519px;
  -webkit-mask-position: 142.889px -138.652px;
  mask-position: 142.889px -138.652px;
  background: var(--al-bg);
}
.al-cta__masked--photo {
  width: 705px;
  height: 548.26px;
  -webkit-mask-position: 0 -46.738px;
  mask-position: 0 -46.738px;
}
.al-cta__masked img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: var(--al-art-filter);
}
.al-cta__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--al-primary) 4%, transparent);
}

/* ---------------- Tablet & mobile: text on top, photo in a rounded panel below ---------------- */
@media (max-width: 1023.98px) {
  .al-cta { padding-block: var(--al-sp-2xl); }
  .al-cta__band { height: auto; }
  .al-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--al-sp-xl);
    padding-block: var(--al-sp-2xl);
  }

  .al-cta__text {
    position: static;
    transform: none;
    width: 100%;
    max-width: 600px;
    align-items: center;
  }
  .al-cta__copy { align-items: center; text-align: center; }
  .al-cta__title { min-height: 0; max-width: none; font-size: 32px; line-height: 48px; }
  .al-cta__sub { max-width: none; font-size: 20px; line-height: 30px; }
  .al-cta__btn { min-height: 44px; padding-inline: var(--al-sp-lg); }

  .al-cta__art,
  [dir="ltr"] .al-cta__art {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 720px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    transform: none;
    translate: none;
  }
  .al-cta__shape--white { display: none; }
  .al-cta__shape--photo { position: absolute; inset: 0; width: auto; height: auto; }
  .al-cta__flip { width: 100%; height: 100%; }
  .al-cta__masked--photo {
    width: 100%;
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* The source photo is mirrored by .al-cta__flip, so 70% here lands the face near 30%. */
  .al-cta__masked img { object-position: 70% 30%; }
}

@media (max-width: 767.98px) {
  .al-cta { padding-block: var(--al-sp-xl); }
  .al-cta__inner { gap: var(--al-sp-lg); padding-block: var(--al-sp-xl); }
  .al-cta__title { font-size: 26px; line-height: 40px; }
  .al-cta__sub { font-size: 17px; line-height: 26px; }
  .al-cta__btn { align-self: stretch; }
  .al-cta__art,
  [dir="ltr"] .al-cta__art { height: 240px; border-radius: 16px; }
  .al-cta__masked img { object-position: 70% 20%; }
}
