/* qg-motion.css: the Quantum Glass motion system (MKT-SITE-QUANTUM-REBUILD, 12-02-26).
   Shared by the homepage (Views/Home/Index.cshtml and IndexEs.cshtml) and the Quantum Glass product page template
   (qg-product.css, pilot: /instant-term-life-insurance).
   Rules this file keeps:
   1. transform and opacity only, so no motion causes layout shift or repaints a large area; no scroll-jacking (nothing
      changes the scroll speed or position; the pinned explainer is position:sticky inside a taller section).
   2. CSS scroll-driven animations (animation-timeline) where the browser has them; qg-motion.js adds an
      IntersectionObserver fallback (html.no-sda) where it does not.
   3. prefers-reduced-motion: reduce gives the calm static version of every motion (the final, composed state), and turns
      the cross-document view transition off.
   4. Colour (r2, 12-02-26, PENTA r1: both judges named the gold buttons off-palette). The primary button is the live site's
      brand blue #1d63b8 with white text (5.9:1), no glow; hover a darker blue #17539b (7.6:1). r7 (12-02-26, PENTA r6: both
      judges called the gold Decision coin off-palette): the DECIDED state is brand green #3eae54 (--qg-decided), flat, with a
      white mark: the decision path's third node, the decision sequence's third node, its disc and its ring. r9 (12-02-26, PENTA
      r8, GPT es: a check reads as "approved", not "decided"): the white mark is a filled dot, never a check. The design
      system reserves gold for decided or resolved and allows another colour for a decided state; these pages use green. Gold
      (#ffd36b) is left ONLY at the end of the brand meter (--qg-meter); never a button, a headline word, a hover, a focus ring
      (focus on the navy field is ice #9fd0ff, 9:1) or a decision node. The logo rainbow appears only in the mark and in one
      thin accent hairline (.qg-hairline). Tokens follow instabrain-design-system tokens/tokens.css. */

