/* Mobile app service page: 3D phone fan opening, platform switcher with build terminal, and page skin. Prefix ms-. */
:root { --ms-ink: #0c1530; --ms-deep: #0a0f24; --ms-blue: #3b6cff; --ms-violet: #8b5cf6; --ms-mint: #2dd4bf; --ms-muted: #5a6585; --ms-line: rgba(12, 21, 48, .12); }

/* ---- Opening ---- */
.ms-hero-sec { position: relative; overflow: hidden; padding: 72px 0 80px; color: #fff; background: radial-gradient(700px 420px at 85% 30%, rgba(139, 92, 246, .35), transparent 65%), radial-gradient(600px 400px at 10% 90%, rgba(45, 212, 191, .18), transparent 60%), linear-gradient(160deg, #0a0f24 0%, #111a3d 100%); }
.ms-hero-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.ms-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.ms-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #c9d4ff; }
.ms-hero h1 { margin: 18px 0 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.ms-hero h1 span { background: linear-gradient(90deg, #7ea2ff, var(--ms-mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ms-hero-text { margin: 18px 0 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: #b8c2e0; }
.ms-platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.ms-platforms li { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #e3e9ff; }
.ms-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ms-btn-line { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.ms-btn-line:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.ms-stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ms-stats dt { font-size: 28px; font-weight: 800; color: #fff; }
.ms-stats dd { margin: 2px 0 0; font-size: 13px; color: #9aa6cc; }

.ms-stage { position: relative; height: 520px; perspective: 1400px; }
.ms-fan { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s ease-out; }
.ms-phone { position: absolute; left: 50%; top: 50%; width: 230px; height: 470px; margin: -235px 0 0 -115px; padding: 9px; border-radius: 40px; background: linear-gradient(145deg, #2a3150, #0d1124); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .14); transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s, opacity .8s; }
.ms-phone[data-pos="0"] { transform: translate3d(0, 0, 60px); z-index: 3; }
.ms-phone[data-pos="1"] { transform: translate3d(150px, 20px, -80px) rotateY(-22deg); z-index: 2; filter: brightness(.7); }
.ms-phone[data-pos="2"] { transform: translate3d(-150px, 20px, -80px) rotateY(22deg); z-index: 1; filter: brightness(.7); }
.ms-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.ms-screen img { width: 100%; height: 100%; object-fit: cover; }
.ms-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 50%, rgba(0, 0, 0, .75) 100%); }
.ms-notch { position: absolute; z-index: 2; top: 10px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #000; }
.ms-screen figcaption { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 16px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: var(--ms-ink); }
.ms-screen figcaption small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ms-blue); }
.ms-screen figcaption b { display: block; margin-top: 3px; font-size: 15px; line-height: 1.3; }
.ms-screen figcaption i { display: block; margin-top: 10px; padding: 8px; border-radius: 10px; background: var(--ms-blue); color: #fff; font-style: normal; font-size: 12.5px; font-weight: 700; text-align: center; }
.ms-glow { position: absolute; left: 50%; bottom: 0; width: 70%; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 162, 255, .45), transparent); filter: blur(6px); }

/* ---- Platform switcher ---- */
.ms-plat { max-width: 1020px; margin: 28px auto 0; }
.ms-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ms-tabs button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ms-line); background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--ms-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ms-tabs button:hover { border-color: var(--ms-blue); }
.ms-tabs button[aria-selected="true"] { background: var(--ms-ink); border-color: var(--ms-ink); color: #fff; }
.ms-tabs button:focus-visible { outline: 3px solid var(--ms-blue); outline-offset: 2px; }
.ms-panes { margin-top: 24px; perspective: 1000px; }
.ms-pane { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; padding: 34px 38px; border-radius: 26px; background: linear-gradient(135deg, #f5f7ff, #eef9f7); border: 1px solid var(--ms-line); }
.ms-pane[hidden] { display: none; }
.ms-coin { width: 200px; height: 200px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 30px 50px -30px rgba(12, 21, 48, .6), inset 0 0 0 10px #f1f4ff; }
.ms-coin img { width: 62%; height: 62%; object-fit: contain; }
.ms-coin b { font-size: 70px; color: var(--ms-blue); }
.ms-pane.flip .ms-coin { animation: ms-flip .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes ms-flip { from { transform: rotateY(-180deg) scale(.85); } to { transform: none; } }
.ms-pane-body h3 { margin: 0; font-size: 26px; color: var(--ms-ink); }
.ms-pane-body p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--ms-muted); }
.ms-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.ms-chips li { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--ms-line); font-size: 13.5px; font-weight: 600; color: var(--ms-ink); }
.ms-term { margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: var(--ms-deep); color: #d6defc; font-size: 14px; overflow-x: auto; }
.ms-term-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.ms-term-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .ms-term-dots i:nth-child(2) { background: #febc2e; } .ms-term-dots i:nth-child(3) { background: #28c840; }
.ms-term code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.ms-prompt { color: var(--ms-mint); }
.ms-ok { margin-left: 14px; color: #4ade80; opacity: 0; transition: opacity .3s; }
.ms-ok.on { opacity: 1; }

/* ---- Industries coverflow ---- */
.ms-ind-sec { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f4f2ff 100%); }
.ms-flow { position: relative; height: 380px; margin-top: 34px; perspective: 1200px; outline: none; cursor: grab; touch-action: pan-y; user-select: none; }
.ms-flow:active { cursor: grabbing; }
.ms-flow:focus-visible { outline: 3px solid var(--ms-blue); outline-offset: -3px; }
.ms-flow-track { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; transform-style: preserve-3d; }
.ms-flow-card { --off: 0; --abs: 0; position: absolute; left: 50%; top: 50%; width: 420px; height: 300px; margin: -150px 0 0 -210px; border-radius: 22px; overflow: hidden; background: #ddd; box-shadow: 0 34px 60px -34px rgba(12, 21, 48, .65); transform: translateX(calc(var(--off) * 58%)) translateZ(calc(var(--abs) * -170px)) rotateY(calc(var(--off) * -38deg)); opacity: calc(1 - var(--abs) * .22); z-index: calc(20 - var(--abs)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; filter: brightness(calc(1 - var(--abs) * .14)); }
.ms-flow-card.far { opacity: 0; pointer-events: none; }
.ms-flow-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ms-flow-card b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(180deg, transparent, rgba(10, 15, 36, .85)); font-size: 20px; color: #fff; }
.ms-flow-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; max-width: 760px; margin-top: 18px; }
.ms-flow-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ms-line); background: #fff; font: inherit; font-size: 20px; color: var(--ms-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ms-flow-btn:hover { background: var(--ms-ink); border-color: var(--ms-ink); color: #fff; }
.ms-flow-btn:focus-visible { outline: 3px solid var(--ms-blue); outline-offset: 2px; }
.ms-flow-text { min-height: 120px; text-align: center; }
.ms-flow-text [hidden] { display: none; }
.ms-flow-text h3 { margin: 0; font-size: 22px; color: var(--ms-ink); }
.ms-flow-text p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ms-muted); }
.ms-flow-text a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--ms-blue); text-decoration: none; }

/* ---- Process scroll story ---- */
.ms-jr-sec { background: var(--ms-deep); color: #fff; }
.ms-jr-sec .sv-title, .ms-jr-sec h2 { color: #fff !important; }
.ms-jr-sec .sv-intro { background: rgba(255, 255, 255, .06) !important; color: #c3cbe6 !important; border-color: rgba(255, 255, 255, .12) !important; }
.ms-jr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; margin-top: 36px; align-items: start; }
.ms-jr-stage { position: sticky; top: 110px; }
.ms-jr-screen { position: relative; aspect-ratio: 16 / 10.5; border-radius: 22px; overflow: hidden; background: #151b3a; border: 8px solid #1d2448; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.ms-jr-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1.2s ease-out; }
.ms-jr-screen img.on { opacity: 1; transform: none; }
.ms-jr-live { position: absolute; right: 14px; top: 14px; padding: 7px 12px; border-radius: 999px; background: #22c55e; color: #052e14; font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(-8px) scale(.9); transition: opacity .4s, transform .4s; }
.ms-jr-live.on { opacity: 1; transform: none; }
.ms-jr-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; margin-top: 18px; }
.ms-jr-stagename { font-size: 15px; font-weight: 700; color: #dfe5ff; }
.ms-jr-pct { font-size: 14px; color: #9aa6cc; } .ms-jr-pct b { font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.ms-jr-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ms-jr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7ea2ff, var(--ms-mint)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ms-jr-steps { list-style: none; margin: 0; padding: 0; }
.ms-jr-steps li { position: relative; min-height: 44vh; padding: 0 0 0 64px; opacity: .35; transition: opacity .4s; }
.ms-jr-steps li:last-child { min-height: 0; padding-bottom: 20vh; }
.ms-jr-steps li.on { opacity: 1; }
.ms-jr-steps li::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, .12); }
.ms-jr-steps li:last-child::before { display: none; }
.ms-jr-num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 800; color: #c3cbe6; transition: background .3s, color .3s, border-color .3s; }
.ms-jr-steps li.on .ms-jr-num { background: var(--ms-mint); border-color: var(--ms-mint); color: var(--ms-deep); }
.ms-jr-steps h3 { margin: 8px 0 0; font-size: 24px; color: #fff; }
.ms-jr-steps p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: #b8c2e0; }

/* ---- Page skin ---- */
body:has(.ms-hero-sec) main .sv-intro { background: #f3f5ff !important; color: var(--ms-ink) !important; border-color: #dfe5ff !important; }
body:has(.ms-hero-sec) main .sv-why-card { border-radius: 18px; border-top: 3px solid var(--ms-violet); box-shadow: 0 20px 40px -32px rgba(12, 21, 48, .6); }
body:has(.ms-hero-sec) main .sv-badge-tile img { filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
body:has(.ms-hero-sec) main .sv-badge-tile:hover img { filter: none; opacity: 1; }
body:has(.ms-hero-sec) main .sv-contact-big { background: linear-gradient(90deg, var(--ms-blue), var(--ms-violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 960px) {
    .ms-hero { grid-template-columns: minmax(0, 1fr); }
    .ms-stage { height: 440px; }
    .ms-phone { transform-origin: center; }
    .ms-fan { transform: scale(.85); }
    .ms-pane { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 28px 22px; }
    .ms-chips { justify-content: center; }
    .ms-term { text-align: left; }
    .ms-jr { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ms-jr-stage { top: 70px; z-index: 2; padding: 10px 0; background: var(--ms-deep); }
    .ms-jr-screen { aspect-ratio: 16 / 8; border-width: 5px; }
    .ms-jr-steps li { min-height: 52vh; }
}
@media (max-width: 560px) {
    .ms-hero-sec { padding: 40px 0 48px; }
    .ms-hero-text { font-size: 16px; }
    .ms-stage { height: 380px; }
    .ms-fan { transform: scale(.72); }
    .ms-phone[data-pos="1"] { transform: translate3d(110px, 20px, -80px) rotateY(-22deg); }
    .ms-phone[data-pos="2"] { transform: translate3d(-110px, 20px, -80px) rotateY(22deg); }
    .ms-stats dt { font-size: 24px; }
    .ms-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .ms-tabs button { flex: none; font-size: 14px; }
    .ms-coin { width: 140px; height: 140px; }
    .ms-pane-body h3 { font-size: 22px; }
    .ms-flow { height: 260px; }
    .ms-flow-card { width: 250px; height: 190px; margin: -95px 0 0 -125px; border-radius: 16px; }
    .ms-flow-card b { font-size: 16px; padding: 30px 14px 12px; }
    .ms-flow-foot { gap: 10px; }
    .ms-flow-btn { width: 42px; height: 42px; }
    .ms-flow-text h3 { font-size: 19px; }
    .ms-jr-steps li { padding-left: 54px; }
    .ms-jr-steps h3 { font-size: 20px; }
    .ms-jr-steps p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-phone, .ms-fan { transition: none; }
    .ms-pane.flip .ms-coin { animation: none; }
    .ms-flow-card, .ms-jr-screen img, .ms-jr-bar i, .ms-jr-live { transition: none; }
}

/* ---- Call-to-action band colours for this page (layout comes from cta.css) ---- */
body:has(.ms-hero-sec) .pp-cta { background: radial-gradient(420px 260px at 90% 120%, rgba(45, 212, 191, .35), transparent 70%), linear-gradient(120deg, #1b2a6b 0%, #4c2a9e 55%, #7c3aed 100%); box-shadow: 0 40px 70px -44px rgba(76, 42, 158, .9); }
body:has(.ms-hero-sec) .pp-cta .pp-btn-inv { color: #2a1a6e !important; }
body:has(.ms-hero-sec) .pp-cta-lottie { display: none; }

/* =========================================================================
   Service-page sections (light): services, app types, approach quiz, stack,
   features, engagement models. Shared reveal: .ms-rv gets .in from mobsvc.js.
   ========================================================================= */
.ms-rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.ms-rv.in { opacity: 1; transform: none; }
.ms-ico { width: 24px; height: 24px; display: block; }
.ms-tick { flex: none; width: 16px; height: 16px; margin-top: 3px; color: #0d9488; stroke-width: 2.4; }
.ms-svc-sec, .ms-ch-sec, .ms-feat-sec { background: linear-gradient(180deg, #f6f8ff 0%, #fff 100%); }
.ms-types-sec, .ms-stack-sec, .ms-mod-sec { background: #fff; }

/* ---- Services ---- */
.ms-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ms-svc-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--ms-line); box-shadow: 0 1px 2px rgba(12, 21, 48, .04); overflow: hidden; isolation: isolate; transition: opacity .6s ease var(--d, 0ms), transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.ms-svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 108, 255, .12), transparent 70%); transition: opacity .3s; }
.ms-svc-card.in:hover, .ms-svc-card.in:focus-within { transform: translateY(-6px); border-color: rgba(59, 108, 255, .35); box-shadow: 0 26px 44px -26px rgba(59, 108, 255, .45); }
.ms-svc-card:hover::before, .ms-svc-card:focus-within::before { opacity: 1; }
.ms-svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ms-svc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--ms-blue); background: linear-gradient(135deg, #eef2ff, #f3ecff); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.ms-svc-card:hover .ms-svc-ic { transform: rotate(-8deg) scale(1.08); color: #fff; background: linear-gradient(135deg, var(--ms-blue), var(--ms-violet)); }
.ms-svc-no { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #8f9abd; }
.ms-svc-card h3 { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; color: var(--ms-ink); }
.ms-svc-card h3 a { color: inherit; text-decoration: none; }
.ms-svc-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ms-svc-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ms-muted); }
.ms-svc-more { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ms-line); }
.ms-svc-more b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ms-blue); }
.ms-svc-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ms-svc-more li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: #2b3657; }
@media (hover: hover) and (min-width: 900px) {
    .ms-svc { align-items: start; }
    .ms-svc-more { display: grid; grid-template-rows: 0fr; margin-top: 0; padding-top: 0; border-top-color: transparent; opacity: 0; transition: grid-template-rows .45s ease, opacity .35s ease, margin .45s, padding .45s, border-color .45s; }
    .ms-svc-more > ul { min-height: 0; overflow: hidden; margin: 0; }
    .ms-svc-more > b { display: none; }
    .ms-svc-card:hover .ms-svc-more, .ms-svc-card:focus-within .ms-svc-more { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; padding-top: 14px; border-top-color: var(--ms-line); }
}

/* ---- App types ---- */
.ms-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.ms-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ms-line); background: #fff; color: var(--ms-ink); font: 600 14px/1 inherit; cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.ms-filter button small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #eef2ff; color: #2f54d6; font-size: 12px; }
.ms-filter button:hover { border-color: var(--ms-blue); }
.ms-filter button[aria-pressed="true"] { background: var(--ms-ink); border-color: var(--ms-ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(12, 21, 48, .6); }
.ms-filter button[aria-pressed="true"] small { background: rgba(255, 255, 255, .16); color: #fff; }
.ms-filter button:focus-visible, .ms-ch-opts input:focus-visible + span { outline: 3px solid #93b4ff; outline-offset: 2px; }
.ms-types-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ms-type { --tint: hsl(var(--hue) 90% 96%); --accent: hsl(var(--hue) 70% 36%); position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, var(--tint) 0%, #fff 55%); border: 1px solid var(--ms-line); transition: opacity .45s ease var(--d, 0ms), transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.ms-type.in:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -26px hsl(var(--hue) 60% 40% / .55); }
.ms-type.is-out { display: none; }
.ms-type.is-pop { animation: msIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.ms-type-head { display: flex; justify-content: space-between; align-items: center; }
.ms-type-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff; color: var(--accent); box-shadow: 0 8px 18px -10px hsl(var(--hue) 60% 40% / .6); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ms-type:hover .ms-type-ic { transform: translateY(-3px) rotate(6deg); }
.ms-type-cat { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid hsl(var(--hue) 60% 85%); font-size: 12px; font-weight: 600; color: var(--accent); }
.ms-type h3 { margin: 16px 0 6px; font-size: 18px; color: var(--ms-ink); }
.ms-type p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ms-muted); }
.ms-type-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.ms-type-feats li { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); border: 1px solid var(--ms-line); font-size: 12.5px; color: #33405f; }
.ms-type-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.ms-type-link i { font-style: normal; transition: transform .25s; }
.ms-type-link:hover i { transform: translateX(4px); }
.ms-type-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@keyframes msIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Approach quiz + comparison ---- */
.ms-ch { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; }
.ms-ch-quiz, .ms-ch-result { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--ms-line); box-shadow: 0 20px 40px -32px rgba(12, 21, 48, .35); }
.ms-ch-result { position: sticky; top: 100px; background: linear-gradient(165deg, #f4f1ff 0%, #fff 60%); }
.ms-ch-step { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6d3fd8; }
.ms-ch-q { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--ms-line); min-width: 0; }
.ms-ch-q:first-of-type { border-top: 0; padding-top: 0; }
.ms-ch-q legend { display: flex; gap: 10px; align-items: flex-start; float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ms-ink); }
.ms-ch-q legend span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #eef2ff; color: #2f54d6; font-size: 13px; }
.ms-ch-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 34px; }
.ms-ch-opts label { position: relative; display: block; cursor: pointer; }
.ms-ch-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ms-ch-opts span { display: flex; align-items: center; min-height: 44px; height: 100%; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--ms-line); background: #fafbff; font-size: 14px; line-height: 1.35; color: #33405f; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.ms-ch-opts label:hover span { border-color: rgba(59, 108, 255, .5); }
.ms-ch-opts input:checked + span { border-color: var(--ms-blue); background: #eef3ff; color: var(--ms-ink); font-weight: 600; box-shadow: 0 6px 16px -10px rgba(59, 108, 255, .7); }
.ms-ch-opt { position: relative; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; border: 1.5px solid transparent; background: rgba(255, 255, 255, .7); transition: border-color .35s, background .35s, box-shadow .35s, transform .35s; }
.ms-ch-opt-top { display: flex; align-items: center; gap: 8px; }
.ms-ch-opt-top b { font-size: 16px; color: var(--ms-ink); }
.ms-ch-opt-top output { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ms-muted); }
.ms-ch-badge { display: none; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #2f54d6, #6d3fd8); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ms-ch-bar { height: 6px; margin: 10px 0 8px; border-radius: 6px; background: #e8ecf8; overflow: hidden; }
.ms-ch-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9fb4ff, #c4b5fd); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ms-ch-opt small { display: block; font-size: 12.5px; color: var(--ms-muted); }
.ms-ch-opt p { display: none; margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #2b3657; }
.ms-ch-opt.is-best { border-color: var(--ms-blue); background: #fff; box-shadow: 0 18px 36px -24px rgba(59, 108, 255, .7); }
.ms-ch-opt.is-best .ms-ch-badge { display: inline-block; animation: msPop .4s cubic-bezier(.3, 1.6, .5, 1); }
.ms-ch-opt.is-best p { display: block; }
.ms-ch-opt.is-best .ms-ch-bar i { background: linear-gradient(90deg, var(--ms-blue), var(--ms-violet)); }
.ms-ch-opt.is-best output { color: #2f54d6; }
.ms-ch-cta { display: inline-flex; margin-top: 6px; }
@keyframes msPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ms-cmp-wrap { margin-top: 30px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--ms-line); background: #fff; }
.ms-cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.ms-cmp caption { padding: 16px 20px 4px; text-align: left; font-weight: 700; color: var(--ms-ink); }
.ms-cmp th, .ms-cmp td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--ms-line); vertical-align: top; }
.ms-cmp thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ms-muted); }
.ms-cmp tbody th { font-weight: 600; color: var(--ms-ink); white-space: nowrap; }
.ms-cmp td { color: #33405f; }
.ms-cmp tbody tr:last-child > * { border-bottom: 0; }
.ms-cmp tbody tr:hover { background: #f7f9ff; }

/* ---- Technology stack ---- */
.ms-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ms-layer { --accent: hsl(var(--hue) 70% 40%); display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 20px; border-radius: 18px; background: linear-gradient(90deg, hsl(var(--hue) 90% 97%), #fff 45%); border: 1px solid var(--ms-line); border-left: 4px solid var(--accent); transition: opacity .6s ease var(--d, 0ms), transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, filter .3s; }
.ms-rv.ms-layer { transform: translateX(-28px); }
.ms-rv.ms-layer.in { transform: none; }
.ms-stack:hover .ms-layer.in:not(:hover) { filter: saturate(.6); opacity: .78; }
.ms-stack .ms-layer.in:hover { transform: translateX(6px); box-shadow: 0 18px 34px -24px hsl(var(--hue) 60% 40% / .6); }
.ms-layer-name { display: flex; gap: 14px; align-items: center; }
.ms-layer-name > span:last-child { display: grid; gap: 2px; }
.ms-layer-name b { font-size: 16px; color: var(--ms-ink); }
.ms-layer-name small { font-size: 13px; line-height: 1.45; color: var(--ms-muted); }
.ms-layer-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--accent); box-shadow: 0 6px 14px -8px hsl(var(--hue) 60% 40% / .6); }
.ms-layer-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ms-layer-tools li { padding: 7px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--ms-line); font-size: 13.5px; font-weight: 500; color: #24304f; transition: border-color .2s, color .2s, transform .2s; }
.ms-layer-tools li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---- Features ---- */
.ms-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ms-feat-tile { padding: 22px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ms-line); transition: opacity .6s ease var(--d, 0ms), transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.ms-feat-tile.in:hover { transform: translateY(-5px); border-color: rgba(45, 212, 191, .55); box-shadow: 0 22px 38px -26px rgba(13, 148, 136, .55); }
.ms-feat-ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #0d9488; background: #e9fbf8; }
.ms-feat-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(45, 212, 191, .45); opacity: 0; transform: scale(.85); }
.ms-feat-tile:hover .ms-feat-ic::after { animation: msRing 1.2s ease-out infinite; }
.ms-feat-ic .ms-ico { width: 26px; height: 26px; }
.ms-draw * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.3s ease calc(var(--d, 0ms) + 250ms); }
.ms-rv.in .ms-draw * { stroke-dashoffset: 0; }
.ms-feat-tile h3 { margin: 16px 0 6px; font-size: 16.5px; color: var(--ms-ink); }
.ms-feat-tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ms-muted); }
@keyframes msRing { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---- Engagement models ---- */
.ms-mod { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.ms-mod-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--ms-line); transition: opacity .6s ease var(--d, 0ms), transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.ms-mod-card.in:hover { transform: translateY(-6px); box-shadow: 0 28px 46px -30px rgba(12, 21, 48, .45); }
.ms-mod-card.is-featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--ms-blue), var(--ms-violet), var(--ms-mint)) border-box; box-shadow: 0 26px 50px -32px rgba(91, 76, 255, .7); }
.ms-mod-flag { position: absolute; top: -12px; left: 24px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #2f54d6, #6d3fd8); color: #fff; font-size: 12px; font-weight: 700; }
.ms-mod-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f1edff; color: #6d3fd8; }
.ms-mod-card h3 { margin: 16px 0 6px; font-size: 19px; color: var(--ms-ink); }
.ms-mod-card > p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ms-muted); }
.ms-mod-card .ms-mod-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: #f6f8ff; font-size: 13.5px; color: var(--ms-muted); }
.ms-mod-time .ms-tick { margin: 0; color: #2f54d6; }
.ms-mod-time b { color: var(--ms-ink); }
.ms-mod-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ms-mod-card li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: #2b3657; }
.ms-factors { margin-top: 30px; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #f4f7ff, #f7f2ff); border: 1px solid var(--ms-line); }
.ms-factors h3 { margin: 0 0 16px; font-size: 18px; color: var(--ms-ink); text-align: center; }
.ms-factors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; counter-reset: f; }
.ms-factors li { position: relative; padding: 14px 16px 14px 52px; border-radius: 14px; background: #fff; border: 1px solid var(--ms-line); counter-increment: f; }
.ms-factors li::before { content: counter(f); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ms-ink); color: #fff; font-size: 13px; font-weight: 700; }
.ms-factors b { display: block; font-size: 15px; color: var(--ms-ink); }
.ms-factors span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--ms-muted); }

@media (max-width: 900px) {
    .ms-ch { grid-template-columns: minmax(0, 1fr); }
    .ms-ch-result { position: static; }
    .ms-layer { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
    .ms-ch-quiz, .ms-ch-result { padding: 18px; }
    .ms-ch-opts { grid-template-columns: 1fr; padding-left: 0; }
    .ms-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .ms-filter button { flex: none; }
    .ms-layer { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-rv, .ms-rv.ms-layer { opacity: 1; transform: none; transition: none; }
    .ms-draw * { stroke-dashoffset: 0; transition: none; }
    .ms-svc-card, .ms-type, .ms-feat-tile, .ms-mod-card, .ms-layer, .ms-ch-bar i, .ms-ch-opt { transition: none; }
    .ms-feat-tile:hover .ms-feat-ic::after, .ms-ch-opt.is-best .ms-ch-badge, .ms-type.is-pop { animation: none; }
}

/* ---- Light opening with real app screenshots ---- */
.ms-lh-sec { position: relative; overflow: hidden; padding: 64px 0 72px; background: radial-gradient(620px 420px at 88% 28%, rgba(139, 92, 246, .14), transparent 65%), radial-gradient(520px 380px at 62% 92%, rgba(45, 212, 191, .14), transparent 62%), radial-gradient(560px 360px at 0% 0%, rgba(59, 108, 255, .10), transparent 60%), #fbfcff; }
.ms-lh-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(12, 21, 48, .07) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 80%); pointer-events: none; }
.ms-lh { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.ms-lh-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ms-line); box-shadow: 0 6px 16px -10px rgba(12, 21, 48, .35); font-size: 13px; font-weight: 600; color: #33405f; }
.ms-lh-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: msBlink 2s ease-in-out infinite; }
.ms-lh h1 { margin: 18px 0 0; font-size: clamp(32px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.02em; color: var(--ms-ink); }
.ms-lh h1 span { background: linear-gradient(90deg, #2f54d6, #7c3aed 55%, #0d9488); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ms-lh-text { margin: 18px 0 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--ms-muted); }
.ms-lh-plat { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.ms-lh-plat li { padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ms-line); font-size: 13.5px; font-weight: 500; color: #24304f; }
.ms-lh-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.ms-lh-line { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid rgba(12, 21, 48, .18); background: #fff; color: var(--ms-ink); font-weight: 600; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ms-lh-line i { font-style: normal; transition: transform .2s; }
.ms-lh-line:hover { border-color: var(--ms-ink); box-shadow: 0 10px 22px -14px rgba(12, 21, 48, .5); }
.ms-lh-line:hover i { transform: translateX(3px); }
.ms-lh-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px 34px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ms-line); }
.ms-lh-stats dt { font-size: 28px; font-weight: 800; color: var(--ms-ink); }
.ms-lh-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--ms-muted); }
.ms-reel { position: relative; height: 560px; perspective: 1400px; }
.ms-reel-glow { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: conic-gradient(from 0deg, #c7d2fe, #ddd6fe, #a7f3d0, #c7d2fe); filter: blur(46px); opacity: .7; animation: msSpin 18s linear infinite; }
.ms-reel-fan { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s ease-out; }
.ms-reel-shot { position: absolute; left: 50%; top: 50%; width: 240px; margin: -232px 0 0 -120px; transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s, opacity .9s; }
.ms-reel-shot img { display: block; width: 100%; height: auto; border-radius: 30px; filter: drop-shadow(0 34px 40px rgba(12, 21, 48, .28)); }
.ms-reel-shot[data-pos="0"] { transform: translate3d(0, 0, 80px); z-index: 5; }
.ms-reel-shot[data-pos="1"] { transform: translate3d(150px, 24px, -40px) rotateY(-18deg) rotate(4deg); z-index: 4; filter: saturate(.85); }
.ms-reel-shot[data-pos="2"] { transform: translate3d(-150px, 24px, -40px) rotateY(18deg) rotate(-4deg); z-index: 3; filter: saturate(.85); }
.ms-reel-shot[data-pos="3"] { transform: translate3d(250px, 50px, -160px) rotateY(-26deg) rotate(7deg); z-index: 2; opacity: .55; }
.ms-reel-shot[data-pos="4"] { transform: translate3d(-250px, 50px, -160px) rotateY(26deg) rotate(-7deg); z-index: 1; opacity: .55; }
.ms-reel-shot figcaption { position: absolute; left: 50%; bottom: -22px; display: grid; gap: 1px; min-width: 190px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--ms-line); box-shadow: 0 16px 30px -18px rgba(12, 21, 48, .5); text-align: center; transform: translate(-50%, 10px); opacity: 0; transition: opacity .5s .3s, transform .5s .3s; }
.ms-reel-shot[data-pos="0"] figcaption { opacity: 1; transform: translate(-50%, 0); }
.ms-reel-shot figcaption b { font-size: 14px; color: var(--ms-ink); }
.ms-reel-shot figcaption span { font-size: 12px; color: var(--ms-muted); }
@keyframes msSpin { to { transform: rotate(360deg); } }
@keyframes msBlink { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .05); } }

/* ---- Apps we've shipped ---- */
.ms-work-sec { background: linear-gradient(180deg, #fff 0%, #f7f8ff 100%); }
.ms-work { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.ms-work-row { --tint: hsl(var(--hue) 90% 95%); --accent: hsl(var(--hue) 70% 36%); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; border-radius: 28px; background: #fff; border: 1px solid var(--ms-line); overflow: hidden; box-shadow: 0 30px 60px -48px rgba(12, 21, 48, .45); }
.ms-work-row.is-flip .ms-work-stage { order: 2; }
.ms-work-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 380px; padding: 36px 24px 0; background: radial-gradient(280px 220px at 50% 40%, #fff, transparent 70%), linear-gradient(160deg, var(--tint), hsl(calc(var(--hue) + 40) 85% 94%)); overflow: hidden; }
.ms-work-ring { position: absolute; left: 50%; top: 52%; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%; border: 1px dashed hsl(var(--hue) 50% 70%); animation: msSpin 30s linear infinite; }
.ms-work-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ms-work-stage img { position: relative; width: 210px; height: auto; margin-bottom: -40px; border-radius: 26px; filter: drop-shadow(0 26px 30px rgba(12, 21, 48, .25)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ms-work-stage .ms-work-second { width: 180px; margin-left: -60px; margin-bottom: -70px; transform: rotate(6deg); opacity: .95; }
.ms-work-row:hover .ms-work-stage img { transform: translateY(-10px); }
.ms-work-row:hover .ms-work-stage .ms-work-second { transform: rotate(8deg) translateY(-4px); }
.ms-work-copy { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; }
.ms-work-cat { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.ms-work-copy h3 { margin: 14px 0 8px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--ms-ink); }
.ms-work-copy > p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ms-muted); }
.ms-work-feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ms-work-feats li { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.5; color: #24304f; }
.ms-work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ms-line); }
.ms-work-plats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ms-work-plats li { padding: 4px 10px; border-radius: 8px; background: #f3f5fb; font-size: 12.5px; font-weight: 600; color: #33405f; }
.ms-work-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.ms-work-link i { font-style: normal; transition: transform .25s; }
.ms-work-link:hover i { transform: translateX(4px); }

/* ---- App-type photo header ---- */
.ms-type-img { margin: -22px -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; background: var(--tint); }
.ms-type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ms-type:hover .ms-type-img img { transform: scale(1.06); }
.ms-type-img + .ms-type-head { margin-top: -44px; position: relative; padding: 0 2px; }
.ms-type-img + .ms-type-head .ms-type-ic { border: 3px solid #fff; }
.ms-type-img + .ms-type-head .ms-type-cat { align-self: flex-end; margin-bottom: 2px; }
.ms-type { padding-top: 22px; overflow: hidden; }

/* ---- Services grid: five across on wide screens, equal heights ---- */
@media (min-width: 1100px) { .ms-svc { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (hover: hover) and (min-width: 900px) { .ms-svc { align-items: stretch; } }

/* ---- Process timeline: light skin ---- */
.ms-jr-sec { background: linear-gradient(180deg, #f6f8ff 0%, #fff 100%) !important; color: var(--ms-ink); }
.ms-jr-sec .sv-title, .ms-jr-sec h2 { color: #000 !important; }
.ms-jr-sec .sv-intro { background: var(--sv-pill, #eef3ff) !important; color: #030303 !important; border-color: transparent !important; }
.ms-jr-screen { background: #fff; border-color: #fff; box-shadow: 0 40px 70px -44px rgba(12, 21, 48, .55), 0 0 0 1px var(--ms-line); }
.ms-jr-stagename { color: var(--ms-ink); }
.ms-jr-pct { color: var(--ms-muted); } .ms-jr-pct b { color: var(--ms-ink); }
.ms-jr-bar { background: #e6eaf6; }
.ms-jr-bar i { background: linear-gradient(90deg, var(--ms-blue), var(--ms-violet)); }
.ms-jr-steps li { opacity: .4; }
.ms-jr-steps li::before { background: #dfe4f2; }
.ms-jr-num { border-color: #cfd6ea; color: var(--ms-muted); background: #fff; }
.ms-jr-steps li.on .ms-jr-num { background: linear-gradient(135deg, var(--ms-blue), var(--ms-violet)); border-color: transparent; color: #fff; }
.ms-jr-steps h3 { color: var(--ms-ink); }
.ms-jr-steps p { color: var(--ms-muted); }

@media (max-width: 900px) {
    .ms-lh { grid-template-columns: minmax(0, 1fr); }
    .ms-reel { height: 500px; }
    .ms-lh-stats { grid-template-columns: repeat(2, auto); }
    .ms-work-row, .ms-work-row.is-flip { grid-template-columns: minmax(0, 1fr); }
    .ms-work-row.is-flip .ms-work-stage { order: 0; }
    .ms-work-stage { min-height: 320px; }
    .ms-work-copy { padding: 26px 22px; }
    .ms-jr-stage { background: #fff !important; }
}
@media (max-width: 560px) {
    .ms-lh-sec { padding: 40px 0 52px; }
    .ms-reel { height: 430px; }
    .ms-reel-shot { width: 196px; margin: -190px 0 0 -98px; }
    .ms-reel-shot[data-pos="1"] { transform: translate3d(96px, 20px, -40px) rotateY(-18deg) rotate(4deg); }
    .ms-reel-shot[data-pos="2"] { transform: translate3d(-96px, 20px, -40px) rotateY(18deg) rotate(-4deg); }
    .ms-reel-shot[data-pos="3"], .ms-reel-shot[data-pos="4"] { opacity: 0; }
    .ms-lh-stats dt { font-size: 24px; }
    .ms-work-feats { grid-template-columns: 1fr; }
    .ms-work-stage img { width: 170px; }
    .ms-work-stage .ms-work-second { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-reel-glow, .ms-work-ring, .ms-lh-kicker i { animation: none; }
    .ms-reel-shot, .ms-reel-fan, .ms-work-stage img, .ms-type-img img { transition: none; }
}
.ms-lh-stats dd { white-space: nowrap; }
@media (min-width: 900px) { .ms-factors ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* App screens inside a realistic phone (titanium edge, black bezel, Dynamic Island, glass glare) */
.ms-dev { position: relative; aspect-ratio: 540 / 1170; padding: 3.2%; border-radius: 15% / 7%; background: linear-gradient(135deg, #e4e7ee, #8d93a1 30%, #f3f4f8 52%, #747b89 78%, #c9ced8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 30px 50px -22px rgba(12,21,48,.45), 0 10px 18px -10px rgba(12,21,48,.3); }
.ms-dev-screen { position: relative; height: 100%; overflow: hidden; border-radius: 12.5% / 5.8%; background: #0b0d12; padding: 2.6%; }
.ms-dev-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%); pointer-events: none; }
html body main .ms-dev-screen img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover; object-position: top; border-radius: 11% / 5.1% !important; filter: none !important; transform: none !important; }
.ms-dev-island { position: absolute; z-index: 2; top: 3.6%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.ms-dev-btn { position: absolute; right: -1.4%; top: 22%; width: 1.6%; height: 9%; border-radius: 0 3px 3px 0; background: #9aa0ad; }
.ms-reel-shot .ms-dev { width: 100%; }
.ms-work-stage .ms-dev { width: 210px; margin-bottom: -40px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ms-work-row:hover .ms-work-stage .ms-dev { transform: translateY(-10px); }
@media (max-width: 640px) { .ms-work-stage .ms-dev { width: 170px; } }
html body main .ms-work-stage .ms-dev { margin: 0 0 -40px; flex: 0 0 auto; width: 210px !important; height: auto !important; max-width: none; align-self: flex-end; }
html body main .ms-work-stage .ms-dev-screen { height: auto; aspect-ratio: 540 / 1170; }
@media (max-width: 640px) { html body main .ms-work-stage .ms-dev { width: 170px !important; } }
