/* generated by scripts/sync_prototype.py from the prototype: portal phone: home.css. Do not edit. */
/* ============================================================
   KCM Trade — phone Home (≤760px). Appended after the desktop sheet and
   shell.css by build.py; every rule sits inside the one media query below.

   Order on a phone (390 wide): masthead (shell) · the two opening tiles ·
   the three money rows · the hero · Where you stand (stacked) · Recent
   activity · Markets strip · Coming up. The h1 is hidden (the tab bar names
   the page), the qstack/hero and tiles/rows swaps are CSS order, the
   snapshot cards take the same 150×124 shape as the Markets movers via
   .msnap selectors. The builder branches on K.isPhone() only for copy
   (row notes, the status caption), the status check's place, and the
   Coming up head — the desktop string is unchanged.
   ============================================================ */
@media (max-width:760px){
  /* the tab bar names the page; the h1 stays in the DOM as the skip target */
  body[data-page="Home"][data-mode="trading"] .pagehead{position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);margin:0}

  /* ---------- the Home masthead, a touch tighter: same rows (the account,
     Balance | Equity, the figure, the meta line), ten pixels less air, so
     the money rows start higher. Scoped to trading Home; the IB bar and the
     other pages keep shell.css's measure ---------- */
  body[data-page="Home"][data-mode="trading"] .hbar{padding:14px 16px 15px}
  body[data-page="Home"][data-mode="trading"] .hbar .metsw{margin-top:9px}
  body[data-page="Home"][data-mode="trading"] .hbar-eq b{margin-top:4px}
  body[data-page="Home"][data-mode="trading"] .hbar-meta{margin-top:5px}

  /* ---------- top: the openings first, then the three money rows, the hero
     a screen down. The tiles above the rows push Deposit / Withdraw /
     Transfer to roughly Y 345–555 at 812, under the resting thumb rather
     than up in the stretch zone; the gold row is still the one gold fill
     on the first screen ---------- */
  .home-top{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:0}
  .qstack{order:-1;gap:8px;grid-template-rows:none}
  .qstack .qpair{order:-1}
  .qrow{padding:12px 14px;min-height:60px;gap:12px}
  .qrow .qa-i{width:36px;height:36px}
  .qrow-t b{font-size:15px}
  /* the note reads whole: the phone copy fits one line at 375, and if a
     longer figure ever pushes it over, it wraps to a second line rather than
     ending in dots */
  .qrow .qa-note,.qtile .qa-note{font-size:12.2px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;
    -webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
  .qrow:active{transform:scale(.985);background-color:#EEF1F7}
:where(html[data-appearance="dark"]) .qrow:active{background-color:rgba(255,255,255,0.1)}
  .qrow.is-gold:active{background-image:var(--gold-grad-hi)}
  .qpair{gap:8px}
  .qtile{padding:12px 14px;min-height:96px;gap:0}
  .qtile .qa-i{width:32px;height:32px;margin-bottom:8px}
  .qtile b{font-size:14.5px}
  .qtile .qa-note{font-size:12px}
  .qtile:active{transform:scale(.985);background-color:#EEF1F7}
:where(html[data-appearance="dark"]) .qtile:active{background-color:rgba(255,255,255,0.1)}

  /* ---------- the hero, compact ---------- */
  .promo.is-hero{padding:20px;min-height:0}
  .promo.is-hero .promo-kick{font-size:11px}
  .promo.is-hero .promo-name{font-size:22px}
  .promo.is-hero .promo-body{font-size:14px;max-width:none}
  .promo-cta{margin-top:16px;min-height:44px;padding:0 16px;border-radius:99px;background:rgba(255,255,255,.1);
    align-self:flex-start;gap:8px}

  /* ---------- where you stand: two tracks stacked, read not compared ---------- */
  .sts{grid-template-columns:minmax(0,1fr)}
  .st{padding:18px 16px 16px}
  .st + .st{border-left:0;border-top:1px solid var(--line)}
  /* the panel is dark now, so the rule between the two tracks is too */
  .sts .st + .st{border-top-color:rgba(255,255,255,.10)}
:where(html[data-appearance="dark"]) .sts .st + .st{border-top-color:rgba(255,255,255,0.05)}
  /* both titles start at the panel edge: the qualified check rides the
     kicker (the builder puts it there on a phone), which turns green with it */
  .st-name{font-size:16.5px}
  .st-kick{display:flex;align-items:center;gap:5px;min-height:14px}
  .st-kick svg{width:13px;height:13px;stroke-width:2.6;flex:none;color:var(--up)}
  .st.is-done .st-kick{color:var(--up)}
  .st-track{margin-top:26px}
  .st-cta{padding:12px 0 12px 12px;margin:-12px 0}

  /* ---------- masthead switch row: 44 tall, two tight lines. Wins over
     shell.css (.hbar-sw, appended later) on specificity ---------- */
  .hbar .hbar-sw{padding:0 0 8px;min-height:44px}
  .hbar .hbar-swn b,.hbar .hbar-swn span{line-height:1.2}

  /* ---------- recent activity: 56px rows, the meta line never wraps
     (the builder also drops the clock on a phone); the warning sentence
     is the one line that must be read whole ---------- */
  .afeed{padding:2px 16px}
  .af{padding:12px 0;min-height:56px;grid-template-columns:8px minmax(0,1fr) auto;gap:10px}
  .af-main{min-width:0}
  .af-main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .af-warn .af-main span{white-space:normal}
  .af-amt{font-size:14.5px}

  /* ---------- markets snapshot: the same 150×124 card as the movers, in a
     snapping strip that bleeds to the page edge with a fade on the right.
     Beats .mcards,.msnap{grid-template-columns:1fr} (style.css) by source
     order; .msnap .spark beats the ≤1300 .spark{display:none} by specificity.
     scroll-padding makes the padded edge the snap point, so the strip does
     not snap to scrollLeft 14 on paint and the first card keeps the inset */
  .msnap{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;
    scrollbar-width:none;margin:0 calc(-1 * var(--pad));padding:2px var(--pad) 6px;grid-template-columns:none;
    scroll-padding:0 var(--pad);-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .msnap::-webkit-scrollbar{display:none}
  .msnap .mcard{flex:0 0 150px;scroll-snap-align:start;grid-template-columns:1fr;padding:12px 14px;gap:6px;
    min-height:124px;margin:0}
  .msnap .spark{display:block;width:100%;height:28px}
  .msnap .mcard-p{font-size:18px;font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:-.02em;margin-top:4px}
  .msnap .mcard-c{margin-top:2px}
  .msnap .mcard[data-chart]:active{transform:scale(.985)}

  /* ---------- coming up: a section head and a panel, like Recent activity
     (the builder emits .sec-head + .panel.evs-panel on a phone) ---------- */
  .evs-panel{padding:16px 16px 6px}
  .ev{grid-template-columns:7px 54px minmax(0,1fr) auto;gap:8px;padding:10px 0;align-items:start}
  .ev-n{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .ev-at{font-size:13px}

  /* ---------- reduced motion: presses answer with the fill alone, and the
     status pill lands with its fill — the desktop rule zeroes durations but
     not the 620ms delay that follows the fill ---------- */
  @media (prefers-reduced-motion:reduce){
    .qrow:active,.qtile:active,.msnap .mcard[data-chart]:active{transform:none}
    .st-track .st-pill,.st-track.is-full .st-pill,.st-track.is-full .st-pill.is-mid{transition:none}
  }
}

/* ============================================================
   Home, short — the three money actions as squares, the status
   tracks at a glance, and the hero down to a banner. The aim is
   the balance, the actions and where you stand inside the first
   screen and a half rather than three screens.
   ============================================================ */
@media (max-width:760px){
  .home-top{gap:10px}
  /* money first now that it is one band; the openings follow it */
  .qstack .qpair{order:1}
  .qstack .qgrid{order:0}
  /* the three money actions: one band, a big mark and a word each */
  .qgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .qsq{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
    aspect-ratio:1;padding:10px 6px;border-radius:18px;background:var(--surface);
    box-shadow:var(--lift-card);text-align:center;
    transition:transform var(--t-quick) var(--ease),background var(--t-quick) var(--ease)}
  .qsq .qa-i{width:46px;height:46px;border-radius:15px;background:var(--surface-sunk);
    display:grid;place-items:center;color:var(--ink-2);flex:none}
  .qsq .qa-i svg{width:23px;height:23px}
  .qsq b{font-size:13.4px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
  .qsq:active{transform:scale(.96);background:#EEF1F7}
:where(html[data-appearance="dark"]) .qsq:active{background:rgba(255,255,255,0.1)}
  /* Deposit keeps the weight it had as the gold row */
  .qsq.is-gold{background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%);
    box-shadow:0 12px 26px -16px rgba(12,21,38,.7)}
:where(html[data-appearance="dark"]) .qsq.is-gold{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%);box-shadow:0 12px 26px -16px rgba(0,0,0,0.75)}
  .qsq.is-gold b{color:#fff}
  .qsq.is-gold .qa-i{background:rgba(240,180,41,.15);color:var(--gold);
    box-shadow:inset 0 0 0 1px rgba(240,180,41,.32)}
  .qsq.is-gold:active{background:linear-gradient(150deg,#16223F 0%,var(--ink) 60%,#0A1120 100%);
    transform:scale(.96)}
:where(html[data-appearance="dark"]) .qsq.is-gold:active{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 60%,#0A1120 100%)}
  /* the two openings stay a pair, shorter */
  .qtile{min-height:82px;padding:11px 13px}
  .qtile .qa-i{width:28px;height:28px;margin-bottom:6px}
  .qtile .qa-note{display:none}

  /* the hero becomes a banner: the line that sells it, and the way in */
  .promo.is-hero{padding:15px 16px 16px}
  .promo.is-hero .promo-name{font-size:19px}
  .promo.is-hero .promo-body,.promo.is-hero .promo-kick{display:none}
  .promo-cta{margin-top:12px;min-height:40px}

  /* where you stand: two cards you swipe, the same gesture as the market
     strip, so the pair costs one card's height instead of two */
  .sts{background:none;box-shadow:none;border-radius:0;display:flex;gap:10px;overflow-x:auto;
    scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:none;
    margin:0 calc(-1 * var(--pad));padding:2px var(--pad) 6px;scroll-padding:0 var(--pad);
    -webkit-overflow-scrolling:touch;grid-template-columns:none;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
  .sts::-webkit-scrollbar{display:none}
  .sts .st{flex:0 0 86%;scroll-snap-align:start;border-radius:var(--r-card);
    background:linear-gradient(150deg,#16223F 0%,var(--ink) 55%,#0A1120 100%);
    box-shadow:0 16px 34px -22px rgba(12,21,38,.7)}
:where(html[data-appearance="dark"]) .sts .st{background:linear-gradient(150deg,#16223F 0%,var(--ink-fill) 55%,#0A1120 100%);box-shadow:0 16px 34px -22px rgba(0,0,0,0.75)}
  .sts .st + .st{border-top:0}

  /* the state moves to the corner and the sentence goes, so a track reads
     in one glance instead of half a screen */
  .st{position:relative;padding:14px 16px 13px}
  /* the pill hangs off the card, not the track, or it lands on the footer */
  .st-track{position:static}
  .st-bar{position:relative}
  .st-body{display:none}
  .st-name{font-size:16px}
  .st-track{margin-top:12px}
  .st .st-pill{position:absolute;top:13px;right:16px;bottom:auto;left:auto;
    transform:none;opacity:1;font-size:11px;padding:4px 9px}
  .st .st-pill.is-mid{transform:none}
  .st .st-pill::after{display:none}
  .st-foot{margin-top:9px}
  .st-note{font-size:11.6px}

  /* the lists are a taste, with the rest one tap away */
  .afeed{padding:0 16px}
  .af{padding:11px 0;min-height:52px}
  .evs-panel{padding:12px 16px 4px}
  .ev{padding:9px 0}
}

/* ---------- the shortcut band ----------
   What would otherwise sit behind More: a mark and a word, four across.
   Most clients never open that sheet, so the eight they use are on Home. */
@media (max-width:760px){
  .qmore{order:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;
    background:var(--surface);border-radius:18px;padding:10px 5px;box-shadow:var(--lift-card)}
  .qm{display:flex;flex-direction:column;align-items:center;gap:6px;padding:5px 2px;border-radius:12px;
    min-height:60px;transition:background var(--t-quick) var(--ease),transform var(--t-quick) var(--ease)}
  .qm-i{position:relative;width:37px;height:37px;border-radius:12px;background:var(--surface-sunk);
    display:grid;place-items:center;color:var(--ink-2);flex:none}
  /* a shortcut that is waiting on you says so, the way the sheet did */
  .qm-b{position:absolute;top:-4px;right:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;
    background:var(--gold);color:var(--ink);font-size:10.5px;font-weight:700;line-height:16px;
    text-align:center;font-style:normal;box-shadow:0 0 0 2px var(--surface)}
  .qm-i svg{width:19px;height:19px}
  .qm-l{font-size:11.2px;font-weight:500;color:var(--ink-2);line-height:1.15;text-align:center;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .qm:active{transform:scale(.94);background:#EEF1F7}
:where(html[data-appearance="dark"]) .qm:active{background:rgba(255,255,255,0.1)}
  @media (prefers-reduced-motion:reduce){ .qm:active{transform:none} }
}

/* ============================================================
   Home, the marks: glass plates on the three money squares, and
   an arrival for every icon on the first screen.

   The plates are lit rather than filled — a crown along the top
   edge, a soft floor shadow under the glyph, and a glint that
   crosses once and then rests. The glint is the same idea as the
   progress bar's sweep, slowed down and given a long pause, so a
   screen of eleven icons never reads as a screen of eleven things
   blinking at you.
   ============================================================ */
@media (max-width:760px){

  /* ---------- the three money squares ---------- */
  .qsq .qa-i{position:relative;overflow:hidden;isolation:isolate;
    background:
      linear-gradient(158deg,
        rgba(255,255,255,.98) 0%,
        rgba(237,242,250,.86) 46%,
        rgba(246,249,253,.94) 100%),
      var(--surface-sunk);
    box-shadow:
      0 6px 13px -7px rgba(13,39,80,.34),
      0 1px 2px rgba(13,39,80,.10),
      inset 0 1.5px 0 rgba(255,255,255,1),
      inset 0 -2px 3px rgba(13,39,80,.055),
      inset 0 0 0 1px rgba(255,255,255,.7);
    transition:transform var(--t-quick) var(--ease),box-shadow var(--t-quick) var(--ease)}
:where(html[data-appearance="dark"]) .qsq .qa-i{background:linear-gradient(158deg,
        rgba(16,21,42,0.98) 0%,
        rgba(255,255,255,0.07) 46%,
        rgba(255,255,255,0.06) 100%),
      var(--surface-sunk);box-shadow:0 6px 13px -7px rgba(0,0,0,0.75),
      0 1px 2px rgba(0,0,0,0.29),
      inset 0 1.5px 0 rgba(255,255,255,0.35),
      inset 0 -2px 3px rgba(0,0,0,0.11),
      inset 0 0 0 1px rgba(255,255,255,0.245)}
  /* the crown: light sitting on a curved face, not a flat sheet */
  .qsq .qa-i::before{content:'';position:absolute;z-index:0;pointer-events:none;
    left:8%;right:8%;top:1px;height:46%;
    border-radius:99px 99px 60% 60%/99px 99px 26px 26px;
    background:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.24) 62%,transparent 100%)}
:where(html[data-appearance="dark"]) .qsq .qa-i::before{background:linear-gradient(180deg,rgba(255,255,255,0.209) 0%,rgba(255,255,255,.24) 62%,transparent 100%)}
  /* the glint: one pass, then it waits */
  .qsq .qa-i::after{content:'';position:absolute;z-index:0;pointer-events:none;
    top:-30%;bottom:-30%;left:0;width:56%;
    background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.9) 50%,rgba(255,255,255,0) 100%);
    transform:translateX(-190%) skewX(-18deg);
    animation:plateglint 6.4s cubic-bezier(.4,0,.2,1) infinite}
:where(html[data-appearance="dark"]) .qsq .qa-i::after{background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.198) 50%,rgba(255,255,255,0) 100%)}
  .qsq .qa-i svg{position:relative;z-index:1;
    filter:drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 1.5px 2px rgba(13,39,80,.22))}
:where(html[data-appearance="dark"]) .qsq .qa-i svg{filter:drop-shadow(0 1px 0 rgba(255,255,255,0.045)) drop-shadow(0 1.5px 2px rgba(0,0,0,0.578))}
  /* the three do not glint together */
  .qgrid .qsq:nth-child(2) .qa-i::after{animation-delay:.55s}
  .qgrid .qsq:nth-child(3) .qa-i::after{animation-delay:1.1s}

  /* Deposit's plate is the same glass cut from gold, on the dark tile */
  .qsq.is-gold .qa-i{
    background:
      linear-gradient(158deg,
        rgba(255,222,120,.34) 0%,
        rgba(240,180,41,.16) 48%,
        rgba(255,214,102,.26) 100%),
      rgba(240,180,41,.10);
    box-shadow:
      0 6px 15px -7px rgba(240,180,41,.55),
      inset 0 1.5px 0 rgba(255,232,160,.75),
      inset 0 -2px 4px rgba(0,0,0,.22),
      inset 0 0 0 1px rgba(240,180,41,.4)}
:where(html[data-appearance="dark"]) .qsq.is-gold .qa-i{box-shadow:0 6px 15px -7px rgba(240,180,41,.55),
      inset 0 1.5px 0 rgba(255,232,160,.75),
      inset 0 -2px 4px rgba(0,0,0,0.44),
      inset 0 0 0 1px rgba(240,180,41,.4)}
  .qsq.is-gold .qa-i::before{
    background:linear-gradient(180deg,rgba(255,236,175,.75) 0%,rgba(255,224,130,.16) 62%,transparent 100%)}
  .qsq.is-gold .qa-i::after{
    background:linear-gradient(90deg,rgba(255,240,190,0) 0%,rgba(255,244,205,.75) 50%,rgba(255,240,190,0) 100%)}
:where(html[data-appearance="dark"]) .qsq.is-gold .qa-i::after{background:linear-gradient(90deg,rgba(255,240,190,0) 0%,rgba(228,197,88,0.14) 50%,rgba(255,240,190,0) 100%)}
  .qsq.is-gold .qa-i svg{filter:drop-shadow(0 1px 3px rgba(240,180,41,.5))}

  /* pressing the square presses the plate into it */
  .qsq:active .qa-i{transform:scale(.93);
    box-shadow:
      0 2px 5px -3px rgba(13,39,80,.3),
      inset 0 1px 0 rgba(255,255,255,.9),
      inset 0 2px 5px rgba(13,39,80,.10),
      inset 0 0 0 1px rgba(255,255,255,.6)}
:where(html[data-appearance="dark"]) .qsq:active .qa-i{box-shadow:0 2px 5px -3px rgba(0,0,0,0.75),
      inset 0 1px 0 rgba(255,255,255,0.315),
      inset 0 2px 5px rgba(0,0,0,0.2),
      inset 0 0 0 1px rgba(255,255,255,0.21)}
  .qsq.is-gold:active .qa-i{
    box-shadow:
      0 2px 6px -3px rgba(240,180,41,.45),
      inset 0 1px 0 rgba(255,232,160,.6),
      inset 0 2px 6px rgba(0,0,0,.3),
      inset 0 0 0 1px rgba(240,180,41,.45)}
:where(html[data-appearance="dark"]) .qsq.is-gold:active .qa-i{box-shadow:0 2px 6px -3px rgba(240,180,41,.45),
      inset 0 1px 0 rgba(255,232,160,.6),
      inset 0 2px 6px rgba(0,0,0,0.6),
      inset 0 0 0 1px rgba(240,180,41,.45)}

  /* ---------- every mark on the first screen arrives ----------
     The blocks already rise as a cascade; the marks land inside them,
     each a beat after the last, so the screen assembles rather than
     appearing. Both animations run on the same element, so the arrival
     sets transform and the glint waits for its own delay. */
  .qsq .qa-i,.qm-i,.qtile .qa-i{animation-name:iconland;
    animation-duration:.52s;animation-timing-function:cubic-bezier(.34,1.5,.5,1);
    animation-fill-mode:both}
  /* --d is set once on the button and inherits to both the plate and the
     glyph inside it, so the two stay a beat apart without repeating a list */
  .qsq .qa-i,.qm-i,.qtile .qa-i{animation-delay:var(--d,0s)}
  .qgrid .qsq:nth-child(1){--d:.05s}
  .qgrid .qsq:nth-child(2){--d:.11s}
  .qgrid .qsq:nth-child(3){--d:.17s}
  .qmore .qm:nth-child(1){--d:.20s}
  .qmore .qm:nth-child(2){--d:.25s}
  .qmore .qm:nth-child(3){--d:.30s}
  .qmore .qm:nth-child(4){--d:.35s}
  .qmore .qm:nth-child(5){--d:.26s}
  .qmore .qm:nth-child(6){--d:.31s}
  .qmore .qm:nth-child(7){--d:.36s}
  .qmore .qm:nth-child(8){--d:.41s}
  .qpair .qtile:nth-child(1){--d:.44s}
  .qpair .qtile:nth-child(2){--d:.49s}

  /* ---------- and the glyph moves the way the thing it names moves ----------
     The plate lands first; the mark inside it arrives a beat later, along the
     axis it means. Money coming in falls, money going out lifts, the plane
     flies in on its own heading, the bubble pops the way a message does. Each
     button already carries data-go, so the icon is addressed by destination —
     no extra class, and a renamed shortcut keeps its motion.
     This runs on arrival and on the press, and nowhere in between: eleven
     marks looping would be a fairground. */
  /* Two animations on the glyph. The first is the arrival and runs once. The
     second is the same idea on a loop, and starts only after the arrival has
     finished — an animation that has not begun applies nothing, so the two
     never fight over transform.
     --ld spreads the loops 350ms apart across a 4.55s cycle, which is thirteen
     marks at 350ms each: the wave comes round exactly as it leaves, and only
     one glyph is moving at any moment. */
  .qsq .qa-i svg,.qm-i svg,.qtile .qa-i svg{
    animation-name:glyph-in,loop-in;
    animation-duration:.62s,4.55s;
    animation-timing-function:cubic-bezier(.28,1.36,.44,1),cubic-bezier(.4,0,.3,1);
    animation-fill-mode:both,none;
    animation-iteration-count:1,infinite;
    animation-delay:calc(var(--d,0s) + .07s),calc(var(--ld,0s) + .95s);
    transition:transform 260ms cubic-bezier(.28,1.36,.44,1)}

  /* the three money squares */
  .qsq[data-go="deposit"]  .qa-i svg{animation-name:glyph-fall,loop-fall}
  .qsq[data-go="withdraw"] .qa-i svg{animation-name:glyph-lift,loop-lift}
  .qsq[data-go="funds"]    .qa-i svg{animation-name:glyph-tuck,loop-tuck}
  /* the shortcut band */
  .qm[data-go="crypto-wallet"]   .qm-i svg{animation-name:glyph-fly,loop-fly}
  .qm[data-go="transactions"]    .qm-i svg{animation-name:glyph-open,loop-open}
  .qm[data-go="payment-details"] .qm-i svg{animation-name:glyph-tuck,loop-tuck}
  .qm[data-go="news"]            .qm-i svg{animation-name:glyph-slide,loop-slide}
  .qm[data-go="mentor"]          .qm-i svg{animation-name:glyph-nod,loop-nod}
  .qm[data-go="support"]         .qm-i svg{animation-name:glyph-pop,loop-pop}
  .qm[data-go="positions"]       .qm-i svg{animation-name:glyph-lift,loop-lift}
  /* the calculator's keys press down, which is what the default already does;
     named here so it reads as a choice rather than the one that was missed */
  .qm[data-go="calculator"]      .qm-i svg{animation-name:glyph-in,loop-in}
  /* the two openings: a layer landing on the stack, and a case swinging in hand */
  .qtile[data-go="open-live"] .qa-i svg{animation-name:glyph-stack,loop-stack}
  .qtile[data-go="open-demo"] .qa-i svg{animation-name:glyph-case,loop-case}

  /* the wave: the order the eye reads them in */
  .qgrid .qsq:nth-child(1){--ld:0s}
  .qgrid .qsq:nth-child(2){--ld:.35s}
  .qgrid .qsq:nth-child(3){--ld:.7s}
  .qmore .qm:nth-child(1){--ld:1.05s}
  .qmore .qm:nth-child(2){--ld:1.4s}
  .qmore .qm:nth-child(3){--ld:1.75s}
  .qmore .qm:nth-child(4){--ld:2.1s}
  .qmore .qm:nth-child(5){--ld:2.45s}
  .qmore .qm:nth-child(6){--ld:2.8s}
  .qmore .qm:nth-child(7){--ld:3.15s}
  .qmore .qm:nth-child(8){--ld:3.5s}
  .qpair .qtile:nth-child(1){--ld:3.85s}
  .qpair .qtile:nth-child(2){--ld:4.2s}

  /* the press repeats the same idea, shorter */
  .qsq[data-go="deposit"]:active  .qa-i svg{transform:translateY(3px)}
  .qsq[data-go="withdraw"]:active .qa-i svg{transform:translateY(-3px)}
  .qsq[data-go="funds"]:active    .qa-i svg{transform:translateX(2px) rotate(-6deg)}
  .qm[data-go="crypto-wallet"]:active .qm-i svg{transform:translate(3px,-3px)}
  .qm[data-go="transactions"]:active  .qm-i svg{transform:scaleY(.82)}
  .qm[data-go="mentor"]:active        .qm-i svg{transform:rotate(-8deg)}
  .qm[data-go="support"]:active       .qm-i svg{transform:scale(1.14)}
  .qm[data-go="positions"]:active     .qm-i svg{transform:translateY(-3px)}
  .qm[data-go="news"]:active          .qm-i svg{transform:translateX(2px)}
  .qm[data-go="payment-details"]:active .qm-i svg{transform:rotate(-7deg)}
  .qm[data-go="calculator"]:active    .qm-i svg{transform:scale(.86)}
  .qtile[data-go="open-live"]:active  .qa-i svg{transform:translateY(-3px)}
  .qtile[data-go="open-demo"]:active  .qa-i svg{transform:rotate(8deg)}

  /* the shortcut plate answers the finger too */
  .qm:active .qm-i{transform:scale(.9)}
  .qm-i{transition:transform var(--t-quick) var(--ease),background var(--t-quick) var(--ease)}

  @keyframes glyph-in   {from{opacity:0;transform:scale(.62)}            to{opacity:1;transform:none}}
  @keyframes glyph-fall {from{opacity:0;transform:translateY(-10px)}     to{opacity:1;transform:none}}
  @keyframes glyph-lift {from{opacity:0;transform:translateY(10px)}      to{opacity:1;transform:none}}
  @keyframes glyph-tuck {from{opacity:0;transform:translateX(-7px) rotate(-10deg)} to{opacity:1;transform:none}}
  @keyframes glyph-fly  {from{opacity:0;transform:translate(-8px,8px) rotate(-14deg)} to{opacity:1;transform:none}}
  @keyframes glyph-open {from{opacity:0;transform:scaleY(.35)}           to{opacity:1;transform:none}}
  @keyframes glyph-slide{from{opacity:0;transform:translateX(-8px)}      to{opacity:1;transform:none}}
  @keyframes glyph-nod  {from{opacity:0;transform:translateY(-6px) rotate(9deg)} to{opacity:1;transform:none}}
  @keyframes glyph-pop  {from{opacity:0;transform:scale(.45) translateY(5px)} to{opacity:1;transform:none}}
  @keyframes glyph-stack{from{opacity:0;transform:translateY(-9px) scale(.86)} to{opacity:1;transform:none}}
  @keyframes glyph-case {from{opacity:0;transform:rotate(-13deg) scale(.74)}   to{opacity:1;transform:none}}

  /* the loops: out and back inside the first fifth of the cycle, still for the
     rest of it. Opacity is never touched — a mark that fades reads as a fault. */
  @keyframes loop-in   {0%,22%,100%{transform:none} 8%{transform:scale(.88)}}
  @keyframes loop-fall {0%,22%,100%{transform:none} 8%{transform:translateY(4px)}}
  @keyframes loop-lift {0%,22%,100%{transform:none} 8%{transform:translateY(-4px)}}
  @keyframes loop-tuck {0%,22%,100%{transform:none} 8%{transform:translateX(2.5px) rotate(-8deg)}}
  @keyframes loop-fly  {0%,22%,100%{transform:none} 8%{transform:translate(4px,-4px) rotate(6deg)}}
  @keyframes loop-open {0%,22%,100%{transform:none} 8%{transform:scaleY(.8)}}
  @keyframes loop-slide{0%,22%,100%{transform:none} 8%{transform:translateX(3px)}}
  @keyframes loop-nod  {0%,22%,100%{transform:none} 8%{transform:rotate(-9deg)}}
  @keyframes loop-pop  {0%,22%,100%{transform:none} 8%{transform:scale(1.14)}}
  @keyframes loop-stack{0%,22%,100%{transform:none} 8%{transform:translateY(-3.5px)}}
  @keyframes loop-case {0%,22%,100%{transform:none} 8%{transform:rotate(8deg)}}

  @keyframes iconland{
    from{opacity:0;transform:scale(.5)}
    to  {opacity:1;transform:none}
  }
  @keyframes plateglint{
    0%       {transform:translateX(-190%) skewX(-18deg)}
    17%      {transform:translateX(230%)  skewX(-18deg)}
    100%     {transform:translateX(230%)  skewX(-18deg)}
  }

  @media (prefers-reduced-motion:reduce){
    .qsq .qa-i,.qm-i,.qtile .qa-i,
    .qsq .qa-i svg,.qm-i svg,.qtile .qa-i svg{animation:none;transition:none}
    .qsq .qa-i::after{animation:none;opacity:0}
    .qsq:active .qa-i,.qm:active .qm-i,
    .qsq:active .qa-i svg,.qm:active .qm-i svg{transform:none}
  }
}
