/* AIdvisory hero slider: seven slides, one visual system.
   Text sits left on a navy scrim, photography/illustration sits right. */

.ad .ad-hero { position: relative; isolation: isolate; overflow: hidden; background: #0b1631; color: #fff;
  min-height: clamp(660px, 92vh, 860px); }
.ad .ad-slides { position: absolute; inset: 0; }

.ad .ad-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s; }
.ad .ad-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }

.ad .ad-slide__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ad .ad-slide__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  transform: scale(1.07); transition: transform 9s ease-out; }
.ad .ad-slide.is-active .ad-slide__bg img { transform: scale(1); }
.ad .ad-slide.is-flip .ad-slide__bg img { transform: scaleX(-1) scale(1.07); }
.ad .ad-slide.is-flip.is-active .ad-slide__bg img { transform: scaleX(-1) scale(1); }
/* scrim: navy on the text side, clear on the image side; bottom fade seats the controls */
.ad .ad-slide__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,16,40,.85) 0%, rgba(8,16,40,0) 26%),
    linear-gradient(90deg, rgba(8,16,40,.94) 0%, rgba(8,16,40,.82) 34%, rgba(8,16,40,.38) 62%, rgba(8,16,40,.06) 100%); }

.ad .ad-slide__wrap { height: 100%; display: flex; align-items: center; padding-top: 104px; padding-bottom: 112px; }
.ad .ad-slide__copy { max-width: 640px; }
.ad .ad-slide__copy > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.ad .ad-slide.is-active .ad-slide__copy > * { opacity: 1; transform: none; }
.ad .ad-slide.is-active .ad-slide__copy > :nth-child(2) { transition-delay: .08s; }
.ad .ad-slide.is-active .ad-slide__copy > :nth-child(3) { transition-delay: .16s; }
.ad .ad-slide.is-active .ad-slide__copy > :nth-child(4) { transition-delay: .24s; }
.ad .ad-slide.is-active .ad-slide__copy > :nth-child(5) { transition-delay: .32s; }

.ad .ad-slide__h { color: #fff; font-size: clamp(1.9rem, 1.15rem + 2.7vw, 3.2rem); line-height: 1.1; margin: 14px 0 0; text-wrap: balance; }
.ad .ad-slide__sub { margin: 16px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); line-height: 1.4; color: var(--gold-500) !important; }
.ad .ad-slide__desc { margin: 14px 0 0; font-size: clamp(.98rem, .9rem + .3vw, 1.1rem); line-height: 1.65; color: rgba(255,255,255,.84) !important; max-width: 56ch; }
.ad .ad-hero .ad-actions { margin-top: 28px; }

/* controls: glass pill, bottom-left aligned with the copy */
.ad .ad-herobar { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; pointer-events: none; }
.ad .ad-herobar[hidden] { display: none; }
.ad .ad-herobar__in { width: min(100% - 2rem, 1200px); margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.ad .ad-herobar > .ad-herobar__in > * { pointer-events: auto; }
.ad .ad-hb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.3); transition: background .2s ease, transform .2s ease; }
.ad .ad-hb:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.ad .ad-hb:focus-visible, .ad .ad-dot:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.ad .ad-hb svg { width: 20px; height: 20px; }
.ad .ad-hb--play { margin-left: 10px; }
.ad .ad-pp--play { display: none; }
.ad .ad-hb--play[aria-pressed="true"] .ad-pp--pause { display: none; }
.ad .ad-hb--play[aria-pressed="true"] .ad-pp--play { display: block; }
.ad .ad-dots { list-style: none; margin: 0 6px; padding: 0 14px; height: 42px; display: flex; align-items: center; gap: 6px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.3); }
.ad .ad-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.45);
  transition: width .3s ease, background .3s ease; position: relative; }
.ad .ad-dot::after { content: ""; position: absolute; inset: -12px -4px; } /* larger hit area */
.ad .ad-dot.is-active { width: 28px; background: var(--gold-500); }

/* fact band */
.ad .ad-factband { background: var(--navy-900); padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.ad .ad-factband .ad-facts { margin-top: 0; }
.ad .ad-factband .ad-herofine { margin: 18px 0 0; max-width: 90ch; }
.ad .ad-factband .ad-facts li { background: rgba(255,255,255,.05); }

/* the in-page nav now follows the slider */
.ad .ad-subnav { margin-top: -1px; }

@media (max-width: 900px) {
  .ad .ad-hero { min-height: 720px; }
  .ad .ad-slide__wrap { align-items: flex-end; padding-top: 96px; padding-bottom: 96px; }
  .ad .ad-slide__bg img { object-position: 78% 30%; }
  .ad .ad-slide__bg::after { background:
    linear-gradient(0deg, rgba(8,16,40,.96) 0%, rgba(8,16,40,.9) 46%, rgba(8,16,40,.35) 74%, rgba(8,16,40,.1) 100%); }
  .ad .ad-slide__desc { font-size: .95rem; line-height: 1.55; }
  .ad .ad-hero .ad-actions { margin-top: 20px; }
}
@media (max-width: 560px) {
  .ad .ad-hero { min-height: 830px; }
  .ad .ad-hero .btn { width: 100%; }
  .ad .ad-hb { width: 38px; height: 38px; }
  .ad .ad-hb--play { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad .ad-slide, .ad .ad-slide__copy > *, .ad .ad-slide__bg img { transition: none !important; transform: none; }
  .ad .ad-slide.is-flip .ad-slide__bg img { transform: scaleX(-1); }
}