:root{
  --qg-900:#031f34; --qg-800:#04263f; --qg-600:#0a4470;
  --qg-field:radial-gradient(120% 120% at 72% 8%,#0a4470,#04263f 62%,#031f34);
  --qg-decided:#3eae54; --qg-on-decided:#fff;      /* the decided state (rule 4, r7): brand green; r9: a white dot, no check */
  --qg-blue:#1d63b8; --qg-blue-2:#17539b;          /* the primary button (the live site's brand blue) */
  --qg-ice:#9fd0ff; --qg-mint:#8fe0a3; --qg-dim:#c9dcf0; --qg-paper:#f6f9fd;
  --qg-glass:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03));
  --qg-line:rgba(255,255,255,.14); --qg-line-2:rgba(255,255,255,.24);
  --qg-shadow:0 44px 100px -44px rgba(2,16,30,.8);
  --qg-hair-in:inset 0 1px 0 rgba(255,255,255,.08);
  --qg-rainbow:linear-gradient(90deg,#e8563b,#f0a83c,#f4c93d,#3eae54,#3b78ce,#7b4fa0);
  --qg-meter:linear-gradient(90deg,#3b78ce,#3eae54,#ffd36b);
  --qg-ease:cubic-bezier(.22,1,.36,1);       /* tokens --ib-ease-out */
  --qg-ease-io:cubic-bezier(.65,0,.35,1);    /* tokens --ib-ease-inout */
  --qg-fast:180ms; --qg-base:340ms; --qg-slow:640ms;
  --qg-sheet-r:clamp(22px,3vw,44px);
}

/* ---------- cross-document view transitions (homepage <-> Quantum Glass product pages) ---------- */
@view-transition { navigation:auto; }
::view-transition-group(root){ animation-duration:420ms; animation-timing-function:var(--qg-ease); }
::view-transition-old(root){ animation:qg-vt-out 260ms var(--qg-ease-io) both; }
::view-transition-new(root){ animation:qg-vt-in 420ms var(--qg-ease) both; }
::view-transition-group(qg-product){ animation-duration:560ms; animation-timing-function:var(--qg-ease); }
@keyframes qg-vt-out{ to{ opacity:0; transform:scale(.985); } }
@keyframes qg-vt-in{ from{ opacity:0; transform:translate3d(0,14px,0); } }

/* ---------- the motion vocabulary (each section uses its own; see the spec, section 2) ---------- */
@keyframes qg-lift{ from{ opacity:0; transform:translate3d(0,30px,0); } to{ opacity:1; transform:none; } }
@keyframes qg-fade{ from{ opacity:0; transform:translate3d(0,10px,0); } to{ opacity:1; transform:none; } }
@keyframes qg-card{ from{ opacity:0; transform:translate3d(0,46px,0) scale(.955); } to{ opacity:1; transform:none; } }
@keyframes qg-tilt{ from{ opacity:0; transform:perspective(1400px) translate3d(0,60px,0) rotateX(14deg) scale(.96); } to{ opacity:1; transform:perspective(1400px) rotateX(0deg); } }
@keyframes qg-slide{ from{ opacity:0; transform:translate3d(-30px,0,0); } to{ opacity:1; transform:none; } }
@keyframes qg-sheet{ from{ transform:scale(.94); } to{ transform:none; } }
@keyframes qg-intro{ from{ opacity:0; transform:translate3d(0,18px,0); } to{ opacity:1; transform:none; } }
@keyframes qg-settle{ from{ transform:translate3d(0,22px,0); } to{ transform:none; } }
@keyframes qg-orb-in{ from{ transform:scale(1.06); } to{ transform:none; } }
@keyframes qg-spin{ to{ transform:rotate(360deg); } }
@keyframes qg-float{ 0%,100%{ transform:translate3d(0,0,0) rotate(0deg); } 50%{ transform:translate3d(0,-10px,0) rotate(1.2deg); } }
@keyframes qg-blink{ 0%,60%,100%{ opacity:.3; } 30%{ opacity:1; } }

/* utility classes (product template; the homepage maps its existing .reveal elements to the same keyframes) */
.qg-lift,.qg-fade,.qg-card,.qg-tilt,.qg-slide{ will-change:auto; }
@supports (animation-timeline: view()){
  .qg-lift,.qg-fade,.qg-card,.qg-tilt,.qg-slide{ animation:qg-lift both var(--qg-ease); animation-timeline:view(); animation-range:entry 0% entry 62%; }
  .qg-fade{ animation-name:qg-fade; }
  .qg-card{ animation-name:qg-card; }
  .qg-tilt{ animation-name:qg-tilt; animation-range:entry 0% entry 80%; }
  .qg-slide{ animation-name:qg-slide; }
  /* a section sheet: a rounded panel that opens to full width as its top edge rises into view */
  .qg-sheet{ transform-origin:50% 0; animation:qg-sheet linear both; animation-timeline:view(); animation-range:entry 0% entry 360px; }
}
/* the IntersectionObserver fallback (qg-motion.js adds .qg-in) */
html.js.no-sda .qg-lift,html.js.no-sda .qg-fade,html.js.no-sda .qg-card,html.js.no-sda .qg-tilt,html.js.no-sda .qg-slide{ opacity:0; transform:translate3d(0,26px,0); transition:opacity var(--qg-slow) var(--qg-ease),transform var(--qg-slow) var(--qg-ease); }
html.js.no-sda .qg-slide{ transform:translate3d(-26px,0,0); }
html.js.no-sda .qg-in{ opacity:1 !important; transform:none !important; }

/* ---------- sheets: the section cut. A rounded panel that slides over the section before it (no blurred band). The page sets the
   sheet's own background; the motion (qg-sheet) opens it from a 94% card to full width as its top edge rises. ---------- */
.qg-sheet{ position:relative; z-index:1; margin-top:calc(var(--qg-sheet-r) * -1); border-radius:var(--qg-sheet-r) var(--qg-sheet-r) 0 0; }
.sheet-paper{ background:var(--qg-paper); box-shadow:0 -1px 0 rgba(255,255,255,.16),0 -34px 70px -40px rgba(2,16,30,.7); }
.sheet-navy{ color:#fff; box-shadow:0 -1px 0 rgba(255,255,255,.1),0 -30px 70px -44px rgba(3,31,52,.55); }

/* ---------- the accent hairline (the one place the logo rainbow appears outside the mark) ---------- */
.qg-hairline{ height:1px; background:var(--qg-rainbow); opacity:.55; -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); }

/* ---------- buttons: the next step is brand blue, white text, no glow (rule 4) ---------- */
.qg-btn-primary{ background:var(--qg-blue); color:#fff; box-shadow:none; }
.qg-btn-primary:hover{ background:var(--qg-blue-2); color:#fff; }

/* ---------- the Spanish pages' EN mark (pb-nav.css .pb-en, PR 176): kept, quieter (r2, 12-02-26): smaller, muted, small caps,
   on the pages that load this file. r8 (12-02-26, PENTA r7, Gemini es: the boxed marks on the nav, product and footer links read as
   clutter): no box and no pill, quiet text only: the same two letters, small caps at .72em beside the link text, at 80% of the link's
   colour (5.3:1 for the footer's dimmer links on navy; the homepage sets it slate on paper). The product pages are English only, so
   the mark stays on every link to them. ---------- */
html[lang="es"] .pb-en{ margin-left:.4em; padding:0; border:0; border-radius:0; background:none;
  font-size:.72em; font-weight:600; font-variant-caps:all-small-caps; letter-spacing:.08em; line-height:1; opacity:.8; vertical-align:.06em; }

/* ==========================================================================================================
   THE DECISION SEQUENCE (.qg-seq): an application moving Application -> Braining... -> Decision as the reader
   scrolls. Labels only: no number, no approval word, no time promise. r2 (12-02-26, PENTA r1: the start state read as a
   skeleton loader): the start and static state is a finished interface: the first node lit, the meter part-filled, the form's
   rows complete (a check dot each, varied widths, the answered row filled in blue); motion only adds the scan and the decision.
   The host declares the timeline:
     view-timeline: --qg-seq block;   (and may set --qg-seq-range)
   Every part runs on that one timeline; the keyframe percentages place the three states on it.
   ========================================================================================================== */
.qg-seq{ position:relative; border-radius:26px; padding:24px 24px 26px; color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03)),rgba(3,31,52,.55);
  border:1px solid var(--qg-line); box-shadow:var(--qg-shadow),var(--qg-hair-in);
  -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%); overflow:hidden; isolation:isolate; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .qg-seq{ background:rgba(4,38,63,.94); } }
