/* Mutual Funds section: copy + feature cards (left). Right-side orbit lives in app-orbit.css */
.mf {
  position: relative; z-index: 2;
  margin-top: calc(clamp(12px, 1.5vw, 20px) * -1);            /* rises over the hero */
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 48px);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -40px 70px -50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* decorative depth orbs, parallaxed on scroll by js/gsap-fx.js (see .bg-orb, base.css) */

/* soft light that bridges the two halves: "one platform, multiple possibilities" */

/* ---------- copy ---------- */
.mf__title {
  margin: 20px 0 0;
  font-size: clamp(26px, 2.9vw, 44px); text-wrap: balance;
}
.mf__title em {
  font-style: normal;
  color: var(--o);
}

/* animated rotating phrase (see js/title-cycle.js) — grid-stacked so the box
   auto-sizes to the widest phrase, no JS measuring needed */
.mf__cycle {
  display: inline-grid; overflow: hidden; vertical-align: bottom;
  line-height: 1.1;
}
.mf__cycle em {
  grid-area: 1 / 1; white-space: nowrap;
  transform: translateY(100%); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease);
}
.mf__cycle em.is-now { transform: translateY(0); opacity: 1; }
.mf__cycle em.is-before { transform: translateY(-100%); opacity: 0; }

.mf__features { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 18px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}
.feat.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.feat.in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) scale(1.02);
  border-color: rgba(0, 0, 0, 0.16); box-shadow: 0 24px 44px -26px var(--glow-v), 0 10px 26px -18px var(--glow-o); }
.feat__ic {
  flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  background: var(--o-soft); color: var(--ink); font-size: 21px; transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease);
}
.feat:hover .feat__ic { background: var(--o); color: #000; box-shadow: 0 8px 20px -8px var(--glow-v); transform: translateY(-2px) rotate(-6deg); }
.feat h3 { margin: 2px 0 4px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.feat p { margin: 0; font-size: 13.5px; line-height: 1.5; font-weight: 400; color: var(--plum); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .mf__features { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  
  .mf__title { font-size: clamp(26px, 6vw, 40px); }
  .mf__features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mf__features { grid-template-columns: 1fr; }
}

/* ---- Homepage Mutual Funds section: big heading, cycling sub-heading, flat feature grid, video with orbit ring ---- */
#mutual-funds { background: #fff; }

#mutual-funds .mf__features { margin-top: clamp(34px, 4vw, 56px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 38px) clamp(18px, 2.4vw, 34px); }
#mutual-funds .feat { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; gap: 14px; align-items: flex-start; }
#mutual-funds .feat.in, #mutual-funds .feat.in:hover { transform: none; box-shadow: none; border-color: transparent; }
#mutual-funds .feat__ic { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; color: var(--purple); background: #efeafb; }
#mutual-funds .feat:hover .feat__ic { background: var(--purple); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(55, 48, 92, 0.6); }
#mutual-funds .feat h3 { margin: 2px 0 6px; font-size: 16px; color: var(--ink); }
#mutual-funds .feat p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }

#mutual-funds .mf__stage { position: relative; z-index: 1; }

@media (max-width: 1180px) { #mutual-funds .mf__features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {  .mf__ring { display: none; } }
@media (max-width: 560px) { #mutual-funds .mf__features { grid-template-columns: 1fr; } }
/* Video edge blend: stage matches the video's 1280x1080 frame (no letterbox bars) and a wide soft mask dissolves the dark backdrop into the white page */
#mutual-funds .mf__stage { height: auto; aspect-ratio: 1280 / 1080; width: 100%; }
#mutual-funds .stage3d__video {
  object-fit: cover; mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.32) 70%, rgba(0, 0, 0, 0.08) 84%, transparent 96%);
  mask-image: radial-gradient(closest-side, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.32) 70%, rgba(0, 0, 0, 0.08) 84%, transparent 96%);
}
/* orbit ring centred on the video: back half behind the cube, front half passing in front (Saturn-style) */
.mf__ring { position: absolute; left: 50%; top: 50%; width: 132%; height: auto; aspect-ratio: 640 / 400; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.mf__ring--back { z-index: 0; }

/* video on the left, copy on the right (desktop) */

/* breathing room around the headline */
#mutual-funds { padding-block: clamp(56px, 7vw, 104px); }

#mutual-funds .mf__features { margin-top: clamp(44px, 5vw, 72px); }

/* soften the hand-off from the light Mutual Funds section into the dark WealthTick band */
#mutual-funds { background: linear-gradient(180deg, #fff 0%, #fff 82%, #f4f0fc 100%); }

/* pull the copy block up and keep headline, tagline, CTAs and features tightly grouped */
#mutual-funds { padding-top: clamp(28px, 3.5vw, 52px); }

#mutual-funds .mf__features { margin-top: clamp(26px, 3vw, 40px); }

/* long eased fade from the light section into the dark WealthTick band (no hard edge) */
#mutual-funds { padding-bottom: clamp(96px, 10vw, 150px); }
#mutual-funds::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 12vw, 180px); z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(55, 48, 92, 0) 0%, rgba(55, 48, 92, 0.03) 18%, rgba(55, 48, 92, 0.09) 34%,
    rgba(55, 48, 92, 0.22) 52%, rgba(55, 48, 92, 0.45) 70%, rgba(55, 48, 92, 0.72) 86%, #37305c 100%);
}

/* smaller video cube (with its orbit ring) so it sits comfortably beside the copy */

/* headline + rotating tagline: clear hierarchy, professional sizing */

/* ---- Mutual Funds colours swapped: Navy Purple stage with white type and elements ---- */
#mutual-funds { background: #37305c; }
#mutual-funds::after { display: none; }

#mutual-funds .feat h3 { color: #fff; }
#mutual-funds .feat p { color: rgba(255, 255, 255, 0.66); }
#mutual-funds .feat__ic { background: #fff; color: var(--purple); }
#mutual-funds .feat:hover .feat__ic { background: var(--o); color: #fff; box-shadow: 0 10px 22px -10px rgba(241, 135, 23, 0.7); }

/* the glass-cube video was filmed on a light backdrop: seat it on a soft white glow so it blends into the purple stage */
#mutual-funds .mf__stage::before {
  content: ""; position: absolute; inset: -4%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, #fdfbff 52%, rgba(255, 255, 255, 0.6) 70%, rgba(255, 255, 255, 0.18) 86%, transparent 100%);
}
#mutual-funds .mf__stage .stage3d { position: relative; z-index: 1; }

/* ---------- feature showcase (replaces the cube): floating product-UI cards ---------- */
#mutual-funds .mf__stage { aspect-ratio: auto; height: auto; }
#mutual-funds .mf__stage::before, .mf__ring { display: none; }

 

/* spacing so no card covers another's content */

