/* WealthTick section: the same architectural world as the Mutual Funds section (see css/mf-stage.css).
   The scene (assets/wt/wt-stage.webp) is a 2171 x 724 image; we show its middle 1790 units. Every position and size is written in
   scene pixels x --u (one scene pixel = 100cqw / --vis of the stage), so the composition scales as one piece.
   Back to front: scene (arches, skyline, marble floor, 3D bars, platform) > growth curve + spheres > phone. Copy and feature cards sit left. */

.wtx {
  --vis: 1790;
  --navy: #10114a; --ink: #1c1b4f; --muted: #77738f; --o: #f18717; --violet: #7c52dc; --lav: #ece6ff; --peach: #ffe6d0;
  position: relative; isolation: isolate; overflow: hidden; background: #f6eff5; color: var(--ink);
}

.wtx::after { /* the floor melts into the "Open Your Account" band below instead of ending on a hard edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(40px, 6vw, 96px); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(236, 230, 248, 0), #ece6f8);
}

/* ---- growth curve: draws itself, then the arrow and spheres appear ---- */

   

/* ---- phone: iPhone 17 Pro Max style body holding the real screenshot, with three areas of the screen popped out in 3D ---- */
@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.wtx__phone {
  position: absolute; z-index: 5; left: calc(var(--u) * var(--px, 1080)); top: calc(var(--u) * var(--py, 79)); width: calc(var(--c) * 256);
  filter: drop-shadow(0 calc(var(--c) * 14) calc(var(--c) * 20) rgba(55, 48, 92, 0.26));
}
.wtx__phone img { display: block; width: 100%; height: auto; }

/* side buttons: action + volume on the left, power and camera control on the right */

/* the popped-out panels: the same screenshot, cropped to the three areas you see on the screen, raised towards the viewer */

 

 
/* ---- left: headline, copy, logo, four features ---- */

/* ---- entrance (the layout is complete without it; reduced motion keeps everything still) ---- */
.js .wtx [data-fx] { opacity: 0; translate: 0 18px; }
.js .wtx .wtx__phone[data-fx] { translate: 0 25px; }
.js .wtx.is-in [data-fx] { opacity: 1; translate: 0 0; transition: opacity 0.8s var(--ease, ease) calc(var(--fx, 0) * 85ms), translate 0.8s var(--ease, ease) calc(var(--fx, 0) * 85ms); }

/* ================= tablet and mobile: copy first, then the phone scene on its own 760 x 1370 stage ================= */
@media (max-width: 1099px) {
  .wtx { --vis: 760; }
  
  
  
  
  
  
  
  
  
   
  
   
  
  
  .wtx__phone { --px: 111; --py: 166; }
}