.qg-seq::before{ content:""; position:absolute; inset:-30% -20% auto auto; width:70%; height:80%; background:radial-gradient(closest-side,rgba(59,120,206,.32),transparent); pointer-events:none; z-index:-1; }
.qg-seq-track{ position:relative; }
.qg-seq-track::before{ content:""; position:absolute; left:16.66%; right:16.66%; top:9px; height:2px; border-radius:2px; background:rgba(255,255,255,.12); }
.qg-seq-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); position:relative; }
.qg-seq-fill{ position:absolute; left:16.66%; right:16.66%; top:9px; height:2px; border-radius:2px; background:linear-gradient(90deg,#3b78ce,#3eae54); transform-origin:0 50%; transform:scaleX(.24); }
/* the fill is blue to green: the green end arrives with the third node (decided, rule 4) */
.qg-seq-steps li{ display:flex; flex-direction:column; align-items:center; gap:10px; position:relative; }
.qg-seq-steps b{ position:relative; width:20px; height:20px; border-radius:50%; background:var(--qg-800); border:1px solid var(--qg-line-2); display:block; }
.qg-seq-steps b::after{ content:""; position:absolute; inset:3px; border-radius:50%; opacity:0; }
.qg-seq-steps li:nth-child(1) b::after{ background:var(--qg-ice); box-shadow:0 0 14px 2px rgba(159,208,255,.65); }
.qg-seq-steps li:nth-child(2) b::after{ background:var(--qg-mint); box-shadow:0 0 14px 2px rgba(143,224,163,.6); }
.qg-seq-steps li:nth-child(3) b::after{ background:var(--qg-decided); }   /* r7: flat green, no glow (rule 4) */
.qg-seq-steps span{ font-family:'Open Sans',system-ui,sans-serif; font-size:clamp(.62rem,.5rem + .5vw,.8rem); font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:#fff; opacity:.42; white-space:nowrap; }
.qg-seq-dots i{ display:inline-block; width:4px; height:4px; border-radius:50%; background:var(--qg-ice); margin-left:3px; vertical-align:middle; animation:qg-blink 1.3s infinite; }
.qg-seq-dots i:nth-child(2){ animation-delay:.18s; } .qg-seq-dots i:nth-child(3){ animation-delay:.36s; }
.qg-seq-stage{ position:relative; height:clamp(236px,23vw,290px); margin-top:20px; display:grid; place-items:center; }
.qg-seq-stage::before{ content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 1px 1px,rgba(159,208,255,.2) 1px,transparent 1.6px) 0 0/22px 22px;
  -webkit-mask-image:radial-gradient(closest-side,#000 40%,transparent); mask-image:radial-gradient(closest-side,#000 40%,transparent); }
.qg-seq-orbit{ position:absolute; width:min(88%,330px); aspect-ratio:1; border-radius:50%; border:1px dashed rgba(159,208,255,.22); opacity:0; }
.qg-seq-orbit::before,.qg-seq-orbit::after{ content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:var(--qg-ice); box-shadow:0 0 12px rgba(159,208,255,.9); top:-4px; left:calc(50% - 4px); }
.qg-seq-orbit::after{ top:auto; bottom:-4px; background:var(--qg-mint); box-shadow:0 0 12px rgba(143,224,163,.9); }
.qg-seq-spin{ position:absolute; inset:0; display:grid; place-items:center; animation:qg-spin 14s linear infinite; }
.qg-seq-doc{ position:relative; width:min(84%,340px); padding:20px 18px 18px; border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05)); border:1px solid var(--qg-line-2); box-shadow:0 30px 60px -30px rgba(0,0,0,.7),var(--qg-hair-in); overflow:hidden; }
/* the form: a title bar, then four answered rows. Each row is a field: a mint check dot and its value bar (varied widths); the
   second row is the one in focus, filled in brand blue. No words: the glyph is the check the panel already uses. */
.qg-seq-doc i{ display:flex; align-items:center; gap:10px; height:28px; margin:0 0 8px; padding:0 10px; border-radius:9px; font-style:normal;
  background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.09); }
.qg-seq-doc i::before{ content:"\2713"; flex:none; display:grid; place-items:center; width:15px; height:15px; border-radius:50%;
  font:700 9px/1 system-ui,-apple-system,'Segoe UI Symbol',sans-serif; color:var(--qg-800); background:var(--qg-mint); box-shadow:0 0 10px -2px rgba(143,224,163,.7); }
.qg-seq-doc i::after{ content:""; flex:none; width:var(--w,64%); height:7px; border-radius:4px; background:rgba(255,255,255,.44); }
.qg-seq-doc i.qg-h{ height:auto; margin:2px 0 14px; padding:0; background:none; border:0; }
.qg-seq-doc i.qg-h::before{ display:none; }
.qg-seq-doc i.qg-h::after{ width:44%; height:9px; background:rgba(255,255,255,.66); }
.qg-seq-doc i.qg-l1{ --w:68%; } .qg-seq-doc i.qg-l2{ --w:50%; } .qg-seq-doc i.qg-l3{ --w:78%; } .qg-seq-doc i.qg-l4{ --w:38%; margin-bottom:0; }
.qg-seq-doc i.qg-l2{ background:linear-gradient(90deg,var(--qg-blue),#3b78ce); border-color:rgba(159,208,255,.55); box-shadow:0 10px 22px -12px rgba(29,99,184,.9),inset 0 1px 0 rgba(255,255,255,.18); }
.qg-seq-doc i.qg-l2::before{ background:#fff; color:var(--qg-blue); box-shadow:none; }
.qg-seq-doc i.qg-l2::after{ background:rgba(255,255,255,.88); }
.qg-seq-beam{ position:absolute; left:0; right:0; top:0; height:38%; background:linear-gradient(180deg,transparent,rgba(159,208,255,.28) 70%,rgba(159,208,255,.75)); opacity:0; transform:translate3d(0,-100%,0); pointer-events:none; }
/* r7 (PENTA r6): the decided disc is flat green (rule 4); no gold, no gloss, no glow; its ring green. r9 (PENTA r8, GPT es: the
   check read as "approved", not "decided"): the disc carries a neutral white dot (34% of the disc, drawn), no check glyph */
.qg-seq-ok{ position:absolute; right:calc(50% - min(39%,150px) - 18px); bottom:8%; width:58px; height:58px; border-radius:50%; background:var(--qg-decided); color:var(--qg-on-decided); display:grid; place-items:center; box-shadow:none; opacity:0; transform:scale(.4); }
.qg-seq-ok::before{ content:""; width:34%; height:34%; border-radius:50%; background:var(--qg-on-decided); }
.qg-seq-ok::after{ content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(62,174,84,.7); opacity:0; }
/* r9 (12-02-26, PENTA r8, both judges: the engine had three unrelated pictures, one of them this form of blank placeholder bars): a
   stage may hold the paisley mark (.qg-seq-mark, the hero's mark: the same raster, never above its native pixels, on the same
   flat navy disc inside the same 2px ice ring, no glow) in place of the form; the stage then draws no dot grid and no orbit, and
   the decided disc sits on the ring's lower right. The mark brightens at Braining (opacity only); its static state is the full
   mark. The product pages keep their form (its rows carry the page's own facts). */
.qg-seq{ --qg-seq-mark-s:clamp(180px,17vw,236px); }
.qg-seq-mark{ position:relative; display:block; width:var(--qg-seq-mark-s); aspect-ratio:1;
  background:radial-gradient(closest-side,#04385d calc(100% - 1px),rgba(4,56,93,0) 100%) 50% 50%/92% 92% no-repeat; }
.qg-seq-mark::after{ content:""; position:absolute; inset:4%; border-radius:50%; border:2px solid rgba(159,208,255,.72); pointer-events:none; }
.qg-seq-mark img{ position:absolute; inset:0; width:100%; height:100%; }
.qg-seq-stage:has(> .qg-seq-mark)::before{ content:none; }
/* r11 (12-03-26): no view puts a .qg-seq-mark in a stage any more (the homepage For agents panel has no stage; see Index.cshtml). */
.qg-seq-mark ~ .qg-seq-ok{ right:calc(50% - var(--qg-seq-mark-s) * .36 - 29px); bottom:calc(50% - var(--qg-seq-mark-s) * .36 - 29px); }
@keyframes qg-seq-mark{ 0%,30%{ opacity:.6; } 38%,100%{ opacity:1; } }
/* r3 (12-02-26): the corner hook for a small tag kept for later. The span is empty
   and takes no space until it holds its word; the panel's bottom corner (inside its padding, clear of the stage) is kept for it. */
.qg-seq-tag{ position:absolute; right:18px; bottom:9px; z-index:2; font:700 .62rem/1.4 'Open Sans',system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.62); pointer-events:none; }
.qg-seq-tag:empty{ display:none; }

/* the states on the timeline: 0% Application (the form complete, the first node lit, the meter part-filled), 34% Braining (scan,
   orbit, the meter to the second node), 66% Decision (the green node, check and ring, r7), hold */
@keyframes qg-seq-n1{ 0%,100%{ opacity:1; } }
@keyframes qg-seq-n2{ 0%,30%{ opacity:0; } 38%,100%{ opacity:1; } }
@keyframes qg-seq-n3{ 0%,62%{ opacity:0; } 70%,100%{ opacity:1; } }
@keyframes qg-seq-t1{ 0%,100%{ opacity:1; } }
@keyframes qg-seq-t2{ 0%,30%{ opacity:.42; } 38%,100%{ opacity:1; } }
@keyframes qg-seq-t3{ 0%,62%{ opacity:.42; } 70%,100%{ opacity:1; } }
@keyframes qg-seq-fill{ 0%,30%{ transform:scaleX(.24); } 48%{ transform:scaleX(.5); } 70%,100%{ transform:scaleX(1); } }
@keyframes qg-seq-lines{ 0%,30%{ opacity:1; } 40%,60%{ opacity:.8; } 70%,100%{ opacity:.66; } }
@keyframes qg-seq-beam{ 0%,32%{ opacity:0; transform:translate3d(0,-100%,0); } 36%{ opacity:1; } 47%{ opacity:1; transform:translate3d(0,260%,0); } 48%{ opacity:0; transform:translate3d(0,-100%,0); } 50%{ opacity:1; } 60%{ opacity:1; transform:translate3d(0,260%,0); } 62%,100%{ opacity:0; transform:translate3d(0,260%,0); } }
@keyframes qg-seq-orbit{ 0%,30%{ opacity:0; transform:scale(.9); } 38%,58%{ opacity:1; transform:none; } 66%,100%{ opacity:0; transform:scale(1.08); } }
@keyframes qg-seq-doc{ 0%,62%{ transform:none; } 72%,100%{ transform:translate3d(-14px,-8px,0) scale(.97); } }
@keyframes qg-seq-ok{ 0%,62%{ opacity:0; transform:scale(.4); } 70%{ opacity:1; transform:scale(1.08); } 74%,100%{ opacity:1; transform:none; } }
@keyframes qg-seq-ring{ 0%,64%{ opacity:0; transform:scale(1); } 68%{ opacity:.9; } 82%,100%{ opacity:0; transform:scale(1.7); } }

@supports (animation-timeline: view()){
  /* longhands only: an animation shorthand in a more specific rule would reset animation-timeline to the document timeline */
  .qg-seq-steps b::after,.qg-seq-steps span,.qg-seq-fill,.qg-seq-doc,.qg-seq-lines,.qg-seq-beam,.qg-seq-orbit,.qg-seq-mark,.qg-seq-ok,.qg-seq-ok::after{
    animation-fill-mode:both; animation-timing-function:linear; animation-timeline:--qg-seq; animation-range:var(--qg-seq-range,cover 18% cover 78%); }
  .qg-seq-steps li:nth-child(1) b::after{ animation-name:qg-seq-n1; }
  .qg-seq-steps li:nth-child(2) b::after{ animation-name:qg-seq-n2; }
  .qg-seq-steps li:nth-child(3) b::after{ animation-name:qg-seq-n3; }
  .qg-seq-steps li:nth-child(1) span{ animation-name:qg-seq-t1; }
  .qg-seq-steps li:nth-child(2) span{ animation-name:qg-seq-t2; }
  .qg-seq-steps li:nth-child(3) span{ animation-name:qg-seq-t3; }
  .qg-seq-fill{ animation-name:qg-seq-fill; }
  .qg-seq-lines{ animation-name:qg-seq-lines; }
  .qg-seq-beam{ animation-name:qg-seq-beam; }
  .qg-seq-orbit{ animation-name:qg-seq-orbit; }
  .qg-seq-mark{ animation-name:qg-seq-mark; }
  .qg-seq-doc{ animation-name:qg-seq-doc; animation-timing-function:var(--qg-ease); }
  .qg-seq-ok{ animation-name:qg-seq-ok; }
  .qg-seq-ok::after{ animation-name:qg-seq-ring; }
}
/* fallback (no scroll-driven animations): qg-motion.js sets data-qg-step 0, 1 or 2 from where the host sits (read on each scroll frame) */
html.no-sda .qg-seq *,html.no-sda .qg-seq *::before,html.no-sda .qg-seq *::after{ transition:opacity .5s var(--qg-ease),transform .6s var(--qg-ease); }
html.no-sda .qg-seq-steps li:nth-child(1) b::after,html.no-sda .qg-seq-steps li:nth-child(1) span{ opacity:1; }
html.no-sda .qg-seq[data-qg-step="1"] .qg-seq-steps li:nth-child(2) b::after,html.no-sda .qg-seq[data-qg-step="1"] .qg-seq-steps li:nth-child(2) span,
html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-steps li b::after,html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-steps li span{ opacity:1; }
html.no-sda .qg-seq[data-qg-step="1"] .qg-seq-fill{ transform:scaleX(.5); }
html.no-sda .qg-seq[data-qg-step="1"] .qg-seq-orbit{ opacity:1; }
html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-fill{ transform:none; }
html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-ok{ opacity:1; transform:none; }
html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-doc{ transform:translate3d(-14px,-8px,0) scale(.97); }
html.no-sda .qg-seq[data-qg-step="2"] .qg-seq-lines{ opacity:.66; }

/* ==========================================================================================================
   THE DECISION PATH (.qg-strip). r4 (12-02-26, PENTA r3: the hero art did not say real-time underwriting): the decision sequence
   as one compact strip under the homepage mark. r5 (12-02-26, PENTA r4, both judges: the mark floated as an emblem above a separate
   status strip): ONE PIECE with the mark. Application -> Braining -> Decision runs through it: a small application glyph (a page,
   drawn in CSS) at left, the mark itself as the middle Braining node (the page puts its .hero-mark-wrap in the second item), the
   decision check at right (its green disc is the decided state, rule 4), on one line that passes behind the mark. Each label hangs
   under its node: the page's own three labels, no other word. The host sets the mark's size (--qg-path-m) and the widest side
   column (--qg-path-s); the line runs from the centre of one side column to the centre of the other.
   Time-based (the hero is on the first screen, so there is no scroll range to play it on): it runs once on load with the
   qg-seq keyframes (the same three states at the same percentages: the application lit, then Braining, then the green decision)
   and holds the decided state. Transform and opacity only. The elements' own styles ARE the decided state, so reduced motion
   (animation none) and a browser without animations show it decided; the animation's first frame (fill both, during the delay)
   is the composed start state: the application lit, its label bright, the line part-filled into the mark, the check unlit.
   ========================================================================================================== */
.qg-strip{ --qg-path-m:240px; --qg-path-s:110px; --qg-path-node:52px; position:relative; color:#fff; padding-bottom:34px; }
.qg-strip-track{ position:relative; max-width:calc(var(--qg-path-m) + 2 * var(--qg-path-s)); margin:0 auto; }
.qg-strip-track::before,.qg-strip-fill{ content:""; position:absolute; top:50%; left:calc((100% - var(--qg-path-m)) / 4); right:calc((100% - var(--qg-path-m)) / 4); height:3px; margin-top:-1.5px; border-radius:3px; }
/* r11 (12-03-26, PENTA r10, both judges: the glossy, soft-edged art in a ring clashed with the crisp lines; they asked for the flat
   mark from the header logo with the blue application line running into it and the green decision line out): the middle item now
   holds the flat logo mark (the page sets it: no plate, no ring), so the line no longer passes behind it. It is two segments: the
   blue application line (.qg-strip-fill) from the application node into the mark's left edge, and the green decision line
   (.qg-strip-track::after) out of its right edge to the decision node. Each ends 6% of the mark's width inside its box, under the
   first solid shape at the mark's mid-height (the cut's row 189 is opaque from 17 to 182 px and from 394 to 482 px of 492), so
   neither line shows through the transparent gaps between the shapes. The dim base line has the same gap. The nodes, the mark and
   the labels sit above the lines (the list's z-index). */
.qg-strip-track::before{ background:linear-gradient(90deg,rgba(255,255,255,.2) calc(50% - var(--qg-path-m) * .44),transparent 0 calc(50% + var(--qg-path-m) * .44),rgba(255,255,255,.2) 0); }   /* r7: flat, no inner shade; r11: a gap where the mark sits */
.qg-strip-fill{ right:calc(50% + var(--qg-path-m) * .44); background:#3b78ce; transform-origin:0 50%; }   /* r7: no glow; r11: blue, into the mark */
.qg-strip-track::after{ content:""; position:absolute; top:50%; left:calc(50% + var(--qg-path-m) * .44); right:calc((100% - var(--qg-path-m)) / 4); height:3px; margin-top:-1.5px; border-radius:3px; background:#3eae54; transform-origin:0 50%; }   /* r11: green, out of the mark */
.qg-strip ol{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr) var(--qg-path-m) minmax(0,1fr); align-items:center; position:relative; z-index:1; }
.qg-strip li{ position:relative; display:grid; place-items:center; min-width:0; }
.qg-strip li > span{ position:absolute; left:50%; top:100%; margin-top:12px; translate:-50% 0; font:700 .7rem/1.2 'Open Sans',system-ui,sans-serif; letter-spacing:.1em; text-transform:uppercase; color:#fff; white-space:nowrap; }
.qg-strip li:nth-child(2) > span{ margin-top:2px; }   /* the mark's ring sits inside its box (4%), so its label sits just under the ring */
/* r6 (12-02-26, PENTA r5, Gemini: the thin ring and the tiny wireframe nodes looked pasted next to the rich mark): each end node is a
   disc, 52px (44 on phones); the line is 3px. r7 (12-02-26, PENTA r6, GPT: flat brand shapes over the glass rim; both judges: the gold
   coin was off-palette): the nodes are FLAT: one brand navy fill (#04385d), a 2px ice rim, no light, no inner shade, no drop; the
   decision disc is flat brand green with a white check (rule 4). */
.qg-strip b{ position:relative; display:block; width:var(--qg-path-node); height:var(--qg-path-node); border-radius:50%; border:2px solid rgba(159,208,255,.55);
  background:#04385d; box-shadow:none; }
/* the application: a page with three lines, drawn; its ice ring is the lit state */
.qg-strip li:nth-child(1) b::before{ content:""; position:absolute; left:50%; top:50%; width:17px; height:21px; margin:-10.5px 0 0 -8.5px; box-sizing:border-box; border:1.75px solid var(--qg-ice); border-radius:3px;
  background:linear-gradient(var(--qg-ice),var(--qg-ice)) 3px 4px/7.5px 1.75px no-repeat,linear-gradient(var(--qg-ice),var(--qg-ice)) 3px 8.25px/7.5px 1.75px no-repeat,linear-gradient(var(--qg-ice),var(--qg-ice)) 3px 12.5px/5px 1.75px no-repeat; }
.qg-strip li:nth-child(1) b::after{ content:""; position:absolute; inset:-7px; border-radius:50%; border:2px solid rgba(159,208,255,.72); }
/* the decision: a mark, drawn, on the plate; the flat green disc under it (covering the plate and its rim) is the decided state
   (rule 4, r7), the mark white on it. Before the decided state the plate shows: the navy disc, the white mark dim (.26, unlit).
   r9 (12-02-26, PENTA r8, GPT es: a check reads as "approved", not "decided"): the mark is a filled white dot, 34% of the node
   (19px on the 56px desktop node, 15px on the 44px phone node), never a check. */
.qg-strip li:nth-child(3) b::before{ content:""; position:absolute; inset:-2px; border-radius:50%; background:var(--qg-decided); box-shadow:none; }
.qg-strip li:nth-child(3) b::after{ content:""; position:absolute; inset:33%; border-radius:50%; background:var(--qg-on-decided); }
@keyframes qg-strip-chk{ 0%,62%{ opacity:.26; } 70%,100%{ opacity:1; } }
/* r11: the blue line reaches into the mark by Braining (its start state part-filled), the green line leaves it for the decision */
@keyframes qg-strip-in{ 0%,8%{ transform:scaleX(.3); } 34%,100%{ transform:none; } }
@keyframes qg-strip-out{ 0%,48%{ transform:scaleX(0); } 70%,100%{ transform:none; } }
@media (max-width:767px){
  .qg-strip{ --qg-path-node:44px; padding-bottom:28px; }
  .qg-strip li > span{ margin-top:10px; font-size:.62rem; letter-spacing:.08em; }
  .qg-strip li:nth-child(1) b::after{ inset:-5px; }
  .qg-strip li:nth-child(1) b::before{ width:15px; height:18px; margin:-9px 0 0 -7.5px; border-width:1.5px; border-radius:2.5px;
    background-position:2.5px 3.5px,2.5px 7.25px,2.5px 11px; background-size:6.5px 1.5px,6.5px 1.5px,4.5px 1.5px; }
}
@media (prefers-reduced-motion: no-preference){
  .qg-strip li:nth-child(1) b::after,.qg-strip li:nth-child(3) b::before,.qg-strip li:nth-child(3) b::after,.qg-strip li > span,.qg-strip-fill,.qg-strip-track::after{ animation-duration:3.6s; animation-delay:.9s; animation-fill-mode:both; animation-timing-function:linear; animation-iteration-count:1; }
  .qg-strip li:nth-child(1) b::after{ animation-name:qg-seq-n1; }
  .qg-strip li:nth-child(3) b::before{ animation-name:qg-seq-n3; }
  .qg-strip li:nth-child(3) b::after{ animation-name:qg-strip-chk; }   /* r7: the white mark (r9: a dot) waits dim on the navy plate, then lights with the green disc */
  .qg-strip li:nth-child(1) > span{ animation-name:qg-seq-t1; }
  .qg-strip li:nth-child(2) > span{ animation-name:qg-seq-t2; }
  .qg-strip li:nth-child(3) > span{ animation-name:qg-seq-t3; }
  .qg-strip-fill{ animation-name:qg-strip-in; }
  .qg-strip-track::after{ animation-name:qg-strip-out; }
}

/* ---------- reduced motion: the calm static version of every motion ---------- */
@media (prefers-reduced-motion: reduce){
  @view-transition { navigation:none; }
  .qg-lift,.qg-fade,.qg-card,.qg-tilt,.qg-slide,.qg-sheet{ animation:none !important; opacity:1 !important; transform:none !important; }
  .qg-seq *,.qg-seq *::before,.qg-seq *::after{ animation:none !important; transition:none !important; }
  .qg-seq-steps b::after,.qg-seq-steps span{ opacity:1 !important; }
  .qg-seq-fill{ transform:none !important; }
  .qg-seq-doc i{ transform:none !important; }
  .qg-seq-beam,.qg-seq-orbit,.qg-seq-ok::after{ opacity:0 !important; }
  .qg-seq-ok{ opacity:1 !important; transform:none !important; }
  .qg-seq-dots i{ opacity:1 !important; }
  .qg-strip *,.qg-strip *::before,.qg-strip *::after{ animation:none !important; }   /* the strip's own styles are its decided state */
}
