/* ==========================================================================
   HOMEPAGE HERO  (component/hero-slider.php)
   Oct 2026: single "Growth Arrow" background; review slideshow controls
   removed; copy centred; star shines from the moment the page opens.
   3 light options using the Sep 2026 brochure artwork (pages 1–3) as the
   background. Typography comes from the .nx-hero-* rules in
   homepage-redesign.css; this file recolours them for a light background
   and adds the slideshow mechanics.
   Previous version: hero-slider-before-brochure-backup.css
   ========================================================================== */

/* ---------- Slideshow shell ---------- */
.nx-hero-section.nx-hero-slider {
  display: block;
  padding: 0 !important;
  min-height: 0;
  background: #f8fbfe;
  position: relative;
  overflow: hidden;
}
.hs-track { display: grid; }
.hs-slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* one screen tall; the whole brochure page is fitted inside it (no crop, no zoom, no scrolling) */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 120px 0 84px;
  box-sizing: border-box;
  color: #0a1322;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.hs-instant .hs-slide { transition: none !important; }
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s ease; }
.hs-slide > .auto-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

/* ---------- Brochure background (full page, never cropped or zoomed) ---------- */
.hs-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #e0edf5; }
.hs-pic {
  /* the whole page, at its own proportions, fitted inside one screen — no crop, no zoom */
  /* starts just below the site header (--hs-head is measured by hero-slider.js) so the star is never hidden */
  position: absolute; right: 0; bottom: 0;
  height: calc(100% - var(--hs-head, 0px)); width: auto; max-width: none;
  aspect-ratio: 2400 / 1689;
  display: block;
  /* page's blank left margin melts into the matching fill colour (no visible seam) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
/* screens narrower than the page's shape: fit to width instead, sky fades in above */
@media (min-width: 992px) and (max-aspect-ratio: 2953/2078) {
  .hs-pic {
    width: 100%; height: auto; max-height: calc(100% - var(--hs-head, 0px));
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
            mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  }
}
.hs-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Option 1: the star at the tip of the arrow shines ---------- */
.hs-star {
  position: absolute; left: 94.9%; top: 7.3%;
  width: 0; height: 0; pointer-events: none;
}
.hs-star span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; }
/* warm halo that breathes */
.hs-star .glow {
  width: 20vh; height: 20vh; mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,240,196,.95) 10%, rgba(255,212,130,.42) 30%, rgba(255,190,90,0) 64%);
  animation: hsGlow 3.2s ease-in-out infinite;
}
/* soft rays that slowly turn and pulse */
.hs-star .rays {
  width: 30vh; height: 30vh;
  background: repeating-conic-gradient(from 0deg, rgba(255,222,150,.8) 0deg 2deg, rgba(255,222,150,0) 5deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 6%, rgba(0,0,0,.5) 28%, transparent 66%);
          mask-image: radial-gradient(circle, #000 6%, rgba(0,0,0,.5) 28%, transparent 66%);
  animation: hsRays 24s linear infinite, hsRaysPulse 3.2s ease-in-out infinite;
}
/* sharp four-point twinkle that flashes every few seconds */
.hs-star .flare {
  width: 24vh; height: 24vh; border-radius: 0; mix-blend-mode: normal;
  background:
    radial-gradient(circle, #fff 0 3%, rgba(255,255,255,0) 9%),
    linear-gradient(90deg, transparent 0%, #fff 50%, transparent 100%) center / 100% 3px no-repeat,
    linear-gradient(180deg, transparent 0%, #fff 50%, transparent 100%) center / 3px 100% no-repeat;
  filter: drop-shadow(0 0 5px rgba(255,200,110,1)) drop-shadow(0 0 14px rgba(255,210,130,.8));
  animation: hsTwinkle 3.2s ease-in-out infinite;
}
@keyframes hsGlow { 0%,100% { opacity: .35; transform: translate(-50%,-50%) scale(.7); } 50% { opacity: .95; transform: translate(-50%,-50%) scale(1.1); } }
@keyframes hsRays { to { rotate: 360deg; } }
@keyframes hsRaysPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes hsTwinkle {
  0%, 30%, 70%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(45deg); }
}
@media (max-width: 991px) {
  .hs-star .glow { width: 30vw; height: 30vw; }
  .hs-star .rays { width: 50vw; height: 50vw; }
  .hs-star .flare { width: 34vw; height: 34vw; }
}

/* light wash only over the empty left side of the page, so the copy reads */
.hs-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(248,251,254,.80) 0%,
    rgba(248,251,254,.55) 32%,
    rgba(248,251,254,0) 46%);
}
/* spare space beside the page uses the page's own pale left-edge colour, so it reads as one picture */
.hs-bro-1 .hs-bg { background: #fafbfd; }
.hs-bro-2 .hs-bg { background: #fafbfd; }
.hs-bro-3 .hs-bg { background: #fafbfd; }

/* ---------- Copy (light) ---------- */
.hs-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 640px; }
.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--nx-blue-600, #2b6c93); margin-bottom: 22px; }
.hs-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--nx-gold-500, #c5a059); }
.hs-slide .nx-hero-title { color: #0a1322 !important; text-shadow: none; text-align: left; margin-left: 0; font-size: 56px; }
.hs-slide .nx-hero-title em { color: var(--nx-blue-600, #2b6c93) !important; white-space: nowrap; }
.hs-slide .nx-hero-title .nx-title-line-3 { white-space: normal !important; text-wrap: balance; }
.hs-slide .nx-hero-desc { color: #1e293b; text-shadow: none; text-align: left; margin: 0 0 36px; font-size: 18px; max-width: 600px; }
.hs-slide .nx-hero-desc .nx-hero-copy-line { white-space: normal !important; }
.hs-slide .nx-hero-desc .nx-hero-copy-line + .nx-hero-copy-line { color: #475569; }
.hs-slide .nx-hero-actions { justify-content: flex-start; margin-bottom: 0; }
.hs-slide .nx-btn-outline { color: #0a1322 !important; background: rgba(255,255,255,.55); }
.hs-slide .nx-btn-outline:hover { color: #fff !important; }
.hs-trust-light { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px clamp(48px, 5.5vw, 104px); margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(10,19,34,.12); align-self: stretch; }
.hs-trust-light div { font: 500 13px/1.45 'Plus Jakarta Sans', sans-serif; color: #475569; }
.hs-trust-light strong { display: block; font-size: 14px; margin-top: 2px; color: #0a1322; font-weight: 700; }

/* Entrance (replays every time a slide becomes active) */
.hs-slide.is-active .hs-in { animation: hsIn .9s cubic-bezier(.16,1,.3,1) both; }
.hs-slide.is-active .hs-d1 { animation-delay: .15s; }
.hs-slide.is-active .hs-d2 { animation-delay: .3s; }
.hs-slide.is-active .hs-d3 { animation-delay: .45s; }
@keyframes hsIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Short screens (most laptops): keep everything inside one screen ---------- */
@media (min-width: 992px) and (max-height: 980px) {
  .hs-slide { padding-bottom: 64px; }
  .hs-slide .nx-hero-title { font-size: min(52px, 5.6vh); margin-bottom: 18px; }
  .hs-slide .nx-hero-desc { font-size: min(18px, 2vh); line-height: 1.6; margin-bottom: 26px; }
  .hs-eyebrow { margin-bottom: 14px; }
  .hs-trust-light { margin-top: 26px; padding-top: 18px; }
}

@media (min-width: 992px) and (max-height: 720px) {
  .hs-slide { padding-bottom: 56px; }
  .hs-slide .nx-hero-desc .nx-hero-copy-line + .nx-hero-copy-line { display: none; }
  .hs-trust-light { margin-top: 18px; padding-top: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .hs-slide { padding: 108px 0 70px; }
  .hs-slide .nx-hero-title { font-size: 48px; margin-bottom: 20px; }
  .hs-slide .nx-hero-desc { font-size: 17px; margin-bottom: 28px; line-height: 1.7; }
  .hs-trust-light { margin-top: 28px; padding-top: 18px; }
  .hs-eyebrow { margin-bottom: 16px; }
}
@media (max-width: 1199px) {
  .hs-slide { padding: 100px 0 64px; }
  .hs-slide .nx-hero-desc { font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
  .hs-slide .nx-hero-desc .nx-hero-copy-line + .nx-hero-copy-line { display: none; }
  .hs-trust-light { gap: 12px 36px; margin-top: 22px; }
  .hs-slide .nx-hero-title { font-size: 40px; }
  .hs-text { max-width: 500px; }
}
@media (max-width: 991px) {
  .hs-slide { padding: 150px 0 0; min-height: 0; }
  .hs-slide > .auto-container { order: 1; flex-grow: 0; padding-bottom: 28px; }
  .hs-bg { position: relative; inset: auto; order: 2; background: none !important; }
  .hs-pic { position: relative; right: auto; bottom: auto; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hs-bg::after { display: none; }
  .hs-slide .nx-hero-desc .nx-hero-copy-line + .nx-hero-copy-line { display: inline; }
  .hs-slide .nx-hero-title { font-size: 40px; }
  .hs-trust-light { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 575px) {
  .hs-slide { padding: 128px 0 0; }
  .hs-slide .nx-hero-title { font-size: 32px; }
  .hs-slide .nx-hero-desc { font-size: 16px; }
  .hs-slide .nx-hero-actions { align-self: stretch; }
}
/* keep the copy left-aligned on phones (base mobile rules centre it for the old dark hero) */
@media (max-width: 767px) {
  .hs-text { max-width: 100%; }
  .hs-slide .nx-hero-title { margin: 0 0 16px !important; text-align: left !important; }
  .hs-slide .nx-hero-desc { max-width: 100% !important; margin: 0 0 28px !important; text-align: left !important; }
  .hs-slide .nx-hero-actions { margin: 0 !important; max-width: 320px !important; width: 100%; align-items: stretch; }
}

/* Reduced motion: no movement */
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-slide *, .hs-slide *::before, .hs-slide *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Oct 2026 — single hero, centred copy, star shining from page open
   ===================================================================== */
/* Star: start every pulse at its brightest so it is lit the moment the page
   opens (previously it began dim/invisible and peaked ~1.6s later). */
.hs-star .glow  { animation: hsGlow 3.2s ease-in-out -1.6s infinite; }
.hs-star .rays  { animation: hsRays 24s linear infinite, hsRaysPulse 3.2s ease-in-out -1.6s infinite; }
.hs-star .flare { animation: hsTwinkle 3.2s ease-in-out -1.6s infinite; }

/* page's own pale left-edge colour for the brochure artwork */
.hs-single .hs-bro-1 .hs-bg { background: #f7f7f7; }

/* Centred copy */
.hs-single .hs-text { align-items: center; text-align: center; max-width: 1000px; margin: 0 auto; }
.hs-single .nx-hero-title { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.hs-single .nx-hero-desc { text-align: center !important; margin-left: auto !important; margin-right: auto !important; max-width: 760px; }
.hs-single .nx-hero-actions { justify-content: center; }
.hs-single .hs-trust-light { justify-content: center; justify-items: center; text-align: center; }

/* Light wash follows the copy to the centre so it stays readable over the picture */
.hs-single .hs-bg::after {
  background: linear-gradient(90deg,
    rgba(248,251,254,.82) 0%,
    rgba(248,251,254,.74) 40%,
    rgba(248,251,254,.45) 62%,
    rgba(248,251,254,0) 78%);
}

@media (max-width: 1199px) {
  .hs-single .hs-text { max-width: 820px; }
}
@media (max-width: 991px) {
  .hs-single .hs-slide { padding-top: 120px; }   /* no slideshow bar under the header any more */
  .hs-single .hs-trust-light { justify-items: center; }
}
@media (max-width: 575px) {
  .hs-single .hs-slide { padding-top: 104px; }
}
@media (max-width: 767px) {
  .hs-single .hs-text { max-width: 100%; }
  .hs-single .nx-hero-title,
  .hs-single .nx-hero-desc { text-align: center !important; }
  .hs-single .nx-hero-desc { margin: 0 auto 28px !important; }
  .hs-single .nx-hero-actions { margin: 0 auto !important; }
}

/* =====================================================================
   Oct 30 2026 — phones: the growth-arrow picture sits BEHIND the heading,
   text and buttons (it used to come after the fund details). The fund
   details strip stays below it on the plain pale background.
   --hs-art-top / --hs-art-h are measured by hero-slider.js.
   ===================================================================== */
@media (max-width: 767px) {
  .hs-single .hs-slide { min-height: 0; padding-bottom: 30px; }
  .hs-single .hs-bro-1 .hs-bg {
    position: absolute; order: 0; z-index: 0;
    top: var(--hs-art-top, 64px); left: 0; right: 0; bottom: auto;
    height: var(--hs-art-h, 540px);
    background: #fafbfd !important;
  }
  /* whole picture at its own proportions, as tall as the text block, anchored right:
     the arrow, skyline and map fill the phone width and the star stays on the arrow tip */
  .hs-single .hs-pic {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: auto; height: 100%; max-width: none;
    aspect-ratio: 2400 / 1689;
    -webkit-mask-image: none; mask-image: none;
  }
  /* soft light wash so the dark heading and text stay readable over the picture */
  .hs-single .hs-bg::after {
    display: block; content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
      rgba(250,251,253,.80) 0%,
      rgba(250,251,253,.62) 45%,
      rgba(250,251,253,.55) 80%,
      rgba(250,251,253,.95) 100%);
  }
  .hs-single .hs-star { z-index: 2; }
  .hs-single .hs-slide > .auto-container { padding-bottom: 0; }
  .hs-single .hs-trust-light { position: relative; z-index: 2; margin-top: 34px; }
  .hs-star .glow { width: 26vw; height: 26vw; }
  .hs-star .rays { width: 42vw; height: 42vw; }
  .hs-star .flare { width: 28vw; height: 28vw; }
}
