/* ==========================================================================
   FX Client Portal 2.0 · animated scenes (after excited.agency/works/ravel)
   Scenes play only while on screen (.is-on, set by scenes.js) and stay still
   with prefers-reduced-motion. Product UI inside the scenes uses FX DS colours.
   ========================================================================== */
.cp { --fx-navy: #0b1530; --fx-ink: #1b2a4a; --fx-text: #2b3445; --fx-sec: #6b7385; --fx-line: #e3e6ec; --fx-subtle: #f4f5f7;
  --fx-orange: #cc480c; --fx-orange-soft: #fdeee6; --fx-pos: #0f7a4f; --fx-neg: #b3123a; --fx-warn: #b77400; --fx-ok: #12996a; --fx-font: "Mulish", "Geist", "MiSans", system-ui, sans-serif; }

/* ---------- browser + phone frames ---------- */
.bframe { position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px #0000004d, 0 40px 80px -30px #000000b3; }
.bframe-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: #eef0f4; border-bottom: 1px solid #dfe3ea; }
.bframe-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7df; flex: none; }
.bframe-bar span { margin-left: 10px; flex: 1; max-width: 360px; height: 20px; border-radius: 6px; background: #fff; font: 500 11px/20px var(--font-mono); color: #8a91a1; padding: 0 10px; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bframe-view { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); background: #f4f5f7; }
.bframe-view > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.phone { position: relative; border-radius: 34px; padding: 9px; background: #10131a; box-shadow: 0 2px 6px #0000004d, 0 40px 70px -26px #000000c0; }
.phone::before { content: ""; position: absolute; z-index: 3; top: 15px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 12px; background: #10131a; }
.phone-view { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 390 / 844; background: #f4f5f7; }
.phone-view > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
@media (max-width: 720px) { .bframe { border-radius: 8px; } .bframe-bar { height: 22px; gap: 6px; padding: 0 8px; } .bframe-bar i { width: 6px; height: 6px; } .bframe-bar span { height: 13px; font-size: 8px; line-height: 13px; } .phone { border-radius: 22px; padding: 5px; } .phone::before { top: 9px; height: 10px; } .phone-view { border-radius: 18px; } }

/* page that scrolls inside a frame, like a screen recording */
@keyframes cp-scroll { 0%, 10% { transform: translateY(0); } 40%, 52% { transform: translateY(var(--mid, -34%)); } 80%, 90% { transform: translateY(var(--end, -62%)); } 100% { transform: translateY(0); } }
.is-on .scrolls { animation: cp-scroll var(--dur, 22s) cubic-bezier(.65,0,.35,1) infinite; }
.scrolls-hover:hover .scrolls { animation-play-state: paused; }

/* ---------- 1. hero ---------- */
.hero-scene { position: relative; background: radial-gradient(90% 120% at 15% 0%, var(--ground-1) 0%, var(--ground-2) 46%, var(--ground-3) 100%); }
.hero-scene .hs-desk { position: absolute; left: 5%; top: 11%; width: 64%; }
.hero-scene .hs-desk .bframe-view { --ar: 16 / 9.6; }
.hero-scene .hs-phone { position: absolute; right: 7%; top: 9%; width: 20.5%; }
.hero-scene .hs-tag { position: absolute; left: 5%; bottom: 7%; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-scene .hs-tag span { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffffffb3; padding: 7px 10px; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff0d; }
@keyframes cp-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cp-slide { from { opacity: 0; transform: translate(40px, 16px); } to { opacity: 1; transform: none; } }
.hero-scene .hs-desk { animation: cp-rise 1s cubic-bezier(.2,.8,.2,1) .15s both; }
.hero-scene .hs-phone { animation: cp-slide 1s cubic-bezier(.2,.8,.2,1) .55s both; }
.hero-scene .hs-tag { animation: cp-rise .8s ease .9s both; }
@media (max-width: 720px) { .hero-scene .hs-desk { left: 4%; top: 8%; width: 74%; } .hero-scene .hs-phone { right: 4%; top: 14%; width: 26%; } .hero-scene .hs-tag { display: none; } }

/* drawer that slides over the phone page */
.drawer { position: absolute; inset: 0; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: #0a1224; opacity: 0; }
.drawer img { position: absolute; left: 0; top: 0; width: 76.92%; height: auto; max-width: none; transform: translateX(-102%); box-shadow: 8px 0 24px #0003; }
.drawer .x { position: absolute; top: 2.2%; right: 3.6%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: 0; display: grid; place-items: center; }
.drawer .x::before, .drawer .x::after { content: ""; position: absolute; width: 42%; height: 2px; background: #2b3445; border-radius: 1px; transform: rotate(45deg); }
.drawer .x::after { transform: rotate(-45deg); }
@keyframes cp-drawer { 0%, 30% { transform: translateX(-102%); } 40%, 70% { transform: none; } 80%, 100% { transform: translateX(-102%); } }
@keyframes cp-fade { 0%, 30% { opacity: 0; } 40%, 70% { opacity: var(--o, .45); } 80%, 100% { opacity: 0; } }
@keyframes cp-tap { 0%, 26% { opacity: 0; transform: scale(.4); } 29% { opacity: .9; transform: scale(1); } 34%, 100% { opacity: 0; transform: scale(1.6); } }
.is-on .drawer img { animation: cp-drawer var(--dur, 9s) cubic-bezier(.65,0,.35,1) infinite; }
.is-on .drawer .scrim { animation: cp-fade var(--dur, 9s) ease infinite; }
.is-on .drawer .x { --o: 1; animation: cp-fade var(--dur, 9s) ease infinite; }
.tap { position: absolute; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #cc480c55; border: 2px solid #cc480c; opacity: 0; pointer-events: none; }
.is-on .tap { animation: cp-tap var(--dur, 9s) ease-out infinite; }

/* ---------- 2. module map ---------- */
.mmap { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm { position: relative; padding: 18px 18px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: border-color .5s ease, background-color .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 180ms); }
.mm .ri { width: 26px; height: 26px; color: var(--muted); transition: color .5s ease; transition-delay: inherit; }
.mm b { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--text); }
.mm small { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.mm p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mm.tw small { transition: color .5s ease; transition-delay: inherit; }
.is-on .mm.tw { border-color: var(--accent); background: linear-gradient(160deg, rgba(235,91,25,.16), rgba(235,91,25,.03) 60%), var(--surface); transform: translateY(-3px); }
.is-on .mm.tw .ri, .is-on .mm.tw small { color: var(--accent); }
.mm-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font: 400 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.mm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mm-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--surface); }
.mm-legend i.o { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) { .mmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .mm { padding: 14px; } .mm p { display: none; } }

/* ---------- 3. team ---------- */
.matrix-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px; }
.matrix { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--surface); }
.matrix tbody th { text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; }
.matrix tbody th small { display: block; font: 400 11px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--dim); text-transform: uppercase; margin-top: 2px; }
.matrix tbody tr.me th { color: var(--accent); }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; opacity: .15; transform: scale(.6); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.is-on .mk { opacity: 1; transform: none; }
.mk.own { background: var(--text); }
.mk.own::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); }
.mk.hand { background: var(--accent); }
.mk.hand::after { content: ""; width: 9px; height: 9px; background: var(--on-accent); transform: rotate(45deg); }
.mk.sup { border: 1.5px solid var(--muted); }
.mx-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.mx-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mx-legend .mk { width: 18px; height: 18px; opacity: 1; transform: none; }
.mx-legend .mk.own::after { width: 6px; height: 6px; }
.mx-legend .mk.hand::after { width: 6px; height: 6px; }

.loop { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
.loop-ring { position: relative; aspect-ratio: 1; }
.loop-ring svg { width: 100%; height: 100%; overflow: visible; }
.loop-ring .track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.loop-ring .run { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 1000; }
.loop-ring .node circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.loop-ring .node text { fill: var(--muted); font: 500 12px var(--font-mono); text-anchor: middle; dominant-baseline: central; }
.loop-ring .node.on circle { fill: var(--accent); stroke: var(--accent); }
.loop-ring .node.on text { fill: var(--on-accent); }
.loop-ring .core { position: absolute; inset: 30%; display: grid; place-items: center; text-align: center; }
.loop-ring .core b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.loop-ring .core div > span { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.loop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.loop-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.loop-list li > span { font: 500 12px/1.6 var(--font-mono); color: var(--dim); }
.loop-list b { font-size: 16px; font-weight: 600; color: var(--text); }
.loop-list p { grid-column: 2; font-size: 14px; line-height: 1.55; color: var(--muted); }
.loop-list li.on > span, .loop-list li.on b { color: var(--accent); }
@media (max-width: 860px) { .loop { grid-template-columns: minmax(0, 1fr); gap: 24px; } .loop-ring { max-width: 300px; margin: 0 auto; width: 100%; } }

/* ---------- 4. research ---------- */
.themes { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.theme { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.theme > span { font: 500 12px/1 var(--font-mono); color: var(--dim); }
.theme b { font-size: 16px; font-weight: 500; color: var(--text); }
.theme i { grid-column: 2; display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.theme i::after { content: ""; display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #f08a4c); transition: width 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 140ms); }
.is-on .theme i::after { width: var(--w); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.quote { margin: 0; padding: 22px 22px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.quote p { font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--text); }
.quote p::before { content: "“"; color: var(--accent); }
.quote p::after { content: "”"; color: var(--accent); }
.quote cite { margin-top: auto; font: normal 400 11.5px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--dim); }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. accounts scene (live HTML, FX DS look) ---------- */
.acc-stage { margin-top: 32px; padding: clamp(12px, 4vw, 48px); border-radius: clamp(14px, 1.6vw, 20px); background: radial-gradient(120% 100% at 18% 0%, var(--ground-1) 0%, var(--ground-2) 52%, var(--ground-3) 100%); }
.acc { font-family: var(--fx-font); color: var(--fx-text); background: #fff; border-radius: 12px; padding: clamp(14px, 2.2vw, 24px); box-shadow: 0 2px 6px #0000004d, 0 40px 80px -30px #000000b3; display: flex; flex-direction: column; gap: 16px; }
.acc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.acc-h b { display: block; font-size: 18px; font-weight: 600; color: var(--fx-navy); }
.acc-h small { font-size: 12px; color: var(--fx-sec); }
.acc-seg { display: inline-flex; padding: 2px; border-radius: 6px; background: var(--fx-subtle); font-size: 13px; }
.acc-seg span { padding: 5px 14px; border-radius: 4px; color: var(--fx-sec); }
.acc-seg span:first-child { background: #fff; color: var(--fx-navy); box-shadow: 0 1px 2px #0002; }
.acc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-chips button { font: 600 12.5px/1 var(--fx-font); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--fx-line); background: var(--fx-subtle); color: var(--fx-text); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.acc-chips button[aria-pressed="true"] { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }
.acc-chips button:focus-visible { outline: 2px solid var(--fx-orange); outline-offset: 2px; }
.acc-main { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 28px; }
.acc-sum { display: flex; flex-direction: column; gap: 10px; }
.acc-sum .k { font-size: 12px; color: var(--fx-sec); }
.acc-eq { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; color: var(--fx-navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.acc-tr { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-tr.up { color: var(--fx-pos); } .acc-tr.down { color: var(--fx-neg); }
.acc-kv { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--fx-line); font-size: 13.5px; }
.acc-kv span:first-child { color: var(--fx-sec); }
.acc-kv span:last-child { font-weight: 600; color: var(--fx-navy); font-variant-numeric: tabular-nums; }
.acc-kv .pos { color: var(--fx-pos) !important; } .acc-kv .neg { color: var(--fx-neg) !important; }
.acc-chart { position: relative; min-width: 0; }
.acc-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.acc-chart .grid line { stroke: #e9ecf1; stroke-width: 1; }
.acc-chart .grid text { fill: #8a91a1; font: 11px var(--fx-font); }
.acc-chart .area { fill: var(--fx-navy); fill-opacity: .07; }
.acc-chart .line { fill: none; stroke: var(--fx-navy); stroke-width: 2; stroke-linejoin: round; }
.acc-chart .dot { fill: #fff; stroke: var(--fx-navy); stroke-width: 2; }
.acc-rows { border: 1px solid var(--fx-line); border-radius: 8px; overflow: hidden; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--fx-line); font-size: 13.5px; transition: background-color .35s, opacity .35s; }
.acc-row:first-child { border-top: 0; background: var(--fx-subtle); font-size: 11.5px; color: var(--fx-sec); padding: 8px 14px; }
.acc-row > span { font-variant-numeric: tabular-nums; text-align: right; }
.acc-row > span:first-child { text-align: left; }
.acc-row b { font-weight: 600; color: var(--fx-navy); }
.acc-row small { display: block; font-size: 11.5px; color: var(--fx-sec); }
.acc-row .pos { color: var(--fx-pos); } .acc-row .neg { color: var(--fx-neg); }
.acc-ml { display: flex; flex-direction: column; gap: 5px; text-align: left !important; }
.acc-ml em { font-style: normal; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.acc-ml em i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.acc-ml em i.ok { background: #e6f6ef; color: var(--fx-pos); } .acc-ml em i.watch { background: #fff3dc; color: var(--fx-warn); }
.acc-ml u { display: block; height: 5px; border-radius: 3px; background: var(--fx-subtle); overflow: hidden; text-decoration: none; }
.acc-ml u::after { content: ""; display: block; height: 100%; width: var(--m, 0); background: var(--c, var(--fx-ok)); border-radius: 3px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.acc.solo .acc-row.dim { opacity: .38; }
.acc .acc-row.sel { background: var(--fx-orange-soft); }
.acc-note { font-size: 12px; color: var(--fx-sec); }
@media (max-width: 760px) {
  .acc-main { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .acc-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .acc-row > :nth-child(2), .acc-row > :nth-child(4) { display: none; }
}

/* ---------- 6. responsive scene ---------- */
.rs { margin-top: 32px; padding: clamp(18px, 4vw, 52px); border-radius: clamp(14px, 1.6vw, 20px); background: var(--ground-alt); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 5vw, 64px); justify-items: center; }
.rs figure { margin: 0; width: min(100%, 300px); display: flex; flex-direction: column; gap: 14px; }
.rs figcaption { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- 7. flow scenes (KYC, deposit) ---------- */
.flow { margin-top: 32px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.flow-steps li { position: relative; padding: 12px 14px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); transition: background-color .3s, color .3s; }
.flow-steps li > span { display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--dim); }
.flow-steps li b { font-size: 15px; font-weight: 600; }
.flow-steps li i { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--line); border-radius: 1px; overflow: hidden; }
.flow-steps li i::after { content: ""; display: block; height: 100%; width: 0; background: var(--accent); }
.flow-steps li.on { background: var(--surface); color: var(--text); }
.flow-steps li.on > span { color: var(--accent); }
.flow-steps li.on i::after { animation: cp-bar var(--step, 3.2s) linear forwards; }
.flow-steps li.done i::after { width: 100%; }
.paused .flow-steps li.on i::after { animation: none; width: 100%; }
@keyframes cp-bar { to { width: 100%; } }
.flow-stage { padding: clamp(12px, 3.4vw, 44px); border-radius: clamp(14px, 1.6vw, 20px); background: radial-gradient(120% 100% at 18% 0%, var(--ground-1) 0%, var(--ground-2) 52%, var(--ground-3) 100%); min-width: 0; }
.slides { position: relative; aspect-ratio: var(--ar, 2400 / 1760); overflow: hidden; background: #f4f5f7; }
.slides > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; opacity: 0; transform: translateX(6%); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.slides > img.on { opacity: 1; transform: none; }
.slides > img.out { opacity: 0; transform: translateX(-6%); }
.slides.fade > img { transform: none !important; }
.cursor { position: absolute; z-index: 4; width: 3.2%; min-width: 14px; left: 50%; top: 50%; transition: left 1s cubic-bezier(.65,0,.35,1), top 1s cubic-bezier(.65,0,.35,1); pointer-events: none; filter: drop-shadow(0 2px 3px #0006); }
.cursor svg { width: 100%; height: auto; display: block; fill: #10131a; stroke: #fff; stroke-width: 1.2; }
.cursor::after { content: ""; position: absolute; left: -60%; top: -60%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: #cc480c66; transform: scale(0); opacity: 0; }
.cursor.click::after { animation: cp-click .5s ease-out; }
@keyframes cp-click { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hl { position: absolute; z-index: 3; border-radius: 6px; box-shadow: 0 0 0 2px #cc480c, 0 0 0 6px #cc480c33; opacity: 0; transition: opacity .5s; pointer-events: none; }
.hl.on { opacity: 1; }
.flow-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.flow-ctrl button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.flow-ctrl button:hover { border-color: var(--accent-line); color: var(--text); }
.flow-ctrl span { font: 400 12px/1.4 var(--font-mono); color: var(--dim); }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flow-steps { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .flow-steps li { flex: none; padding: 8px 12px 12px; }
  .flow-steps li b { font-size: 13px; white-space: nowrap; }
}

/* two screens side by side */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.duo .media { margin: 0; padding: clamp(10px, 2.4vw, 28px); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .is-on .scrolls, .is-on .drawer img, .is-on .drawer .scrim, .is-on .drawer .x, .is-on .tap, .hero-scene .hs-desk, .hero-scene .hs-phone, .hero-scene .hs-tag { animation: none !important; }
  .mm, .mk, .theme i::after, .slides > img, .cursor, .acc-ml u::after { transition: none !important; }
  .flow-steps li.on i::after { animation: none; width: 100%; }
}

/* ---------- fixes against case.css + housekeeping ---------- */
.scene:not(.vis), .scene:not(.vis) *, .scene:not(.vis) *::before, .scene:not(.vis) *::after { animation-play-state: paused !important; }
.case-hero-media.hero-scene img { height: auto; object-fit: fill; object-position: 0 0; }
.hero-scene .hs-phone { width: 19%; }
@media (max-width: 720px) { .hero-scene .hs-phone { width: 25%; top: 10%; } }
.media .bframe img, .media .phone img, .rs img { border-radius: 0; box-shadow: none; }
.media > .bframe { max-width: 1100px; margin: 0 auto; }
.bframe-view.zoomable { display: block; }
.bframe-view.zoomable .zoom-chip { z-index: 2; }
.theme b small { margin-left: 10px; font: 400 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.acc-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.acc-cap span:last-child { font: 400 12px/1.6 var(--font-mono); color: var(--dim); }
.records { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.records .media { margin: 0; }
.cp .cols > div > .ri { display: block; width: 22px; height: 22px; margin-bottom: 14px; color: var(--accent); }
.flow-steps li b, .loop-list b, .loop-list p, .theme b, .quote p { font-family: var(--font-sans); }
@media (max-width: 760px) {
  .acc-stage { padding: 10px; }
  .acc { padding: 14px; gap: 14px; }
  .acc .acc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding: 10px 12px; }
  .acc .acc-row > :nth-child(2), .acc .acc-row > :nth-child(3), .acc .acc-row > :nth-child(4) { display: none; }
  .acc-chart .grid text { font-size: 16px; }
}
.hero-scene .hs-desk { left: 5%; top: 7%; width: 67%; }
.hero-scene .hs-phone { right: 6.5%; top: 7.5%; width: 19%; }
@media (max-width: 720px) { .hero-scene .hs-desk { left: 4%; top: 8%; width: 74%; } .hero-scene .hs-phone { right: 4%; top: 10%; width: 25%; } }
.loop-ring .core b { display: block; font: 700 28px/1.1 var(--font-sans); letter-spacing: -.02em; color: var(--text); text-transform: none; }
.loop-ring .core > div > span { display: block; margin-top: 6px; }
/* legend marks: keep the centred inner shape (the generic span rule above made them flex) */
.mx-legend .mk { display: inline-grid; place-items: center; gap: 0; flex: none; }
.mx-legend .mk::after { margin: 0; }
.media + .rs { margin-top: 16px; }
.rs figure { width: min(100%, 280px); }
