/* This layer is a sibling of the original Slider Revolution row. */
#amos-home-entry {
  position: absolute;
  z-index: 20;
  right: clamp(24px, 3.25vw, 54px);
  top: clamp(160px, calc(100svh - var(--hph-header-height, 90px) - 350px), 505px);
  width: min(560px, calc(100% - 60px));
  padding: clamp(22px, 2.5vw, 36px);
  box-sizing: border-box;
  text-align: right;
  color: #f2f4f8;
  background: linear-gradient(120deg, rgba(14, 14, 32, .95), rgba(27, 24, 54, .92));
  border: 1px solid rgba(208, 210, 255, .3);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(9, 8, 25, .26);
}

#amos-home-entry h1 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(32px, 3.25vw, 47px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -.035em;
}

#amos-home-entry h1 span { color: #b1b7ff; white-space: nowrap; }
#amos-home-entry p {
  margin: 14px 0 20px;
  padding: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: #e0e0ef;
}

#amos-home-entry .home-entry-action {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 10px 17px;
  box-sizing: border-box;
  border-radius: 6px;
  text-decoration: none;
  background: #3045ff;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

#amos-home-entry .home-entry-action:hover { background: #4256ff; }
#amos-home-entry .home-entry-action:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* The new heading supersedes the introductory text on the first slide only. */
body:has(#amos-home-entry) #SR7_28_1-141-26 { visibility: hidden !important; }
body .hpc-whatsapp-float[hidden] { display: none !important; }

@media (max-width: 767px) {
  /* The AI slide has its own headline and description. Keep the filmstrip clear. */
  #amos-home-entry:has(+ #SR7_28_1[data-current="146"]):not(:focus-within) { display: none; }
  /* SR7 sets type size inline. Fit the long word inside the headline mask. */
  #SR7_28_1-146-24 { font-size: 14vw !important; }
  #SR7_28_1-146-25 { direction: rtl; }
  #amos-home-entry {
    right: 0;
    left: 0;
    width: auto;
    top: clamp(94px, calc(100svh - var(--hph-header-height, 85px) - 348px), 480px);
    padding: 19px;
  }
  #amos-home-entry h1 { font-size: clamp(27px, 8vw, 36px); }
  #amos-home-entry p { margin: 10px 0 16px; }
}

@media (max-height: 520px) {
  #amos-home-entry { top: 34px; padding: 14px 18px; }
  #amos-home-entry h1 { font-size: 26px; }
  #amos-home-entry p { margin: 8px 0 10px; }
}

/* Social Media uses the full filmstrip on desktop and mobile. */
#amos-home-entry:has(+ #SR7_28_1[data-current="142"]):not(:focus-within) {
  display: none;
}

@media (max-width: 480px) {
  #SR7_28_1-142-16 > sr7-mask:has(> :is(#SR7_28_1-142-17, #SR7_28_1-142-18, #SR7_28_1-142-19)) {
    translate: 0 clamp(-170px, -19svh, -112px) !important;
  }
  body.amos-home-release:has(#SR7_28_1[data-current="142"]) .hpc-whatsapp-float.is-over-home-hero {
    bottom: 83px;
  }
}

/* Studio A-MOS uses both filmstrips across desktop and mobile. */
body.amos-home-release #amos-home-entry:has(+ #SR7_28_1[data-current="148"]):not(:focus-within) {
  display: none;
}

@media (max-width: 480px) {
  body.amos-home-release :is(#SR7_28_1-148-7, #SR7_28_1-148-8, #SR7_28_1-148-9) sr7-pblur > div {
    backdrop-filter: blur(3px) !important;
  }
}
