/* Main-domain public website (site.*). Stand-alone stylesheet: no Tailwind build needed.
   Light is the default; dark = html.dark / html[data-theme="dark"] (site.js, before paint). Prefix: ms-
   Look: warm paper background, ink type, solid product colours (ERP green / HMS blue / RMS orange),
   one yellow accent. No glass, no gradient text. */
:root {
    --ms-paper: #f6f5f1;
    --ms-bg: var(--ms-paper);
    --ms-surface: #ffffff;
    --ms-surface-2: #f1efe9;
    --ms-line: #e4e1d8;
    --ms-line-2: #d6d2c6;
    --ms-ink: #0d1b2a;
    --ms-text: #14202e;
    --ms-muted: #5d6673;
    --ms-primary: #0a8f5b;
    --ms-primary-soft: #e3f3eb;
    --ms-erp: #0a8f5b;
    --ms-hms: #2458f2;
    --ms-rms: #f0600b;
    --ms-yellow: #ffcb3d;
    --ms-yellow-soft: #fff3cc;
    --ms-danger: #d92d4a;
    --ms-shadow-sm: 0 1px 0 rgba(13, 27, 42, .04), 0 1px 3px rgba(13, 27, 42, .06);
    --ms-shadow: 0 2px 4px rgba(13, 27, 42, .04), 0 12px 32px -12px rgba(13, 27, 42, .18);
    --ms-shadow-lg: 0 24px 60px -24px rgba(13, 27, 42, .35);
    --ms-radius: 18px;
    --ms-radius-lg: 28px;
    --ms-head-h: 68px;
    --ms-bar-h: 0px;
    --ms-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', 'Mukta', system-ui, sans-serif;
    --ms-font: 'Plus Jakarta Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ms-font-np: 'Mukta', 'Plus Jakarta Sans', system-ui, sans-serif;
    color-scheme: light;
}
html.dark, html[data-theme="dark"] {
    --ms-paper: #0b131d;
    --ms-surface: #111c29;
    --ms-surface-2: #162333;
    --ms-line: #223246;
    --ms-line-2: #2d4058;
    --ms-ink: #e9eff6;
    --ms-text: #dfe7f0;
    --ms-muted: #93a1b3;
    --ms-primary: #2fc88a;
    --ms-primary-soft: rgba(47, 200, 138, .13);
    --ms-erp: #12a56b;
    --ms-hms: #3f6ff5;
    --ms-rms: #f26a1b;
    --ms-yellow-soft: rgba(255, 203, 61, .14);
    --ms-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --ms-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --ms-shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ms-body { margin: 0; font-family: var(--ms-font); color: var(--ms-text); background: var(--ms-bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[lang="np"] body.ms-body { font-family: var(--ms-font-np); font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ms-display); color: var(--ms-ink); line-height: 1.08; margin: 0; letter-spacing: -.025em; font-weight: 700; }
html[lang="np"] h1, html[lang="np"] h2, html[lang="np"] h3, html[lang="np"] h4 { font-family: var(--ms-font-np); letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
[x-cloak] { display: none !important; }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ms-primary); outline-offset: 2px; border-radius: 6px; }
.min-w-0 { min-width: 0; }
::selection { background: var(--ms-yellow); color: #0d1b2a; }

/* full width: the page uses the whole screen, only a fluid side gutter (20px phone → 72px wide screens) */
.ms-container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 72px); }
.ms-section { padding: 72px 0; }
@media (min-width: 1024px) { .ms-section { padding: 104px 0; } }
.ms-section--tight { padding: 40px 0; }
.ms-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ms-primary); }
.ms-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.ms-h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 12px; }
.ms-lead { color: var(--ms-muted); font-size: 18px; margin-top: 14px; max-width: 640px; line-height: 1.65; }
.ms-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.ms-center { text-align: center; }
.ms-center .ms-lead { margin-left: auto; margin-right: auto; }
.ms-mark { background: linear-gradient(transparent 58%, var(--ms-yellow) 58%, var(--ms-yellow) 92%, transparent 92%); padding: 0 .08em; }
html.dark .ms-mark { background: linear-gradient(transparent 62%, rgba(255, 203, 61, .55) 62%, rgba(255, 203, 61, .55) 92%, transparent 92%); }

/* buttons + chips */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.ms-btn:active { transform: translateY(1px); }
.ms-btn--primary { background: #0d1b2a; color: #fff; box-shadow: 0 6px 16px -8px rgba(13, 27, 42, .6); }
.ms-btn--primary:hover { background: var(--ms-primary); color: #fff; }
html.dark .ms-btn--primary { background: var(--ms-yellow); color: #0d1b2a; }
html.dark .ms-btn--primary:hover { background: #ffd866; color: #0d1b2a; }
.ms-btn--ghost { background: var(--ms-surface); border-color: var(--ms-line-2); color: var(--ms-ink); }
.ms-btn--ghost:hover { border-color: var(--ms-ink); }
.ms-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.ms-btn--white { background: #fff; color: #0d1b2a; }
.ms-btn--white:hover { background: var(--ms-yellow); }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--ms-surface); border: 1px solid var(--ms-line); color: var(--ms-text); transition: border-color .15s, background .15s; }
a.ms-chip:hover, button.ms-chip:hover { border-color: var(--ms-ink); }
.ms-chip i { color: var(--ms-primary); font-size: 12px; }
.ms-chip--on { background: var(--ms-ink); color: var(--ms-paper); border-color: var(--ms-ink); }
.ms-chip--on i { color: inherit; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-icon-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--ms-ink); border: 1px solid transparent; transition: background .15s, border-color .15s; flex: none; }
.ms-icon-btn:hover { background: var(--ms-surface-2); }

/* ticker */
.ms-ticker { background: #0d1b2a; color: #fff; font-size: 13px; overflow: hidden; position: relative; z-index: 41; }
.ms-ticker-inner { display: flex; align-items: center; gap: 14px; height: 36px; }
.ms-ticker-label { flex: none; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 6px; background: var(--ms-yellow); color: #0d1b2a; font-size: 12px; }
.ms-ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ms-ticker-run { display: inline-flex; gap: 40px; white-space: nowrap; animation: ms-marquee 38s linear infinite; padding-left: 100%; }
.ms-ticker:hover .ms-ticker-run { animation-play-state: paused; }
.ms-ticker-run a:hover { text-decoration: underline; }
@keyframes ms-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ms-ticker-run { animation: none; padding-left: 0; } }

/* header */
.ms-header { position: sticky; top: 0; z-index: 40; background: var(--ms-paper); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ms-header.is-scrolled, .ms-header.is-open { border-bottom-color: var(--ms-line); box-shadow: 0 6px 20px -16px rgba(13, 27, 42, .35); }
.ms-header-bar { position: relative; display: flex; align-items: center; gap: 24px; height: var(--ms-head-h); }
.ms-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ms-brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; overflow: hidden; background: #0d1b2a; color: var(--ms-yellow); font-family: var(--ms-display); font-weight: 800; font-size: 20px; position: relative; }
.ms-brand-mark::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 2px; background: #2fc88a; }
.ms-brand-mark--img { background: #fff; border: 1px solid var(--ms-line); }
.ms-brand-mark--img::after { display: none; }
.ms-brand-mark img { width: 80%; height: 80%; object-fit: contain; }
html.dark .ms-brand-mark:not(.ms-brand-mark--img) { background: var(--ms-yellow); color: #0d1b2a; }
.ms-brand-name { display: block; font-family: var(--ms-display); font-weight: 800; font-size: 19px; line-height: 1.1; color: var(--ms-ink); white-space: nowrap; letter-spacing: -.02em; }
.ms-brand-tag { display: block; font-size: 12px; color: var(--ms-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ms-nav { display: none; align-items: center; gap: 4px; }
.ms-nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ms-text); transition: background .15s, color .15s; }
.ms-nav-link:hover, .ms-nav-item.is-open > .ms-nav-link { background: var(--ms-surface-2); color: var(--ms-ink); }
.ms-nav-link.is-on { color: var(--ms-ink); }
.ms-nav-link.is-on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--ms-yellow); }
.ms-nav-link i.fa-chevron-down { font-size: 10px; transition: transform .2s; opacity: .6; }
.ms-nav-item { position: relative; }
.ms-nav-item.is-open .fa-chevron-down { transform: rotate(180deg); }
.ms-drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 6px; border-radius: 14px; background: var(--ms-surface); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-lg); z-index: 46; }
.ms-drop a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.ms-drop a:hover { background: var(--ms-surface-2); }

/* products mega: anchored to the header bar (absolute) — opacity + small lift, no blur, no JS positioning */
.ms-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; padding-top: 8px; }
.ms-mega-panel { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-radius: 20px; background: var(--ms-surface); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-lg); overflow: hidden; }
.ms-mega-enter { transition: opacity .15s ease-out, transform .15s ease-out; }
.ms-mega-leave { transition: opacity .1s ease-in, transform .1s ease-in; }
.ms-mega-from { opacity: 0; transform: translateY(-6px); }
.ms-mega-tabs { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--ms-surface-2); border-right: 1px solid var(--ms-line); }
.ms-mega-tab { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; text-align: left; transition: background .12s; }
.ms-mega-tab:hover { background: color-mix(in srgb, var(--ms-surface) 55%, transparent); }
.ms-mega-tab.is-on { background: var(--ms-surface); box-shadow: var(--ms-shadow-sm); }
.ms-mega-tab .ms-pi { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
.ms-mega-tab b { display: block; font-size: 14px; color: var(--ms-ink); line-height: 1.3; }
.ms-mega-tab small { display: block; font-size: 12px; color: var(--ms-muted); line-height: 1.35; margin-top: 2px; }
.ms-mega-body { padding: 16px; min-width: 0; }
.ms-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ms-mega-link { display: flex; gap: 12px; padding: 10px; border-radius: 12px; transition: background .12s; }
.ms-mega-link:hover { background: var(--ms-surface-2); }
.ms-mega-link i { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 12%, transparent); color: var(--acc, var(--ms-primary)); font-size: 14px; }
.ms-mega-link b { display: block; font-size: 14px; font-weight: 700; color: var(--ms-ink); line-height: 1.3; }
.ms-mega-link small { font-size: 12.5px; color: var(--ms-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.ms-mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 9%, var(--ms-surface)); font-size: 14px; }
.ms-mega-foot span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ms-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ms-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--ms-surface-2); border: 1px solid var(--ms-line); }
.ms-lang a { padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--ms-muted); line-height: 1.2; }
.ms-lang a.is-on { background: var(--ms-surface); color: var(--ms-ink); box-shadow: var(--ms-shadow-sm); }
.ms-desk { display: none !important; }
@media (min-width: 1024px) {
    .ms-nav { display: flex; }
    .ms-desk { display: inline-flex !important; }
    .ms-mob { display: none !important; }
}
@media (max-width: 1023px) {
    :root { --ms-head-h: 60px; --ms-bar-h: 68px; }
    .ms-brand-tag { max-width: 150px; }
    body.ms-body { padding-bottom: calc(var(--ms-bar-h) + env(safe-area-inset-bottom)); }
    .ms-mega { display: none !important; }
}
@media (max-width: 420px) { .ms-brand-tag { display: none; } }

/* phone / tablet bottom bar + sheets */
.ms-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; height: 60px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 18px; background: #0d1b2a; box-shadow: 0 18px 40px -16px rgba(13, 27, 42, .6); }
html.dark .ms-bar { background: #172536; border: 1px solid var(--ms-line); }
.ms-bar a, .ms-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.ms-bar i { font-size: 17px; }
.ms-bar .is-on { color: #fff; }
.ms-bar .is-on i { color: var(--ms-yellow); }
.ms-bar .ms-bar-main { color: #fff; }
.ms-bar .ms-bar-main i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #0d1b2a; background: var(--ms-yellow); margin-top: -24px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45); border: 3px solid var(--ms-paper); }
@media (min-width: 1024px) { .ms-bar, .ms-sheet, .ms-sheet-backdrop { display: none !important; } }
.ms-sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 15, 24, .45); }
.ms-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; max-height: 82vh; overflow-y: auto; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--ms-surface); box-shadow: 0 -20px 50px rgba(0, 0, 0, .2); }
.ms-sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--ms-line-2); margin: 2px auto 14px; }
.ms-sheet h3 { font-family: var(--ms-font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ms-muted); margin: 18px 0 8px; font-weight: 700; }
.ms-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .ms-sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ms-sheet-tile { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--ms-surface-2); font-size: 14px; font-weight: 600; text-align: left; color: var(--ms-ink); }
.ms-sheet-tile i { color: var(--acc, var(--ms-primary)); width: 18px; text-align: center; }
.ms-sheet-prod { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.ms-slide-up-enter { transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .18s; }
.ms-slide-up-from { transform: translateY(100%); opacity: .5; }

/* search overlay */
.ms-search { position: fixed; inset: 0; z-index: 70; background: rgba(8, 15, 24, .5); display: flex; justify-content: center; padding: 80px 16px 16px; }
.ms-search-box { width: min(640px, 100%); max-height: calc(100vh - 110px); display: flex; flex-direction: column; border-radius: 18px; background: var(--ms-surface); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-lg); overflow: hidden; }
.ms-search-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ms-line); }
.ms-search-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ms-ink); min-width: 0; }
.ms-search-results { overflow-y: auto; padding: 8px; }
.ms-search-hit { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.ms-search-hit:hover, .ms-search-hit.is-on { background: var(--ms-surface-2); }
.ms-search-hit i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ms-primary-soft); color: var(--ms-primary); }
.ms-search-hit b { display: block; font-size: 15px; color: var(--ms-ink); }
.ms-search-hit small { display: block; color: var(--ms-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-kbd { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--ms-line-2); color: var(--ms-muted); font-weight: 600; }

/* hero */
.ms-hero { padding: 48px 0 64px; position: relative; isolation: isolate; }
@media (min-width: 1024px) { .ms-hero { padding: 72px 0 96px; } }
.ms-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--ms-line-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); opacity: .6; }
.ms-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .ms-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.ms-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--ms-surface); border: 1px solid var(--ms-line); color: var(--ms-text); }
.ms-badge b { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #0d1b2a; color: var(--ms-yellow); }
.ms-hero h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 800; margin-top: 22px; letter-spacing: -.035em; line-height: 1.02; }
html[lang="np"] .ms-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.22; }
.ms-hero-text { color: var(--ms-muted); font-size: 19px; margin-top: 22px; max-width: 560px; line-height: 1.65; }
.ms-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ms-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ms-muted); font-size: 14px; font-weight: 500; }
.ms-hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.ms-hero-trust i { color: var(--ms-primary); }

/* hero collage: three product tiles with small "real" UI fragments */
.ms-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ms-tile { border-radius: 22px; padding: 18px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--ms-shadow); }
.ms-tile::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px); background-size: 16px 16px; pointer-events: none; }
.ms-tile > * { position: relative; }
.ms-tile--erp { grid-column: 1 / -1; background: var(--ms-erp); }
.ms-tile--hms { background: var(--ms-hms); }
.ms-tile--rms { background: var(--ms-rms); }
.ms-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.ms-tile-head span { display: inline-flex; align-items: center; gap: 8px; }
.ms-tile-head em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.ms-tile-card { margin-top: 14px; border-radius: 14px; background: #fff; color: #0d1b2a; padding: 10px 14px; font-size: 13px; }
.ms-tile-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #e3e0d7; }
.ms-tile-row:first-child { border-top: 0; }
.ms-tile-row small { color: #6b7380; font-size: 12px; }
.ms-tile-row b { font-weight: 700; }
.ms-tile-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e3f3eb; color: #08744a; white-space: nowrap; }
.ms-tile-pill--y { background: #fff3cc; color: #8a5a00; }
.ms-tile-pill--b { background: #e6ecff; color: #2458f2; }
.ms-tile-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: end; }
.ms-tile-total small { display: block; font-size: 12px; opacity: .8; font-weight: 600; }
.ms-tile-total b { display: block; font-family: var(--ms-display); font-size: 30px; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.ms-tile-bars { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.ms-tile-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(255, 255, 255, .55); transform-origin: bottom; animation: ms-grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.ms-tile-bars span:last-child { background: var(--ms-yellow); }
@keyframes ms-grow { from { transform: scaleY(.12); } }
.ms-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ms-rooms span { height: 24px; border-radius: 6px; background: #e6ecff; font-size: 10px; font-weight: 700; display: grid; place-items: center; color: #2458f2; }
.ms-rooms span.is-in { background: #2458f2; color: #fff; }
.ms-rooms span.is-dirty { background: #fff3cc; color: #8a5a00; }
.ms-sticker { position: absolute; top: -16px; right: 22px; z-index: 2; transform: rotate(4deg); padding: 8px 14px; border-radius: 10px; background: var(--ms-yellow); color: #0d1b2a; font-weight: 800; font-size: 13px; box-shadow: var(--ms-shadow); }
@media (prefers-reduced-motion: reduce) { .ms-tile-bars span { animation: none; } }
.ms-visual-main { border-radius: var(--ms-radius-lg); overflow: hidden; box-shadow: var(--ms-shadow-lg); }
.ms-visual-main > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* slider hero */
.ms-slider { position: relative; border-radius: var(--ms-radius-lg); overflow: hidden; min-height: 520px; box-shadow: var(--ms-shadow-lg); isolation: isolate; background: #0d1b2a; }
@media (max-width: 640px) { .ms-slider { min-height: 440px; } }
.ms-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; transition: opacity .7s ease; opacity: 0; }
.ms-slide.is-on { opacity: 1; z-index: 1; }
.ms-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ms-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 15, 24, .85), rgba(8, 15, 24, .2) 60%, transparent); }
.ms-slide-fallback { position: absolute; inset: 0; z-index: -2; background: var(--ms-erp); }
.ms-slide-body { padding: 32px; color: #fff; max-width: 760px; }
@media (min-width: 1024px) { .ms-slide-body { padding: 56px; } }
.ms-slide-body h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; }
.ms-slide-body p { margin-top: 12px; opacity: .9; font-size: 18px; }
.ms-slider-dots { position: absolute; right: 22px; bottom: 22px; z-index: 3; display: flex; gap: 6px; }
.ms-slider-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: all .2s; }
.ms-slider-dots button.is-on { width: 30px; background: var(--ms-yellow); }
.ms-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); }
.ms-slider-nav:hover { background: rgba(255, 255, 255, .28); }
.ms-slider-nav--prev { left: 16px; } .ms-slider-nav--next { right: 16px; }

/* stats band */
.ms-statband { border-radius: var(--ms-radius-lg); background: #0d1b2a; color: #fff; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.dark .ms-statband { background: var(--ms-surface); border: 1px solid var(--ms-line); }
@media (min-width: 768px) { .ms-statband { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-stat { padding: 22px 24px; }
@media (min-width: 768px) { .ms-stat + .ms-stat { box-shadow: -1px 0 0 rgba(255, 255, 255, .1); } }
.ms-stat b { display: block; font-family: var(--ms-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.ms-stat:first-child b { color: var(--ms-yellow); }
.ms-stat span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .65); font-size: 14px; font-weight: 500; }

/* cards */
.ms-card { position: relative; border-radius: var(--ms-radius); background: var(--ms-surface); border: 1px solid var(--ms-line); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.ms-card:hover { transform: translateY(-3px); box-shadow: var(--ms-shadow); border-color: var(--ms-line-2); }
.ms-grid-2, .ms-grid-3, .ms-grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .ms-grid-4, .ms-grid-3, .ms-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ms-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .ms-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-pi { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 19px; flex: none; }

/* product cards: solid colour head + white body */
.ms-product { overflow: hidden; display: flex; flex-direction: column; }
.ms-product-head { position: relative; padding: 24px; background: var(--acc, var(--ms-primary)); color: #fff; min-height: 156px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ms-product-head::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.2px); background-size: 16px 16px; mask-image: linear-gradient(135deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(135deg, transparent 35%, #000); }
.ms-product-head > * { position: relative; }
.ms-product-head .ms-pi { background: rgba(255, 255, 255, .18); }
.ms-product-head h3 { color: #fff; font-size: 26px; font-weight: 800; }
.ms-product-head small { display: block; font-size: 13px; opacity: .85; margin-top: 6px; font-weight: 500; line-height: 1.4; }
.ms-product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ms-product-body p { color: var(--ms-muted); font-size: 15px; }
.ms-product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ms-product-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; }
.ms-product-list i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 13%, transparent); color: var(--acc, var(--ms-primary)); flex: none; }
.ms-product-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ms-ink); }
.ms-product-more i { transition: transform .2s; color: var(--acc, var(--ms-primary)); }
.ms-product:hover .ms-product-more i { transform: translateX(4px); }

.ms-feature { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ms-feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 12%, transparent); color: var(--acc, var(--ms-primary)); flex: none; }
.ms-feature h3 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.ms-feature p { color: var(--ms-muted); font-size: 14.5px; }
.ms-feature-go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--ms-ink); display: inline-flex; gap: 8px; align-items: center; }
.ms-feature-go i { transition: transform .2s; color: var(--acc, var(--ms-primary)); }
a.ms-feature:hover { border-color: var(--acc, var(--ms-primary)); }
.ms-feature:hover .ms-feature-go i { transform: translateX(4px); }

/* bento (why) */
.ms-bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .ms-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ms-bento .is-wide { grid-column: span 2; } .ms-bento .is-tall { grid-row: span 2; } }
.ms-bento-card { padding: 26px; border-radius: var(--ms-radius-lg); background: var(--ms-surface); border: 1px solid var(--ms-line); display: flex; flex-direction: column; gap: 12px; }
.ms-bento-card h3 { font-size: 21px; font-weight: 700; }
.ms-bento-card p { color: var(--ms-muted); font-size: 15px; }
.ms-bento-card--ink { background: #0d1b2a; border-color: #0d1b2a; justify-content: space-between; }
html.dark .ms-bento-card--ink { background: #18304a; border-color: #18304a; }
.ms-bento-card--ink h3 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.ms-bento-card--ink p { color: rgba(255, 255, 255, .7); }
.ms-bento-card--ink .ms-feature-icon { background: rgba(255, 255, 255, .1); color: var(--ms-yellow); }
.ms-bento-card--yellow { background: var(--ms-yellow); border-color: var(--ms-yellow); }
.ms-bento-card--yellow h3, .ms-bento-card--yellow p { color: #0d1b2a; }
.ms-bento-card--yellow .ms-feature-icon { background: rgba(13, 27, 42, .1); color: #0d1b2a; }
.ms-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; text-align: center; margin-top: 18px; max-width: 340px; }
.ms-cal span { padding: 7px 0; border-radius: 7px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .72); font-weight: 600; }
.ms-cal span.is-on { background: var(--ms-yellow); color: #0d1b2a; font-weight: 800; }
.ms-cal span.is-h { color: rgba(255, 255, 255, .42); background: transparent; font-weight: 700; }
.ms-cal-head { display: flex; justify-content: space-between; align-items: baseline; max-width: 340px; color: #fff; font-weight: 700; margin-top: 4px; }
.ms-cal-head small { color: rgba(255, 255, 255, .55); font-weight: 600; }

/* tabs */
.ms-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ms-surface-2); border: 1px solid var(--ms-line); }
.ms-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ms-muted); transition: background .15s, color .15s; }
.ms-tab i { color: var(--acc, var(--ms-primary)); }
.ms-tab.is-on { color: var(--ms-ink); background: var(--ms-surface); box-shadow: var(--ms-shadow-sm); }
.ms-tab:not(.is-on):hover { color: var(--ms-ink); }
@media (max-width: 640px) { .ms-tabs { display: flex; } .ms-tab { flex: 1 1 auto; justify-content: center; } }

/* closing band (yellow) */
.ms-band { border-radius: var(--ms-radius-lg); padding: 36px 28px; background: var(--ms-yellow); color: #0d1b2a; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .ms-band { padding: 56px; } }
.ms-band::after { content: ''; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(13, 27, 42, .07); }
.ms-band h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; color: #0d1b2a; max-width: 640px; }
.ms-band p { margin-top: 12px; max-width: 560px; font-size: 17px; color: #3d3622; }
.ms-band-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.ms-band .ms-btn--primary { background: #0d1b2a; color: #fff; }
.ms-band .ms-btn--primary:hover { background: #0a8f5b; }
.ms-band .ms-btn--ghost { background: transparent; border-color: rgba(13, 27, 42, .35); color: #0d1b2a; }

/* inner page hero */
.ms-phero { padding: 32px 0 36px; }
@media (min-width: 1024px) { .ms-phero { padding: 44px 0 52px; } }
.ms-phero-card { position: relative; border-radius: var(--ms-radius-lg); padding: 32px 24px; overflow: hidden; background: var(--ms-surface); border: 1px solid var(--ms-line); }
@media (min-width: 768px) { .ms-phero-card { padding: 48px; } }
.ms-phero-card::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background-image: radial-gradient(var(--ms-line-2) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); opacity: .7; pointer-events: none; }
.ms-phero-card > * { position: relative; }
.ms-phero-card--solid { background: var(--acc, var(--ms-primary)); border-color: transparent; color: #fff; }
.ms-phero-card--solid::before { background-image: radial-gradient(rgba(255, 255, 255, .2) 1.2px, transparent 1.2px); opacity: 1; }
.ms-phero-card--solid h1, .ms-phero-card--solid .ms-crumbs, .ms-phero-card--solid .ms-eyebrow { color: #fff; }
.ms-phero-card--solid .ms-lead { color: rgba(255, 255, 255, .88); }
.ms-phero-card--solid .ms-chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.ms-phero-card--solid .ms-chip i { color: #fff; }
.ms-phero-card--solid .ms-btn--primary { background: #fff; color: #0d1b2a; }
.ms-phero-card--solid .ms-btn--primary:hover { background: var(--ms-yellow); }
.ms-phero-card--solid .ms-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ms-phero-card--solid .ms-pi { background: rgba(255, 255, 255, .18) !important; }
.ms-phero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-top: 14px; letter-spacing: -.03em; }
html[lang="np"] .ms-phero h1 { font-size: clamp(30px, 4.2vw, 48px); }
.ms-phero .ms-lead { font-size: 18px; }
.ms-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ms-muted); }
.ms-crumbs a:hover { text-decoration: underline; }
.ms-crumbs i { font-size: 9px; opacity: .6; }
.ms-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .ms-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; } }
.ms-aside { position: sticky; top: calc(var(--ms-head-h) + 24px); display: grid; gap: 16px; }
.ms-aside-card { padding: 20px; }
.ms-aside-card h3 { font-family: var(--ms-font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ms-muted); margin-bottom: 12px; font-weight: 700; }
.ms-aside-links { display: grid; gap: 2px; }
.ms-aside-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.ms-aside-links a:hover { background: var(--ms-surface-2); }
.ms-aside-links a.is-on { background: color-mix(in srgb, var(--acc, var(--ms-primary)) 12%, transparent); color: var(--ms-ink); font-weight: 700; }
.ms-aside-links i { width: 18px; text-align: center; color: var(--acc, var(--ms-primary)); font-size: 13px; }
.ms-aside-cta { background: #0d1b2a; border-color: #0d1b2a; color: #fff; }
.ms-aside-cta h3 { color: var(--ms-yellow); }
.ms-aside-cta p { color: rgba(255, 255, 255, .75); font-size: 15px; }
.ms-aside-cta .ms-btn--primary { background: var(--ms-yellow); color: #0d1b2a; }
.ms-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ms-points li { display: flex; gap: 12px; align-items: flex-start; }
.ms-points li i { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 11px; margin-top: 1px; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 13%, transparent); color: var(--acc, var(--ms-primary)); }
.ms-block { padding: 26px; }
@media (min-width: 768px) { .ms-block { padding: 34px; } }
.ms-block h2 { font-size: 24px; font-weight: 700; }
.ms-block > p { color: var(--ms-muted); margin-top: 10px; font-size: 16px; }
.ms-steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 768px) { .ms-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.ms-step { padding: 24px; }
.ms-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--ms-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--acc, var(--ms-primary)); margin-bottom: 14px; }
.ms-step h3 { font-size: 18px; font-weight: 700; }
.ms-step p { color: var(--ms-muted); font-size: 14.5px; margin-top: 6px; }

/* prose (CMS content) */
.ms-prose { font-size: 17px; line-height: 1.8; color: var(--ms-text); overflow-wrap: anywhere; }
.ms-prose > * + * { margin-top: 1.05em; }
.ms-prose h1, .ms-prose h2 { font-size: 28px; font-weight: 700; margin-top: 1.5em; }
.ms-prose h3 { font-size: 22px; font-weight: 700; margin-top: 1.4em; }
.ms-prose a { color: var(--ms-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ms-prose ul { list-style: disc; padding-left: 1.4em; } .ms-prose ol { list-style: decimal; padding-left: 1.4em; }
.ms-prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 4px solid var(--ms-yellow); background: var(--ms-yellow-soft); border-radius: 0 12px 12px 0; }
.ms-prose img, .ms-prose figure img { border-radius: 14px; height: auto; }
.ms-prose figure { margin: 1.4em 0; } .ms-prose figcaption { font-size: 14px; color: var(--ms-muted); margin-top: 6px; text-align: center; }
.ms-prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--ms-surface-2); font-size: 14px; }
.ms-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ms-prose td, .ms-prose th { border: 1px solid var(--ms-line); padding: 8px 12px; }

/* blog */
.ms-post { overflow: hidden; display: flex; flex-direction: column; }
.ms-post-img { aspect-ratio: 16 / 10; background: var(--ms-surface-2); position: relative; overflow: hidden; }
.ms-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ms-post:hover .ms-post-img img { transform: scale(1.04); }
.ms-post-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; background: var(--acc, var(--ms-erp)); }
.ms-post-ph::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.ms-post-ph i { position: relative; }
.ms-post-kind { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--ms-yellow); color: #0d1b2a; }
.ms-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ms-post-meta { font-size: 13px; color: var(--ms-muted); display: flex; gap: 14px; flex-wrap: wrap; font-weight: 500; }
.ms-post h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.ms-post p { color: var(--ms-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.ms-pagination a, .ms-pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--ms-surface); border: 1px solid var(--ms-line); }
.ms-pagination a:hover { border-color: var(--ms-ink); }
.ms-pagination .is-on { background: var(--ms-ink); color: var(--ms-paper); border-color: var(--ms-ink); }
.ms-pagination .is-off { opacity: .4; }
.ms-article-cover { border-radius: var(--ms-radius-lg); overflow: hidden; margin-bottom: 28px; }
.ms-article-cover img { width: 100%; max-height: 520px; object-fit: cover; }

/* faq */
.ms-faq { display: grid; gap: 10px; }
.ms-faq details { border-radius: 16px; background: var(--ms-surface); border: 1px solid var(--ms-line); transition: border-color .2s; }
.ms-faq details[open] { border-color: var(--ms-ink); }
.ms-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16.5px; color: var(--ms-ink); }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq summary i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--ms-surface-2); font-size: 12px; transition: transform .25s, background .2s; }
.ms-faq details[open] summary i { transform: rotate(45deg); background: var(--ms-yellow); color: #0d1b2a; }
.ms-faq .ms-faq-a { padding: 0 20px 20px; color: var(--ms-muted); white-space: pre-line; font-size: 15.5px; }

/* forms */
.ms-form { display: grid; gap: 18px; }
.ms-form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .ms-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-field { min-width: 0; }
.ms-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ms-ink); }
.ms-input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--ms-line); background: var(--ms-surface); color: var(--ms-ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
textarea.ms-input { height: auto; min-height: 140px; padding: 13px 16px; resize: vertical; }
.ms-input:hover { border-color: var(--ms-line-2); }
.ms-input:focus { outline: 0; border-color: var(--ms-ink); box-shadow: 0 0 0 4px var(--ms-yellow-soft); }
.ms-err { color: var(--ms-danger); font-size: 13px; margin-top: 6px; font-weight: 500; }
.ms-alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ms-alert--ok { background: var(--ms-primary-soft); color: var(--ms-primary); }
.ms-alert--err { background: rgba(217, 45, 74, .1); color: var(--ms-danger); }
.ms-contact-card { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.ms-contact-card i { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--ms-surface-2); color: var(--ms-ink); }
.ms-contact-card small { display: block; color: var(--ms-muted); font-size: 13px; font-weight: 600; }
.ms-contact-card b { display: block; font-size: 16px; word-break: break-word; color: var(--ms-ink); }
.ms-map { border: 0; width: 100%; height: 320px; border-radius: var(--ms-radius); }

/* select2 on the public site (ws-select.js) — same look as .ms-input */
.ms-body .select2-container { width: 100% !important; }
.ms-body .select2-container .select2-selection--single { height: 50px !important; border-radius: 12px !important; border: 1.5px solid var(--ms-line) !important; background: var(--ms-surface) !important; display: flex !important; align-items: center; }
.ms-body .select2-container--open .select2-selection--single, .ms-body .select2-container--focus .select2-selection--single { border-color: var(--ms-ink) !important; box-shadow: 0 0 0 4px var(--ms-yellow-soft); }
.ms-body .select2-container .select2-selection__rendered { color: var(--ms-ink) !important; padding-left: 16px !important; font-size: 15px !important; line-height: 1.3 !important; }
.ms-body .select2-container .select2-selection__arrow { height: 48px !important; right: 10px !important; }
.ms-body .select2-dropdown { border-radius: 12px !important; border: 1.5px solid var(--ms-ink) !important; overflow: hidden; background: var(--ms-surface) !important; color: var(--ms-ink) !important; box-shadow: var(--ms-shadow-lg); }
.ms-body .select2-search--dropdown { padding: 8px !important; }
.ms-body .select2-search__field { border-radius: 9px !important; border: 1.5px solid var(--ms-line) !important; padding: 8px 10px !important; background: var(--ms-surface-2) !important; color: var(--ms-ink) !important; outline: 0; font: inherit; }
.ms-body .select2-results__option { padding: 9px 14px !important; font-size: 15px !important; color: var(--ms-ink); }
.ms-body .select2-results__option--highlighted { background: var(--ms-yellow) !important; color: #0d1b2a !important; }
.ms-body .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted), .ms-body .select2-results__option--selected:not(.select2-results__option--highlighted) { background: var(--ms-surface-2) !important; color: var(--ms-ink) !important; font-weight: 700; }

/* apps */
.ms-app { padding: 18px; display: flex; gap: 16px; align-items: center; }
.ms-app-icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #0d1b2a; color: var(--ms-yellow); font-size: 20px; }
html.dark .ms-app-icon { background: var(--ms-yellow); color: #0d1b2a; }
.ms-app small { display: block; font-size: 12px; color: var(--ms-primary); font-weight: 700; }
.ms-app b { display: block; font-size: 16px; color: var(--ms-ink); }
.ms-app p { font-size: 14px; color: var(--ms-muted); }
.ms-store { margin-left: auto; flex: none; }

/* footer (ink) */
.ms-footer { margin-top: 40px; padding: 64px 0 28px; background: #0d1b2a; color: rgba(255, 255, 255, .78); }
html.dark .ms-footer { background: #070d14; border-top: 1px solid var(--ms-line); }
.ms-footer .ms-brand-name { color: #fff; }
.ms-footer .ms-brand-mark:not(.ms-brand-mark--img) { background: var(--ms-yellow); color: #0d1b2a; }
.ms-footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .ms-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.ms-footer h4 { font-family: var(--ms-font); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.ms-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.ms-footer-links a:hover { color: var(--ms-yellow); }
.ms-footer-text { color: rgba(255, 255, 255, .6); font-size: 15px; margin-top: 16px; max-width: 340px; }
.ms-social { display: flex; gap: 8px; margin-top: 20px; }
.ms-footer .ms-icon-btn { color: #fff; background: rgba(255, 255, 255, .08); }
.ms-footer .ms-icon-btn:hover { background: var(--ms-yellow); color: #0d1b2a; }
.ms-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.ms-footer-bottom a:hover { color: #fff; }

/* popup notice */
.ms-popup-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 15, 24, .5); }
.ms-popup { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 22px; background: var(--ms-surface); box-shadow: var(--ms-shadow-lg); position: relative; }
.ms-popup img { width: 100%; max-height: 300px; object-fit: cover; }
.ms-popup-body { padding: 24px; }
.ms-popup-body h3 { font-size: 22px; }
.ms-popup-body p { color: var(--ms-muted); margin-top: 8px; white-space: pre-line; }
.ms-popup-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ms-surface); box-shadow: var(--ms-shadow-sm); }

/* scroll reveal */
/* Reveals animate opacity + the separate translate / scale properties, never transform:
   transform stays free for the hover tilt (site.js), so a revealed card can still tilt. */
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: ms-in .85s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) both; }
[data-reveal="left"].is-in { animation-name: ms-in-left; }
[data-reveal="right"].is-in { animation-name: ms-in-right; }
[data-reveal="zoom"].is-in { animation-name: ms-in-zoom; animation-duration: 1s; }
@keyframes ms-in { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes ms-in-left { from { opacity: 0; translate: -48px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ms-in-right { from { opacity: 0; translate: 56px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ms-in-zoom { from { opacity: 0; scale: .9; translate: 0 24px; } to { opacity: 1; scale: 1; translate: 0 0; } }
html.ms-no-js [data-reveal], html.ms-reduce [data-reveal] { opacity: 1; animation: none; }
.ms-totop { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 39; background: #0d1b2a; color: #fff; box-shadow: var(--ms-shadow); }
.ms-totop:hover { background: var(--ms-primary); }
@media (max-width: 1023px) { .ms-totop { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.ms-empty { text-align: center; padding: 48px 16px; color: var(--ms-muted); }
.ms-empty i { font-size: 34px; opacity: .5; display: block; margin-bottom: 10px; }

/* =====================================================================================
   Motion layer (round 3): space background, page transitions, hover tilt, heading word
   rise, pinned product story, mega menu slide-in. Everything moves on transform / opacity
   only (compositor), and everything stops for prefers-reduced-motion.
   ===================================================================================== */

/* ---- cross-page transition (Chrome / Edge 126+, others just navigate) ---- */

/* ---- reading progress (pure CSS scroll timeline; hidden where unsupported) ---- */
.ms-progress { display: none; }
@supports (animation-timeline: scroll()) {
    .ms-progress { display: block; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform-origin: 0 50%; background: linear-gradient(90deg, var(--ms-erp), var(--ms-hms) 50%, var(--ms-rms)); animation: ms-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
    @keyframes ms-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---- space background: two drifting star layers, two slow nebulae, rising module tokens ---- */
.ms-space { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.ms-stars { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform; }
.ms-stars--a {
    background-image:
        radial-gradient(1.4px 1.4px at 20px 30px, var(--ms-star) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 140px 90px, var(--ms-star) 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 260px 200px, var(--ms-star) 50%, transparent 52%),
        radial-gradient(1px 1px at 330px 40px, var(--ms-star) 50%, transparent 52%),
        radial-gradient(1.3px 1.3px at 80px 260px, var(--ms-star) 50%, transparent 52%),
        radial-gradient(1.1px 1.1px at 200px 330px, var(--ms-star) 50%, transparent 52%);
    background-size: 380px 380px;
    animation: ms-drift 140s linear infinite;
}
.ms-stars--b {
    background-image:
        radial-gradient(2px 2px at 60px 120px, var(--ms-star-2) 50%, transparent 55%),
        radial-gradient(1.8px 1.8px at 420px 60px, var(--ms-star-2) 50%, transparent 55%),
        radial-gradient(2.2px 2.2px at 300px 410px, var(--ms-star-2) 50%, transparent 55%),
        radial-gradient(1.6px 1.6px at 520px 300px, var(--ms-star-2) 50%, transparent 55%);
    background-size: 600px 520px;
    animation: ms-drift 90s linear infinite, ms-twinkle 5s ease-in-out infinite alternate;
}
@keyframes ms-drift { to { transform: translate3d(0, -50%, 0); } }
@keyframes ms-twinkle { from { opacity: .45; } to { opacity: 1; } }
.ms-nebula { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: var(--ms-nebula-o); will-change: transform; }
.ms-nebula--a { left: -22vmax; top: -18vmax; background: radial-gradient(closest-side, var(--ms-erp), transparent); animation: ms-float-a 38s ease-in-out infinite alternate; }
.ms-nebula--b { right: -26vmax; bottom: -30vmax; background: radial-gradient(closest-side, var(--ms-hms), transparent); animation: ms-float-b 46s ease-in-out infinite alternate; }
@keyframes ms-float-a { to { transform: translate3d(12vmax, 10vmax, 0) scale(1.15); } }
@keyframes ms-float-b { to { transform: translate3d(-14vmax, -8vmax, 0) scale(.9); } }

.ms-tokens > span {
    --c: var(--ms-erp);
    position: absolute; left: var(--x); bottom: calc(var(--s) * -1.6);
    width: var(--s); height: var(--s); border-radius: 30%;
    display: grid; place-items: center;
    font-family: var(--ms-display); font-weight: 800; font-size: calc(var(--s) * .38); line-height: 1;
    color: var(--c); background: var(--ms-token-bg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 22px -10px color-mix(in srgb, var(--c) 60%, transparent);
    opacity: 0; will-change: transform, opacity;
    animation: ms-rise var(--dur) linear var(--delay) infinite;
}
.ms-tokens > span i { font-size: calc(var(--s) * .42); }
.ms-tokens > span.is-hms { --c: var(--ms-hms); }
.ms-tokens > span.is-rms { --c: var(--ms-rms); }
.ms-tokens > span.is-y { --c: #c98f00; }
html.dark .ms-tokens > span.is-y { --c: var(--ms-yellow); }
.ms-tokens > span:nth-child(2n) { --sway: -3rem; --spin: -14deg; }
.ms-tokens > span:nth-child(3n) { --sway: 4rem; --spin: 20deg; }
@keyframes ms-rise {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: var(--ms-token-o); }
    35%  { transform: translate3d(var(--sway, 2.5rem), -38vh, 0) rotate(var(--spin, 12deg)); }
    68%  { transform: translate3d(calc(var(--sway, 2.5rem) * -1), -72vh, 0) rotate(calc(var(--spin, 12deg) * -1)); }
    90%  { opacity: var(--ms-token-o); }
    100% { transform: translate3d(0, calc(-100vh - 140px), 0) rotate(0deg); opacity: 0; }
}
@media (max-width: 767px) { .ms-tokens > span:nth-child(n + 13) { display: none; } }

:root { --ms-star: rgba(13, 27, 42, .26); --ms-star-2: rgba(36, 88, 242, .35); --ms-nebula-o: .07; --ms-token-bg: rgba(255, 255, 255, .9); --ms-token-o: .55; }
html.dark, html[data-theme="dark"] { --ms-star: rgba(255, 255, 255, .55); --ms-star-2: rgba(255, 214, 102, .8); --ms-nebula-o: .16; --ms-token-bg: rgba(17, 28, 41, .82); --ms-token-o: .7; }

/* ---- hero: orbit rings behind the collage, scroll-away parallax, floating sticker ---- */
.ms-hero-visual { position: relative; }
.ms-orbit { position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none; }
.ms-orbit span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ms-ink) 16%, transparent); animation: ms-spin 60s linear infinite; }
.ms-orbit span:last-child { inset: 16%; border-style: solid; border-color: color-mix(in srgb, var(--ms-hms) 22%, transparent); animation-duration: 38s; animation-direction: reverse; }
.ms-orbit span::after { content: ''; position: absolute; top: 50%; left: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--ms-yellow); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ms-yellow) 28%, transparent); }
.ms-orbit span:last-child::after { left: auto; right: -6px; top: 30%; width: 11px; height: 11px; background: var(--ms-rms); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ms-rms) 22%, transparent); }
@keyframes ms-spin { to { transform: rotate(360deg); } }
.ms-sticker { animation: ms-bob 3.2s ease-in-out infinite; }
@keyframes ms-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@supports (animation-timeline: scroll()) {
    .ms-hero-visual { animation: ms-hero-away linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .ms-hero-copy { animation: ms-hero-copy-away linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes ms-hero-away { to { translate: 0 -70px; rotate: -2deg; } }
    @keyframes ms-hero-copy-away { to { translate: 0 40px; opacity: .25; } }
}
/* the highlighter is drawn left to right once the headline is in */
.ms-hero h1 .ms-mark { background-repeat: no-repeat; background-size: 100% 100%; }
.ms-hero h1.is-in .ms-mark { animation: ms-mark-in 1.1s cubic-bezier(.16, 1, .3, 1) .55s both; }
@keyframes ms-mark-in { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* ---- headings: words rise out of a mask when the block is revealed (site.js wraps them) ---- */
.ms-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.ms-w > span { display: inline-block; }
[data-reveal] .ms-w > span { translate: 0 110%; }
[data-reveal].is-in .ms-w > span { animation: ms-word .9s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + var(--wi, 0) * 55ms + 80ms) both; }
@keyframes ms-word { from { translate: 0 110%; } to { translate: 0 0; } }
html.ms-reduce .ms-w > span, html.ms-no-js .ms-w > span { translate: none !important; animation: none !important; }

/* ---- hover tilt (site.js writes transform + --mx / --my); glare follows the pointer ---- */
.ms-tilt { position: relative; transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, border-color .2s; transform-style: preserve-3d; }
.ms-tilt.is-tilting { transition: transform .12s ease-out, box-shadow .3s, border-color .2s; box-shadow: 0 30px 60px -28px rgba(13, 27, 42, .45); z-index: 2; }
.ms-tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 45%); z-index: 3; }
.ms-tilt.is-tilting::after { opacity: 1; }
html.dark .ms-tilt.is-tilting { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--acc, var(--ms-primary)) 45%, transparent); }
.ms-tile.ms-tilt::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 50%); }

/* ---- products mega: tabs slide in from the left, every feature slides from the right into place ---- */
.ms-mega-tab { animation: ms-mega-tab-in .5s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 60ms) both; }
.ms-mega-link, .ms-mega-foot { animation: ms-mega-in .55s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 26ms + 40ms) both; }
@keyframes ms-mega-in { from { opacity: 0; translate: 44px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ms-mega-tab-in { from { opacity: 0; translate: -22px 0; } to { opacity: 1; translate: 0 0; } }
.ms-mega-link i { transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .2s, color .2s; }
.ms-mega-link:hover i { transform: rotate(-8deg) scale(1.12); background: var(--acc, var(--ms-primary)); color: #fff; }
.ms-mega-link b { transition: translate .3s cubic-bezier(.16, 1, .3, 1); }
.ms-mega-link:hover b { translate: 4px 0; }

/* ---- pinned product story ---- */
.ms-story-grid { display: grid; gap: 40px; }
.ms-story-stage { display: none; }
.ms-story-step { padding: 26px; border-radius: var(--ms-radius-lg); background: var(--ms-surface); border: 1px solid var(--ms-line); }
.ms-story-step + .ms-story-step { margin-top: 24px; }
.ms-story-step-head { display: flex; gap: 16px; align-items: flex-start; }
.ms-story-step-head .ms-pi { background: var(--acc); }
.ms-story-step-head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.ms-story-step-head p { color: var(--ms-muted); margin-top: 6px; max-width: 640px; }
.ms-story-no { display: none; }
.ms-story-feats { display: grid; gap: 8px; margin: 22px 0; }
@media (min-width: 640px) { .ms-story-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .ms-story-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ms-story-feat { display: flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.ms-story-feat:hover { background: color-mix(in srgb, var(--acc) 8%, var(--ms-surface)); border-color: color-mix(in srgb, var(--acc) 30%, transparent); }
.ms-story-feat i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 14px; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.ms-story-feat:hover i { transform: rotate(-8deg) scale(1.1); }
.ms-story-feat b { display: block; font-size: 15px; color: var(--ms-ink); line-height: 1.3; }
.ms-story-feat small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ms-muted); margin-top: 2px; line-height: 1.45; }

@media (min-width: 1024px) {
    .ms-story-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
    .ms-story-pin { position: sticky; top: calc(var(--ms-head-h) + 32px); }
    .ms-story-stage { display: block; position: relative; margin-top: 34px; height: 400px; border-radius: 30px; }
    .ms-story-scene { position: absolute; inset: 0; padding: 30px; border-radius: 30px; background: var(--acc); color: #fff; overflow: hidden;
        opacity: 0; translate: 70px 0; scale: .94; transition: opacity .55s ease, translate .8s cubic-bezier(.16, 1, .3, 1), scale .8s cubic-bezier(.16, 1, .3, 1); }
    .ms-story-scene::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px); background-size: 18px 18px; }
    .ms-story-scene > * { position: relative; }
    .ms-story-scene.is-past { translate: -70px 0; }
    .ms-story-scene.is-on { opacity: 1; translate: 0 0; scale: 1; }
    .ms-story-title { display: flex; gap: 14px; align-items: center; }
    .ms-story-title .ms-pi { background: rgba(255, 255, 255, .18); width: 56px; height: 56px; font-size: 22px; }
    .ms-story-title b { display: block; font-family: var(--ms-display); font-size: 30px; font-weight: 800; line-height: 1.1; }
    .ms-story-title small { display: block; opacity: .85; font-size: 14px; margin-top: 4px; }
    .ms-story-scene .ms-story-tile { margin-top: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
    .ms-story-scene .ms-story-tile::before { display: none; }
    .ms-story-scene.is-on .ms-story-tile { animation: ms-in-zoom .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
    .ms-story-dots { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 6px; z-index: 2; }
    .ms-story-dots span { width: 9px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .5); transition: width .4s cubic-bezier(.16, 1, .3, 1), background .3s; }
    .ms-story-dots span.is-on { width: 30px; background: #fff; }

    .ms-story-step { padding: 34px; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; background: transparent; border-color: transparent; transition: opacity .5s, background .5s, border-color .5s; opacity: .35; }
    .ms-story-step + .ms-story-step { margin-top: 0; }
    .ms-story-step.is-on { opacity: 1; background: var(--ms-surface); border-color: var(--ms-line); box-shadow: var(--ms-shadow); }
    .ms-story-no { display: block; position: absolute; top: -6px; right: 0; font-family: var(--ms-display); font-size: 88px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--acc) 16%, transparent); letter-spacing: -.04em; }
    .ms-story-step-head { position: relative; padding-right: 110px; }
    .ms-story-step .ms-btn { align-self: flex-start; }
}

/* ---- section heads: the eyebrow diamond spins in, product heads breathe on hover ---- */
[data-reveal].is-in .ms-eyebrow::before { animation: ms-diamond .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ms-diamond { from { transform: rotate(-180deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
.ms-product-head .ms-pi, .ms-feature-icon { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.ms-product:hover .ms-pi, .ms-feature:hover .ms-feature-icon, .ms-bento-card:hover .ms-feature-icon { transform: translateZ(30px) rotate(-8deg) scale(1.08); }
.ms-stat b { font-variant-numeric: tabular-nums; }

/* ---- reduced motion: no ambient animation at all ---- */
@media (prefers-reduced-motion: reduce) {
    .ms-space .ms-tokens, .ms-orbit { display: none; }
    .ms-stars, .ms-nebula, .ms-sticker, .ms-progress { animation: none !important; }
    .ms-mega-tab, .ms-mega-link, .ms-mega-foot, .ms-hero-visual, .ms-hero-copy, .ms-hero h1 .ms-mark { animation: none !important; }
    .ms-story-scene { transition: none !important; }
}
/* the orbit rings may reach past the screen edge on phones: clip them to the hero (clip, not hidden: no scroll box) */
.ms-hero { overflow-x: clip; }

/* =====================================================================================
   Round 4: leaf cards (two soft corners, two tight ones), light shadows, compact fluid type
   that scales from a 320px phone to a 4K screen, ink tokens in light mode, profile / gallery /
   testimonial / client blocks, page-to-page transition for the in-site navigation (site.js).
   ===================================================================================== */
:root {
    --ms-leaf: 2px 16px;          /* top-left + bottom-right tight, top-right + bottom-left soft */
    --ms-leaf-lg: 2px 24px;
    --ms-radius: var(--ms-leaf);
    --ms-radius-lg: var(--ms-leaf-lg);
    --ms-shadow-sm: 0 1px 2px rgba(13, 27, 42, .05);
    --ms-shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 6px 16px -10px rgba(13, 27, 42, .18);
    --ms-shadow-lg: 0 14px 34px -20px rgba(13, 27, 42, .32);
    --ms-head-h: 62px;
}
html.dark, html[data-theme="dark"] {
    --ms-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --ms-shadow: 0 8px 20px -14px rgba(0, 0, 0, .7);
    --ms-shadow-lg: 0 16px 38px -22px rgba(0, 0, 0, .8);
}

/* ---- type: one notch smaller and lighter, fluid between phone and wide screens ---- */
body.ms-body { font-size: clamp(14px, .25vw + 13.2px, 15.5px); line-height: 1.6; }
html[lang="np"] body.ms-body { font-size: clamp(15px, .25vw + 14.2px, 16.5px); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.018em; }
.ms-hero h1 { font-size: clamp(30px, 3.6vw + 10px, 58px); font-weight: 700; letter-spacing: -.028em; line-height: 1.06; margin-top: 18px; }
html[lang="np"] .ms-hero h1 { font-size: clamp(27px, 2.8vw + 10px, 46px); line-height: 1.25; }
.ms-hero-text { font-size: clamp(15px, .4vw + 13.5px, 17.5px); margin-top: 18px; max-width: 540px; }
.ms-h2 { font-size: clamp(23px, 1.6vw + 15px, 38px); margin-top: 10px; }
.ms-phero h1 { font-size: clamp(27px, 2.4vw + 12px, 46px); font-weight: 700; }
.ms-lead { font-size: clamp(14.5px, .3vw + 13.5px, 16.5px); }
.ms-eyebrow { font-size: 12px; }
.ms-btn { height: 44px; padding: 0 20px; font-size: 14px; font-weight: 600; border-radius: 4px 12px; }
.ms-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 3px 10px; }
.ms-chip { font-size: 12.5px; padding: 5px 11px; }
.ms-brand-name { font-size: 17px; font-weight: 700; }
.ms-nav-link { font-size: 14px; font-weight: 600; padding: 0 11px; }
.ms-feature h3 { font-size: 16px; }
.ms-feature p, .ms-post p { font-size: 14px; }
.ms-bento-card h3 { font-size: 18px; }
.ms-post h3 { font-size: 17px; }
.ms-block h2 { font-size: 20px; }
.ms-product-head { min-height: 132px; padding: 20px; }
.ms-product-head h3 { font-size: 21px; font-weight: 700; }
.ms-stat b { font-size: clamp(26px, 2vw + 14px, 40px); font-weight: 700; }
.ms-band h2 { font-size: clamp(22px, 1.6vw + 14px, 34px); font-weight: 700; }
.ms-band p { font-size: 15px; }
.ms-tile-total b { font-size: 26px; }
.ms-faq summary { font-size: 15px; padding: 15px 18px; font-weight: 600; }
.ms-faq .ms-faq-a { font-size: 14.5px; padding: 0 18px 18px; }
.ms-contact-card b { font-size: 15px; }
.ms-section { padding: clamp(48px, 5vw, 92px) 0; }
.ms-hero { padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 84px); }
@media (min-width: 1024px) { .ms-story-title b { font-size: 24px; } .ms-story-no { font-size: 64px; } .ms-story-stage { height: 360px; } }
.ms-story-step-head h3 { font-size: clamp(19px, 1vw + 14px, 25px); font-weight: 700; }
.ms-story-feat b { font-size: 14px; }
.ms-story-feat small { font-size: 12.5px; }

/* ---- leaf shapes on every card-like block, lighter shadows ---- */
.ms-card, .ms-bento-card, .ms-phero-card, .ms-band, .ms-statband, .ms-slider, .ms-story-step, .ms-faq details, .ms-map { border-radius: var(--ms-leaf-lg); }
.ms-tile, .ms-story-scene, .ms-mega-panel, .ms-visual-main { border-radius: var(--ms-leaf-lg); }
.ms-tile-card, .ms-mega-link, .ms-mega-tab, .ms-mega-foot, .ms-story-feat, .ms-sheet-tile, .ms-search-box, .ms-popup, .ms-drop { border-radius: var(--ms-leaf); }
.ms-pi, .ms-feature-icon, .ms-brand-mark, .ms-app-icon, .ms-contact-card i { border-radius: 3px 11px; }
.ms-tile { box-shadow: var(--ms-shadow); }
a.ms-card:hover { transform: translateY(-2px); box-shadow: var(--ms-shadow); }
.ms-tilt.is-tilting { box-shadow: 0 18px 36px -24px rgba(13, 27, 42, .38); }
.ms-story-step.is-on { box-shadow: var(--ms-shadow-sm); }
.ms-sticker { border-radius: 3px 10px; box-shadow: none; }

/* ---- background tokens: ink chips in light mode so they read on paper, glass chips in dark ---- */
:root { --ms-token-bg: #0d1b2a; --ms-token-o: .42; --ms-star: rgba(13, 27, 42, .32); }
html:not(.dark) .ms-tokens > span { --c: #34d39a; box-shadow: 0 6px 16px -8px rgba(13, 27, 42, .55); }
html:not(.dark) .ms-tokens > span.is-hms { --c: #86a5ff; }
html:not(.dark) .ms-tokens > span.is-rms { --c: #ff9a5c; }
html:not(.dark) .ms-tokens > span.is-y { --c: #ffcb3d; }
html.dark, html[data-theme="dark"] { --ms-token-bg: rgba(17, 28, 41, .85); --ms-token-o: .7; }
.ms-tokens > span { border-radius: 3px 11px; }

/* ---- rich text from Trix (descriptions, captions, FAQ answers, popup notices) ---- */
.ms-rich { white-space: normal; }
.ms-rich > * + * { margin-top: .6em; }
.ms-rich ul, .ms-rich ol { padding-left: 1.3em; margin: .5em 0; }
.ms-rich a { color: var(--ms-primary); text-decoration: underline; text-underline-offset: 2px; }
.ms-rich img { border-radius: var(--ms-leaf); margin: .6em 0; }
.ms-rich blockquote { border-left: 3px solid var(--ms-yellow); padding-left: .9em; color: var(--ms-muted); }
.ms-phero-card--solid .ms-rich a { color: inherit; }
.ms-slide-caption { margin-top: 12px; opacity: .92; font-size: 16px; max-width: 620px; }

/* ---- product hero with a cover image ---- */
.ms-phero-card.has-cover { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .ms-phero-card.has-cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ms-phero-cover { margin: 0; border-radius: var(--ms-leaf-lg); overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.ms-phero-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ms-block-cover { margin: 14px 0; border-radius: var(--ms-leaf); overflow: hidden; border: 1px solid var(--ms-line); }
.ms-block-cover img { width: 100%; max-height: 420px; object-fit: cover; }

/* ---- gallery + lightbox ---- */
.ms-gallery-title { font-size: clamp(19px, .8vw + 15px, 24px); margin-bottom: 16px; }
.ms-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.ms-gallery-item { display: block; padding: 0; border-radius: var(--ms-leaf); overflow: hidden; border: 1px solid var(--ms-line); background: var(--ms-surface-2); cursor: zoom-in; }
.ms-gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.ms-gallery-item:hover img { transform: scale(1.04); }
.ms-lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 16px; background: rgba(8, 15, 24, .88); }
.ms-lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 112px); border-radius: var(--ms-leaf); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ms-lightbox .ms-icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); }
.ms-lightbox .ms-icon-btn:hover { background: rgba(255, 255, 255, .25); }
.ms-lightbox-close { top: 14px; right: 14px; }
.ms-lightbox-nav { top: 50%; transform: translateY(-50%); }
.ms-lightbox-nav.is-prev { left: 14px; } .ms-lightbox-nav.is-next { right: 14px; }
.ms-lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 13px; }

/* ---- clients: logo strip + testimonial cards ---- */
.ms-logos { overflow: hidden; margin-bottom: 28px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ms-logos-run { display: flex; gap: 14px; width: max-content; animation: ms-logos 40s linear infinite; }
.ms-logos:hover .ms-logos-run { animation-play-state: paused; }
@keyframes ms-logos { to { transform: translateX(-50%); } }
.ms-logo { width: 150px; height: 72px; flex: none; display: grid; place-items: center; padding: 12px 18px; border-radius: var(--ms-leaf); background: var(--ms-surface); border: 1px solid var(--ms-line); }
.ms-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.ms-logo:hover img { filter: none; opacity: 1; }
.ms-quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.ms-quote { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ms-quote-mark { color: var(--acc, var(--ms-primary)); font-size: 20px; opacity: .8; }
.ms-stars-row { color: #f5a400; letter-spacing: 2px; font-size: 14px; }
.ms-stars-row em { font-style: normal; color: var(--ms-line-2); }
.ms-quote blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ms-text); }
.ms-quote-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-quote-facts span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px 9px; background: color-mix(in srgb, var(--acc, var(--ms-primary)) 10%, var(--ms-surface)); color: var(--ms-ink); }
.ms-quote-facts small { font-weight: 600; color: var(--ms-muted); margin-right: 3px; }
.ms-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--ms-line); }
.ms-quote figcaption img, .ms-quote-initial { width: 40px; height: 40px; flex: none; border-radius: 3px 11px; object-fit: cover; background: var(--ms-surface-2); }
.ms-quote figcaption img.is-logo { object-fit: contain; padding: 4px; background: #fff; border: 1px solid var(--ms-line); }
.ms-quote-initial { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--acc, var(--ms-primary)); }
.ms-quote figcaption b { display: block; font-size: 14px; color: var(--ms-ink); }
.ms-quote figcaption small { display: block; font-size: 12px; color: var(--ms-muted); }
.ms-quote-type { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--acc, var(--ms-primary)); white-space: nowrap; }

/* ---- footer contact list + office hours ---- */
.ms-footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ms-footer-contact li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ms-footer-contact i { width: 14px; color: var(--ms-yellow); flex: none; }
.ms-footer-contact a:hover { color: #fff; }
.ms-footer-contact small { font-size: 11px; padding: 1px 6px; border-radius: 2px 7px; background: rgba(255, 255, 255, .1); }
.ms-hours b { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ms-hours b + b { margin-top: 4px; }
.ms-hours em { font-style: normal; font-weight: 500; color: var(--ms-muted); }
.ms-hours b.is-closed em { color: var(--ms-danger); }

/* ---- in-site navigation (site.js): the old page slides out, the new one rises in ---- */
#ms-main { transition: opacity .22s ease, translate .22s ease; }
html.ms-nav-out #ms-main { opacity: 0; translate: 0 -10px; }
html.ms-nav-in #ms-main { animation: ms-page-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ms-page-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.ms-nav-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 61; background: var(--ms-yellow); box-shadow: 0 0 10px var(--ms-yellow); transition: width .3s ease, opacity .3s; pointer-events: none; opacity: 0; }
html.ms-nav-busy .ms-nav-bar { opacity: 1; width: 75%; transition: width 4s cubic-bezier(.1, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { #ms-main { transition: none; } html.ms-nav-in #ms-main { animation: none; } }

/* ---- small screens: nothing may push the page sideways ---- */
@media (max-width: 480px) {
    .ms-container { padding: 0 14px; }
    .ms-btn { padding: 0 16px; }
    .ms-hero-cta .ms-btn { flex: 1 1 auto; }
    .ms-logo { width: 120px; height: 60px; }
}
img, iframe, video { max-width: 100%; }
.ms-card, .ms-block, .ms-quote, .ms-story-step { min-width: 0; overflow-wrap: anywhere; }
.ms-faq .ms-faq-a.ms-rich { white-space: normal; }
.ms-cal span.is-blank { background: transparent; }
/* lighter display type (user: "fonts little big and bulky") */
.ms-hero h1 { font-size: clamp(28px, 2.6vw + 12px, 50px); font-weight: 700; }
html[lang="np"] .ms-hero h1 { font-size: clamp(26px, 2vw + 12px, 42px); }
.ms-h2 { font-size: clamp(22px, 1.2vw + 15px, 34px); font-weight: 600; letter-spacing: -.015em; }
.ms-phero h1 { font-size: clamp(26px, 1.8vw + 14px, 42px); font-weight: 650; }
.ms-band h2, .ms-story-step-head h3, .ms-product-head h3 { font-weight: 600; }
.ms-stat b { font-weight: 650; }

/* search button with its shortcut, scroll up / down pair */
.ms-search-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 3px 11px; border: 1px solid var(--ms-line); background: var(--ms-surface); color: var(--ms-muted); font-size: 13px; font-weight: 500; transition: border-color .15s, color .15s; }
.ms-search-btn:hover { border-color: var(--ms-ink); color: var(--ms-ink); }
.ms-search-btn i { color: var(--ms-ink); }
.ms-kbd-hint { font-family: inherit; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px 6px; background: var(--ms-surface-2); border: 1px solid var(--ms-line); color: var(--ms-muted); white-space: nowrap; }
.ms-desk-inline { display: none; }
@media (min-width: 1280px) { .ms-desk-inline { display: inline; margin-right: 18px; } }
@media (max-width: 1023px) { .ms-search-btn { padding: 0 10px; border: 0; background: transparent; } .ms-kbd-hint { display: none; } }
.ms-scrollbtns { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 39; display: flex; flex-direction: column; gap: 8px; }
.ms-scrollbtns .ms-icon-btn { background: #0d1b2a; color: #fff; border-radius: 3px 12px; box-shadow: var(--ms-shadow); }
.ms-scrollbtns .ms-icon-btn:hover { background: var(--ms-primary); }
html.dark .ms-scrollbtns .ms-icon-btn { background: var(--ms-yellow); color: #0d1b2a; }
@media (max-width: 1023px) { .ms-scrollbtns { bottom: calc(86px + env(safe-area-inset-bottom)); } }
/* hover glare in light mode: a white shine vanishes on white cards, so light cards get a tinted
   spotlight (card accent + a touch of ink) and an accent edge; coloured tiles keep the white shine */
html:not(.dark) .ms-tilt::after {
    background:
        radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--acc, var(--ms-primary)) 20%, transparent), transparent 60%),
        radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(13, 27, 42, .07), transparent 70%);
}
html:not(.dark) .ms-tilt.is-tilting { border-color: color-mix(in srgb, var(--acc, var(--ms-primary)) 45%, var(--ms-line)); }
html:not(.dark) .ms-tile.ms-tilt::after,
html:not(.dark) .ms-bento-card--ink.ms-tilt::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .24), transparent 55%); }

/* ---- top menu: muted links, gliding gradient underline + soft hover highlight (site.js initNavInk) ---- */
@media (min-width: 1024px) {
    .ms-nav { position: relative; gap: 2px; padding: 4px; }
    .ms-nav-link { position: relative; z-index: 1; height: 38px; padding: 0 14px; color: var(--ms-muted); background: transparent !important; transition: color .25s ease; }
    .ms-nav-link:hover, .ms-nav-link.is-on, .ms-nav-item.is-open > .ms-nav-link, .ms-nav-link:focus-visible { color: var(--ms-ink); }
    .ms-nav-link i.fa-chevron-down { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
    .ms-nav-link:hover i.fa-chevron-down { opacity: 1; }
    .ms-nav.has-ink .ms-nav-link.is-on::after { display: none; }
    .ms-nav-pill, .ms-nav-line {
        position: absolute; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); opacity: 0; pointer-events: none;
        transition: transform .5s cubic-bezier(.34, 1.36, .64, 1), width .5s cubic-bezier(.34, 1.36, .64, 1), opacity .25s ease;
    }
    .ms-nav-pill { top: 50%; height: 38px; margin-top: -19px; z-index: 0; border-radius: 2px 12px; background: color-mix(in srgb, var(--ms-ink) 6%, transparent); }
    .ms-nav-line { bottom: 1px; height: 3px; z-index: 2; border-radius: 3px; background: linear-gradient(90deg, var(--ms-erp), var(--ms-hms) 55%, var(--ms-rms)); box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--ms-hms) 70%, transparent); }
    html.dark .ms-nav-pill { background: rgba(255, 255, 255, .07); }
}
@media (prefers-reduced-motion: reduce) { .ms-nav-pill, .ms-nav-line { transition: opacity .2s; } }

/* call-to-action band with a picture (CMS → Page Content → Call-to-action band) */
.ms-band.has-img::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: min(42%, 520px); background: var(--band-img) center / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); opacity: .9; }
.ms-band.has-img .ms-band-row { position: relative; z-index: 1; }
@media (max-width: 767px) { .ms-band.has-img::after { width: 100%; opacity: .18; mask-image: none; -webkit-mask-image: none; } }

/* ===== round 6: calmer background tokens, About us, Gallery ===== */

/* background tokens: still drifting, but small, faint and slow — felt, not noticed */
.ms-tokens > span {
    width: calc(var(--s) * .6); height: calc(var(--s) * .6);
    font-size: calc(var(--s) * .24);
    border-radius: 2px 8px;
    box-shadow: none !important;
    animation-duration: calc(var(--dur) * 1.5);
}
.ms-tokens > span i { font-size: calc(var(--s) * .27); }
:root { --ms-token-o: .18; }
html.dark, html[data-theme="dark"] { --ms-token-o: .3; }
@media (max-width: 1279px) { .ms-tokens > span:nth-child(n + 17) { display: none; } }
@media (max-width: 767px) { .ms-tokens > span:nth-child(n + 9) { display: none; } }

/* About: story with picture */
.ms-about-story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .ms-about-story.has-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); } }
.ms-about-text { margin-top: 16px; font-size: clamp(15px, .3vw + 14px, 17px); color: var(--ms-text); max-width: 720px; }
.ms-about-img { margin: 0; border-radius: var(--ms-leaf-lg); overflow: hidden; border: 1px solid var(--ms-line); }
.ms-about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* About: mission / vision */
.ms-mv { display: grid; gap: 16px; }
@media (min-width: 768px) { .ms-mv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-mv-card { padding: clamp(22px, 2.5vw, 34px); border-radius: var(--ms-leaf-lg); display: flex; flex-direction: column; gap: 12px; }
.ms-mv-card h3 { font-size: clamp(19px, .8vw + 15px, 24px); font-weight: 600; }
.ms-mv-card p { font-size: 15px; line-height: 1.7; }
.ms-mv-card--ink { background: #0d1b2a; color: rgba(255, 255, 255, .8); }
.ms-mv-card--ink h3 { color: #fff; }
.ms-mv-card--ink .ms-feature-icon { background: rgba(255, 255, 255, .1); color: var(--ms-yellow); }
.ms-mv-card--yellow { background: var(--ms-yellow); color: #3d3622; }
.ms-mv-card--yellow h3 { color: #0d1b2a; }
.ms-mv-card--yellow .ms-feature-icon { background: rgba(13, 27, 42, .1); color: #0d1b2a; }
html.dark .ms-mv-card--ink { background: var(--ms-surface); border: 1px solid var(--ms-line); }

/* About: milestones timeline */
.ms-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 14px; }
.ms-timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--ms-erp), var(--ms-hms), var(--ms-rms)); border-radius: 2px; opacity: .6; }
.ms-timeline li { position: relative; display: grid; gap: 6px; }
@media (min-width: 768px) { .ms-timeline li { grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 18px; } }
.ms-timeline li::before { content: ''; position: absolute; left: -24px; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--ms-yellow); box-shadow: 0 0 0 4px var(--ms-paper); transform: rotate(45deg); }
.ms-timeline-year { font-family: var(--ms-display); font-size: 20px; font-weight: 700; color: var(--ms-primary); padding-top: 2px; }
.ms-timeline-card { padding: 16px 20px; }
.ms-timeline-card h3 { font-size: 16px; }
.ms-timeline-card p { font-size: 14px; color: var(--ms-muted); margin-top: 4px; }

/* About: team */
.ms-team { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.ms-team-card { margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ms-team-photo { aspect-ratio: 1; border-radius: var(--ms-leaf); overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-surface-2)); }
.ms-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ms-team-card:hover .ms-team-photo img { transform: scale(1.05); }
.ms-team-photo b { font-family: var(--ms-display); font-size: 48px; color: var(--ms-primary); }
.ms-team-card figcaption b { display: block; font-size: 15px; color: var(--ms-ink); }
.ms-team-card figcaption small { display: block; font-size: 13px; color: var(--ms-muted); }

/* Gallery albums */
.ms-albums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.ms-album { overflow: hidden; display: flex; flex-direction: column; }
.ms-album-cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--ms-surface-2); color: var(--ms-muted); font-size: 32px; overflow: hidden; }
.ms-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.ms-album:hover .ms-album-cover img { transform: scale(1.05); }
.ms-album-cover em { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 2px 8px; background: rgba(13, 27, 42, .78); color: #fff; }
.ms-album-body { padding: 14px 16px 16px; }
.ms-album-body b { display: block; font-size: 16px; color: var(--ms-ink); }
.ms-album-body small { display: block; font-size: 12.5px; color: var(--ms-muted); margin-top: 2px; }

/* ===== round 7 ===== */
/* nav hover highlight: a plain soft rounded shape (the leaf shape looked off on a small link) */
@media (min-width: 1024px) { .ms-nav-pill { border-radius: 10px; } }

/* background tokens: bare icons / letters, no chip — dark on the light theme, light on the dark theme */
.ms-tokens > span {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    color: #0d1b2a !important;
    font-size: calc(var(--s) * .34);
}
.ms-tokens > span i { font-size: calc(var(--s) * .44); }
html.dark .ms-tokens > span, html[data-theme="dark"] .ms-tokens > span { color: #e9eff6 !important; }
:root { --ms-token-o: .16; }
html.dark, html[data-theme="dark"] { --ms-token-o: .22; }

/* cursor glow over the whole page, behind the content */
.ms-cursor {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: -1; pointer-events: none; opacity: 0;
    border-radius: 50%; will-change: transform;
    background: radial-gradient(closest-side, rgba(13, 27, 42, .07), rgba(10, 143, 91, .05) 45%, transparent 72%);
    transition: opacity .4s ease;
}
html.dark .ms-cursor, html[data-theme="dark"] .ms-cursor { background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(63, 111, 245, .06) 45%, transparent 72%); }
@media (prefers-reduced-motion: reduce) { .ms-cursor { display: none; } }

/* hero slider as its own strip below the page heading */
.ms-slider-section { padding: 8px 0 clamp(24px, 3vw, 48px); }

/* ===== round 8: calmer professional surface, tighter rhythm, festive + system notices ===== */

/* page background: a clean neutral grey-white (was warm paper with a green haze) */
:root {
    --ms-paper: #f5f6f8;
    --ms-surface: #ffffff;
    --ms-surface-2: #f0f2f5;
    --ms-line: #e3e6eb;
    --ms-line-2: #d3d8df;
    --ms-muted: #5b6573;
    --ms-nebula-o: .035;
    --ms-star: rgba(13, 27, 42, .18);
}
html.dark, html[data-theme="dark"] {
    --ms-paper: #0a0f17;
    --ms-surface: #101822;
    --ms-surface-2: #15202d;
    --ms-line: #1f2b3a;
    --ms-line-2: #2a394c;
    --ms-nebula-o: .1;
}
body.ms-body { background: var(--ms-paper); }
.ms-hero::before { opacity: .35; }
.ms-header { background: color-mix(in srgb, var(--ms-surface) 92%, var(--ms-paper)); }

/* header above the festive first-screen layer (z 45) */
.ms-header { z-index: 48; }
.ms-ticker { z-index: 49; }

/* top menu: only the gliding underline, no box on hover */
.ms-nav-pill { display: none !important; }

/* section labels: small caps with a short rule (quieter than the diamond) */
.ms-eyebrow { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.ms-eyebrow::before { width: 16px; height: 2px; border-radius: 2px; transform: none; }
[data-reveal].is-in .ms-eyebrow::before { animation: none; }
html[lang="np"] .ms-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* cards: hairline border, almost no shadow; hover = border + slight lift */
.ms-card, .ms-bento-card { border-color: var(--ms-line); box-shadow: 0 1px 2px rgba(13, 27, 42, .04); }
a.ms-card:hover { box-shadow: 0 10px 24px -18px rgba(13, 27, 42, .35); border-color: var(--ms-line-2); }

/* tighter vertical rhythm, still airy */
.ms-section { padding: clamp(36px, 4vw, 72px) 0; }
.ms-hero { padding: clamp(24px, 3vw, 52px) 0 clamp(32px, 4vw, 64px); }
.ms-phero { padding: clamp(16px, 2vw, 28px) 0 clamp(18px, 2vw, 30px); }
.ms-phero-card { padding: clamp(22px, 2.6vw, 38px) clamp(20px, 3vw, 44px); }
.ms-phero h1 { margin-top: 10px; }
.ms-phero .ms-lead { margin-top: 10px; }
.ms-layout { gap: 20px; }
@media (min-width: 1024px) { .ms-layout { gap: 24px; } }
.ms-block { padding: clamp(18px, 2vw, 26px); }
.ms-block h2 { margin-bottom: 4px; }
.ms-block + .ms-block, .ms-layout > div > .ms-block { margin: 0; }
.ms-layout > div { gap: 16px !important; }
.ms-head-row { margin-bottom: clamp(18px, 2vw, 28px); }
.ms-grid-3, .ms-grid-4, .ms-grid-2 { gap: 14px; }
.ms-points li { padding: 2px 0; }
.ms-aside { gap: 14px; }
.ms-aside-card { padding: 18px; }

/* language spans from the shared festive partial (wsText) */
html:not([lang="np"]) .ws-np { display: none; }
html[lang="np"] .ws-en { display: none; }
.lfx-root--site .lfx-layer { pointer-events: none; }
.lfx-root--site .lfx-chip { pointer-events: auto; }

/* system notices bar (all organizations) */
.ms-sysn-item { border-bottom: 1px solid transparent; font-size: 13.5px; }
.ms-sysn-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.ms-sysn-row > i { flex: none; }
.ms-sysn-row p { flex: 1; min-width: 0; margin: 0; line-height: 1.45; }
.ms-sysn-row p b { margin-right: 6px; }
.ms-sysn-row p em { font-style: normal; font-weight: 700; margin-left: 8px; white-space: nowrap; }
.ms-sysn-close { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; opacity: .7; }
.ms-sysn-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.ms-sysn-item.is-info { background: #eaf1ff; color: #1d3f8f; border-color: #cfdcfb; }
.ms-sysn-item.is-warning { background: #fff6dc; color: #7a5300; border-color: #f6e2a6; }
.ms-sysn-item.is-upcoming, .ms-sysn-item.is-blocked { background: #ffe9ea; color: #8f1d2c; border-color: #f7c7cc; }
html.dark .ms-sysn-item.is-info { background: rgba(63, 111, 245, .14); color: #b9cbff; border-color: rgba(63, 111, 245, .3); }
html.dark .ms-sysn-item.is-warning { background: rgba(255, 203, 61, .12); color: #ffe08a; border-color: rgba(255, 203, 61, .28); }
html.dark :is(.ms-sysn-item.is-upcoming, .ms-sysn-item.is-blocked) { background: rgba(217, 45, 74, .14); color: #ffb3bf; border-color: rgba(217, 45, 74, .3); }
@media (max-width: 640px) { .ms-sysn-row p em { display: block; margin: 2px 0 0; } }

/* =====================================================================================
   Round 9: compact, professional type scale for the whole site (the last word on sizes).
   One sans family (Plus Jakarta Sans; Mukta for Nepali), body 14px, headings in steps of
   ~1.2, tighter paddings and gaps. Fluid only where it matters (h1 / h2) so it holds from
   a 320px phone to a 4K screen.
   ===================================================================================== */
:root {
    --ms-display: 'Plus Jakarta Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ms-head-h: 58px;
    --fs-xs: 11.5px; --fs-sm: 12.5px; --fs-base: 14px; --fs-md: 15px; --fs-lg: 17px;
}
body.ms-body { font-size: var(--fs-base); line-height: 1.6; }
html[lang="np"] body.ms-body { font-size: 15px; }
h1, h2, h3, h4 { font-family: var(--ms-display); font-weight: 700; letter-spacing: -.012em; line-height: 1.2; }
html[lang="np"] :is(h1, h2, h3, h4) { line-height: 1.35; }

/* headings */
.ms-hero h1 { font-size: clamp(26px, 1.9vw + 14px, 40px); letter-spacing: -.02em; line-height: 1.15; margin-top: 14px; }
html[lang="np"] .ms-hero h1 { font-size: clamp(24px, 1.6vw + 13px, 36px); line-height: 1.3; }
.ms-phero h1 { font-size: clamp(22px, 1.3vw + 14px, 32px); font-weight: 700; }
.ms-h2 { font-size: clamp(19px, .8vw + 14px, 26px); font-weight: 700; margin-top: 6px; letter-spacing: -.012em; }
.ms-band h2 { font-size: clamp(18px, .8vw + 13px, 24px); font-weight: 700; }
.ms-slide-body h2 { font-size: clamp(22px, 1.6vw + 12px, 34px); }
.ms-eyebrow { font-size: 11px; }
html[lang="np"] .ms-eyebrow { font-size: 12.5px; }

/* text */
.ms-lead, .ms-hero-text { font-size: var(--fs-md); line-height: 1.65; }
.ms-hero-text { margin-top: 12px; max-width: 520px; }
.ms-lead { margin-top: 8px; }
.ms-hero-trust, .ms-crumbs, .ms-post-meta { font-size: var(--fs-sm); }
.ms-hero-trust { margin-top: 18px; gap: 6px 16px; }
.ms-hero-cta { margin-top: 20px; gap: 10px; }
.ms-badge { font-size: 12px; padding: 4px 12px 4px 4px; }
.ms-badge b { font-size: 11px; padding: 2px 8px; }
.ms-prose, .ms-about-text { font-size: var(--fs-md); }

/* header + menus */
.ms-header-bar { height: var(--ms-head-h); gap: 18px; }
.ms-brand-mark { width: 34px; height: 34px; font-size: 16px; }
.ms-brand-name { font-size: 15px; }
.ms-brand-tag { font-size: 11px; max-width: 200px; }
.ms-nav-link { font-size: 13.5px; height: 34px; padding: 0 10px; font-weight: 600; }
@media (min-width: 1024px) { .ms-nav-link { height: 34px; padding: 0 10px; } }
.ms-nav-line { bottom: 0; height: 2px; }
.ms-search-btn { height: 34px; font-size: 12.5px; }
.ms-lang a { font-size: 12px; }
.ms-icon-btn { width: 34px; height: 34px; }
.ms-btn { height: 38px; padding: 0 16px; font-size: 13px; gap: 8px; }
.ms-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.ms-chip { font-size: 12px; padding: 4px 10px; }
.ms-drop a, .ms-aside-links a { font-size: 13px; padding: 7px 10px; }
.ms-mega-panel { grid-template-columns: 240px minmax(0, 1fr); }
.ms-mega-tabs { padding: 10px; }
.ms-mega-tab { padding: 9px 10px; gap: 10px; }
.ms-mega-tab .ms-pi { width: 32px; height: 32px; font-size: 13px; }
.ms-mega-tab b { font-size: 13px; } .ms-mega-tab small { font-size: 11.5px; }
.ms-mega-body { padding: 12px; }
.ms-mega-link { padding: 8px; gap: 10px; }
.ms-mega-link i { width: 28px; height: 28px; font-size: 12px; }
.ms-mega-link b { font-size: 13px; } .ms-mega-link small { font-size: 11.5px; }
.ms-mega-foot { font-size: 12.5px; padding: 10px 12px; }
.ms-ticker, .ms-sysn-item { font-size: 12.5px; }
.ms-sysn-row { min-height: 34px; }

/* sections + cards */
.ms-section { padding: clamp(30px, 3.2vw, 56px) 0; }
.ms-hero { padding: clamp(20px, 2.4vw, 40px) 0 clamp(26px, 3vw, 48px); }
.ms-hero-grid { gap: 32px; }
@media (min-width: 1024px) { .ms-hero-grid { gap: 48px; } }
.ms-head-row { margin-bottom: clamp(14px, 1.6vw, 22px); gap: 12px; }
.ms-grid-2, .ms-grid-3, .ms-grid-4, .ms-quotes, .ms-albums, .ms-team, .ms-bento, .ms-mv { gap: 12px; }
.ms-pi { width: 40px; height: 40px; font-size: 16px; }
.ms-feature { padding: 16px; gap: 8px; }
.ms-feature-icon { width: 36px; height: 36px; font-size: 14px; }
.ms-feature h3, .ms-step h3, .ms-timeline-card h3, .ms-album-body b, .ms-team-card figcaption b { font-size: 14.5px; }
.ms-feature p, .ms-post p, .ms-product-body p, .ms-step p, .ms-quote blockquote, .ms-mv-card p { font-size: 13.5px; line-height: 1.6; }
.ms-feature-go, .ms-product-more { font-size: 12.5px; }
.ms-product-head { min-height: 112px; padding: 16px 18px; gap: 12px; }
.ms-product-head h3 { font-size: 17px; }
.ms-product-head small { font-size: 12px; }
.ms-product-body { padding: 16px 18px 18px; }
.ms-product-list li { font-size: 13px; }
.ms-bento-card { padding: 18px; gap: 8px; }
.ms-bento-card h3 { font-size: 15.5px; }
.ms-bento-card--ink h3 { font-size: 18px; }
.ms-stat { padding: 16px 18px; }
.ms-stat b { font-size: clamp(22px, 1.2vw + 14px, 30px); font-weight: 700; }
.ms-stat span { font-size: 12.5px; margin-top: 4px; }
.ms-band { padding: clamp(20px, 2.4vw, 34px) clamp(18px, 2.8vw, 40px); }
.ms-band p { font-size: 13.5px; }
.ms-block { padding: clamp(16px, 1.8vw, 22px); }
.ms-block h2 { font-size: 16px; }
.ms-points li { font-size: 13.5px; }
.ms-aside-card { padding: 14px; }
.ms-aside-card h3 { font-size: 11px; }
.ms-aside-cta p { font-size: 13px; }
.ms-step { padding: 16px; }
.ms-step::before { font-size: 26px; }
.ms-post h3 { font-size: 15px; }
.ms-post-ph { font-size: 24px; }
.ms-faq summary { font-size: 14px; padding: 12px 16px; }
.ms-faq .ms-faq-a { font-size: 13.5px; padding: 0 16px 14px; }
.ms-faq summary i { width: 24px; height: 24px; font-size: 10px; }
.ms-contact-card { padding: 14px; gap: 12px; }
.ms-contact-card i { width: 34px; height: 34px; font-size: 13px; }
.ms-contact-card b { font-size: 13.5px; }
.ms-contact-card small { font-size: 11.5px; }
.ms-field label { font-size: 12.5px; }
.ms-input { font-size: 13.5px; }
.ms-body .select2-container .select2-selection--single { height: 42px !important; }
.ms-body .select2-container .select2-selection__rendered { font-size: 13.5px !important; }
.ms-app-icon { width: 40px; height: 40px; font-size: 16px; }
.ms-app b { font-size: 14px; } .ms-app p { font-size: 13px; }

/* hero tiles + story stage */
.ms-tile { padding: 14px; }
.ms-tile-total b { font-size: 21px; }
.ms-tile-head, .ms-tile-card { font-size: 12px; }
@media (min-width: 1024px) {
    .ms-story-stage { height: 320px; }
    .ms-story-scene { padding: 22px; }
    .ms-story-title b { font-size: 19px; }
    .ms-story-title .ms-pi { width: 44px; height: 44px; font-size: 18px; }
    .ms-story-step { padding: 24px; min-height: 60vh; }
    .ms-story-no { font-size: 48px; }
    .ms-story-step-head { padding-right: 80px; }
}
.ms-story-step-head h3 { font-size: clamp(16px, .5vw + 13px, 19px); }
.ms-story-step-head p { font-size: 13.5px; }
.ms-story-feats { margin: 14px 0; gap: 4px; }
.ms-story-feat { padding: 9px 10px; }
.ms-story-feat i { width: 30px; height: 30px; font-size: 12px; }
.ms-story-feat b { font-size: 13px; } .ms-story-feat small { font-size: 12px; }

/* testimonials, about, gallery */
.ms-quote { padding: 18px; gap: 10px; }
.ms-quote figcaption b { font-size: 13px; } .ms-quote figcaption small { font-size: 11.5px; }
.ms-mv-card { padding: clamp(18px, 2vw, 26px); }
.ms-mv-card h3 { font-size: 17px; }
.ms-timeline-year { font-size: 16px; }
.ms-timeline-card { padding: 12px 16px; }
.ms-gallery-title { font-size: 17px; }

/* footer */
.ms-footer { padding: 44px 0 22px; }
.ms-footer-grid { gap: 28px; }
.ms-footer h4 { font-size: 12px; margin-bottom: 10px; }
.ms-footer-links { font-size: 13px; gap: 7px; }
.ms-footer-text, .ms-footer-contact { font-size: 13px; }
.ms-footer-bottom { font-size: 12px; margin-top: 32px; padding-top: 16px; }

/* search / popup */
.ms-search-input input { font-size: 15px; }
.ms-search-hit b { font-size: 13.5px; }
.ms-popup-body h3 { font-size: 18px; }

/* phones: one more notch down */
@media (max-width: 640px) {
    body.ms-body { font-size: 13.5px; }
    .ms-section { padding: 26px 0; }
    .ms-phero-card, .ms-band { padding: 18px; }
    .ms-btn { height: 36px; }
}
.ms-phero .ms-lead { font-size: var(--fs-md); max-width: 680px; }

/* ===== round 10: denser layout + compact form controls ===== */
.ms-section { padding: clamp(24px, 2.6vw, 44px) 0; }
.ms-phero { padding: 14px 0 16px; }
.ms-phero-card { padding: clamp(18px, 2vw, 28px) clamp(18px, 2.4vw, 34px); }
.ms-crumbs { gap: 6px; }
.ms-phero-kicker { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.ms-pi--head { width: 38px; height: 38px; font-size: 15px; }
.ms-phero h1 { margin-top: 8px; font-size: clamp(21px, 1vw + 14px, 28px); }
.ms-phero .ms-lead { margin-top: 6px; font-size: 14px; }
.ms-layout, .ms-layout > div { gap: 12px !important; }
.ms-block { padding: 16px 18px; }
.ms-block h2 { font-size: 15px; margin-bottom: 6px; }
.ms-points { gap: 6px 18px !important; margin-top: 10px !important; }
.ms-points li { font-size: 13px; }
.ms-points li i { width: 20px; height: 20px; font-size: 9px; }
.ms-aside-card { padding: 12px; }
.ms-aside-links a { padding: 6px 9px; font-size: 12.5px; gap: 8px; }
.ms-aside-links { gap: 1px; }
.ms-head-row { margin-bottom: 14px; }
.ms-feature { padding: 14px; }
.ms-grid-2, .ms-grid-3, .ms-grid-4 { gap: 10px; }

/* forms: 36px controls, 12px gaps */
.ms-form { gap: 12px; }
.ms-form-row { gap: 12px; }
.ms-field label { font-size: 12px; margin-bottom: 4px; }
.ms-input { height: 38px; padding: 0 12px; border-radius: 3px 10px; border-width: 1px; font-size: 13px; }
textarea.ms-input { height: auto; min-height: 110px; padding: 9px 12px; }
.ms-input:focus { box-shadow: 0 0 0 3px var(--ms-yellow-soft); }
.ms-body .select2-container .select2-selection--single { height: 38px !important; border-width: 1px !important; border-radius: 3px 10px !important; }
.ms-body .select2-container .select2-selection__rendered { font-size: 13px !important; padding-left: 12px !important; }
.ms-body .select2-container .select2-selection__arrow { height: 36px !important; }
.ms-form h2 { font-size: 15px; }
.ms-contact-card { padding: 11px 12px; gap: 10px; }
.ms-contact-card i { width: 30px; height: 30px; font-size: 12px; }
.ms-contact-card b { font-size: 13px; }
.ms-map { height: 260px; }

/* ===== round 11: a richer page background (not flat white) =====
   Fixed, layered: soft brand-colour glows at the corners, a faint blueprint grid that fades out towards
   the bottom, on a cool off-white (light) / deep navy (dark). Painted once, scrolls for free. */
body.ms-body {
    background-color: var(--ms-paper);
    background-image:
        radial-gradient(1100px 620px at 8% -8%, rgba(10, 143, 91, .10), transparent 62%),
        radial-gradient(900px 560px at 96% 4%, rgba(36, 88, 242, .09), transparent 60%),
        radial-gradient(900px 700px at 50% 112%, rgba(240, 96, 11, .06), transparent 62%),
        linear-gradient(180deg, #eef2f7 0%, var(--ms-paper) 38%, #f2f4f8 100%);
    background-attachment: fixed;
}
body.ms-body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 27, 42, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 27, 42, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 75%);
}
html.dark body.ms-body, html[data-theme="dark"] body.ms-body {
    background-image:
        radial-gradient(1100px 620px at 8% -8%, rgba(18, 165, 107, .16), transparent 62%),
        radial-gradient(900px 560px at 96% 4%, rgba(63, 111, 245, .16), transparent 60%),
        radial-gradient(900px 700px at 50% 112%, rgba(242, 106, 27, .10), transparent 62%),
        linear-gradient(180deg, #0b1320 0%, var(--ms-paper) 45%, #090e16 100%);
}
html.dark body.ms-body::before, html[data-theme="dark"] body.ms-body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
/* the header blends into it: frosted only when scrolled (no blur while the page is still) */
.ms-header { background: rgba(255, 255, 255, .78); }
.ms-header.is-scrolled { background: rgba(255, 255, 255, .94); }
html.dark .ms-header { background: rgba(10, 15, 23, .8); }
html.dark .ms-header.is-scrolled { background: rgba(10, 15, 23, .95); }

/* ===== round 11: where we work (counts + map), sample-data note ===== */
.ms-presence-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 1024px) { .ms-presence-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; } }
.ms-presence-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ms-presence-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 3px 12px; background: var(--ms-surface); border: 1px solid var(--ms-line); }
.ms-presence-ico { width: 32px; height: 32px; border-radius: 3px 10px; display: grid; place-items: center; font-size: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ms-presence-label { font-size: 13px; font-weight: 600; color: var(--ms-ink); display: flex; flex-direction: column; gap: 5px; }
.ms-presence-bar { display: block; height: 4px; border-radius: 4px; background: var(--ms-surface-2); position: relative; overflow: hidden; }
.ms-presence-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 4px; transition: width 1s cubic-bezier(.16, 1, .3, 1); }
.ms-presence-list b { font-size: 18px; font-weight: 700; color: var(--ms-ink); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.ms-presence-total { margin-top: 10px; font-size: 12.5px; color: var(--ms-muted); }
.ms-presence-total b { color: var(--ms-ink); font-size: 14px; margin-left: 4px; }
.ms-presence-map-wrap { position: relative; }
.ms-presence-map { height: clamp(260px, 32vw, 400px); border-radius: var(--ms-leaf-lg); overflow: hidden; border: 1px solid var(--ms-line); background: var(--ms-surface-2); z-index: 0; }
.ms-presence-empty { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; background: var(--ms-surface); border: 1px solid var(--ms-line); color: var(--ms-muted); white-space: nowrap; box-shadow: var(--ms-shadow-sm); }
.ms-map-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 6px 10px; border-radius: 3px 10px; background: rgba(255, 255, 255, .92); font: 600 11.5px/1.3 var(--ms-font); color: #14202e; box-shadow: 0 2px 8px rgba(13, 27, 42, .12); max-width: 300px; }
.ms-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ms-map-legend i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
html.dark .ms-map-legend { background: rgba(16, 24, 34, .92); color: #e9eff6; }
.ms-sample-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ms-muted); display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.ms-presence-map.is-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
.ms-presence-map .leaflet-tile-pane { filter: saturate(.75); }

/* ===== round 12: Nepal-only map, clickable type rows, tighter rhythm ===== */
.ms-presence-map { background: transparent; border: 0; height: clamp(220px, 26vw, 330px); }
.ms-presence-map.leaflet-container { background: transparent; font-family: var(--ms-font); }
.ms-presence-map-wrap { border-radius: var(--ms-leaf-lg); border: 1px solid var(--ms-line); background: var(--ms-surface); padding: 6px; }
.ms-presence-list { gap: 6px; margin-top: 12px; }
.ms-presence-list li { padding: 6px 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s, transform .2s; }
.ms-presence-list li:hover, .ms-presence-list li:focus-visible { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); outline: 0; }
.ms-presence-list li.is-on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.ms-presence.has-focus .ms-presence-list li:not(.is-on) { opacity: .5; }
.ms-presence-ico { width: 28px; height: 28px; font-size: 12px; }
.ms-presence-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.ms-presence-list b { font-size: 16px; }
.ms-presence-label { font-size: 12.5px; gap: 4px; }
.ms-presence-grid { gap: 18px; }
@media (min-width: 1024px) { .ms-presence-grid { gap: 28px; } }

/* overall: less air between and inside blocks */
.ms-section { padding: clamp(20px, 2.2vw, 36px) 0; }
.ms-hero { padding: clamp(16px, 2vw, 32px) 0 clamp(20px, 2.4vw, 36px); }
.ms-head-row { margin-bottom: 12px; }
.ms-h2 { margin-top: 4px; }
.ms-lead { margin-top: 6px; }
.ms-hero-text { margin-top: 10px; }
.ms-hero-cta { margin-top: 16px; }
.ms-hero-trust { margin-top: 14px; }
.ms-phero { padding: 10px 0 12px; }
.ms-phero-card { padding: clamp(16px, 1.8vw, 24px) clamp(16px, 2.2vw, 30px); }
.ms-statband { padding: 4px; }
.ms-stat { padding: 12px 16px; }
.ms-product-head { min-height: 96px; padding: 14px 16px; }
.ms-product-body { padding: 14px 16px 16px; }
.ms-bento-card { padding: 16px; }
.ms-band { padding: clamp(18px, 2vw, 28px) clamp(16px, 2.4vw, 34px); }
.ms-quote { padding: 16px; }
.ms-footer { padding: 34px 0 18px; }
.ms-footer-bottom { margin-top: 24px; }
@media (min-width: 1024px) { .ms-story-step { min-height: 52vh; padding: 20px; } .ms-story-stage { height: 290px; } }
.ms-presence-map .ms-nepal-shape { filter: drop-shadow(0 0 1.5px rgba(10, 143, 91, .9)) drop-shadow(0 6px 14px rgba(10, 143, 91, .18)); }
html.dark .ms-presence-map .ms-nepal-shape { filter: drop-shadow(0 0 1.5px rgba(63, 111, 245, .9)) drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }

/* ===== round 13: detailed Nepal map + a modern, structured background ===== */
.ms-presence-map-wrap { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ms-presence-map { height: clamp(230px, 24vw, 320px); }
.ms-presence-stat { position: absolute; top: 14px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 3px 10px; background: color-mix(in srgb, var(--ms-surface) 92%, transparent); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow-sm); }
.ms-presence-stat b { font-size: 20px; font-weight: 800; color: var(--ms-ink); line-height: 1; }
.ms-presence-stat span { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 600; color: var(--ms-ink); line-height: 1.25; }
.ms-presence-stat small { font-weight: 500; color: var(--ms-muted); font-size: 10.5px; }
.ms-presence-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 4px; font-size: 11.5px; color: var(--ms-muted); }
.ms-presence-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ms-presence-legend i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ms-surface); }
.ms-presence-legend-city i { width: 5px; height: 5px; background: var(--ms-muted); }
.ms-presence-total { display: none; }
.ms-map-province { pointer-events: none; }
.ms-map-province span { display: block; transform: translate(-50%, -50%); font: 700 10.5px/1 var(--ms-font); letter-spacing: .06em; text-transform: uppercase; color: rgba(13, 27, 42, .45); white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
html[lang="np"] .ms-map-province span { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.ms-map-city span { display: block; font: 600 9.5px/1 var(--ms-font); color: #5d6673; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
html.dark .ms-map-province span { color: rgba(233, 239, 246, .42); text-shadow: none; }
html.dark .ms-map-city span { color: #93a1b3; text-shadow: 0 0 2px #0b1320, 0 0 2px #0b1320; }
.leaflet-tooltip.ms-map-tip { font: 500 12px/1.3 var(--ms-font); padding: 5px 9px; border-radius: 3px 9px; border: 0; background: #0d1b2a; color: #fff; box-shadow: 0 6px 16px -6px rgba(13, 27, 42, .5); }
.leaflet-tooltip.ms-map-tip::before { border-top-color: #0d1b2a; }
.ms-presence-map .leaflet-control-zoom a { width: 26px; height: 26px; line-height: 26px; font-size: 14px; }

/* background: richer colour wash + dot texture; sections alternate a soft glass band (structure, not extra space) */
body.ms-body {
    background-image:
        radial-gradient(900px 520px at 0% 0%, rgba(10, 143, 91, .16), transparent 60%),
        radial-gradient(800px 520px at 100% 6%, rgba(36, 88, 242, .14), transparent 58%),
        radial-gradient(700px 600px at 85% 60%, rgba(124, 58, 237, .07), transparent 60%),
        radial-gradient(800px 600px at 10% 85%, rgba(240, 96, 11, .08), transparent 60%),
        linear-gradient(180deg, #edf2f7 0%, #f3f5f9 50%, #eef1f6 100%);
}
body.ms-body::before {
    background-image: radial-gradient(rgba(13, 27, 42, .09) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .25) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .25) 100%);
}
html.dark body.ms-body {
    background-image:
        radial-gradient(900px 520px at 0% 0%, rgba(18, 165, 107, .2), transparent 60%),
        radial-gradient(800px 520px at 100% 6%, rgba(63, 111, 245, .2), transparent 58%),
        radial-gradient(700px 600px at 85% 60%, rgba(124, 58, 237, .12), transparent 60%),
        radial-gradient(800px 600px at 10% 85%, rgba(242, 106, 27, .1), transparent 60%),
        linear-gradient(180deg, #0b1320 0%, #0a0f17 100%);
}
html.dark body.ms-body::before { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); }
#ws-root > .ms-section:nth-of-type(even) { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 18%, rgba(255, 255, 255, .55) 82%, rgba(255, 255, 255, 0)); }
html.dark #ws-root > .ms-section:nth-of-type(even) { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .025) 18%, rgba(255, 255, 255, .025) 82%, rgba(255, 255, 255, 0)); }

/* compact but breathable */
.ms-section { padding: clamp(22px, 2.4vw, 38px) 0; }
.ms-presence-list li { padding: 6px 10px; }

/* Round 14: clicked province lights up instead of the browser focus box */
.ms-presence-map .leaflet-interactive:focus,
.ms-presence-map .leaflet-interactive:focus-visible { outline: none; }
.ms-presence-map path.ms-nepal-shape { transition: fill-opacity .25s ease; }
.ms-presence-map path.ms-nepal-shape.is-picked { filter: drop-shadow(0 0 2px rgba(10, 143, 91, 1)) drop-shadow(0 8px 18px rgba(10, 143, 91, .35)); }
html.dark .ms-presence-map path.ms-nepal-shape.is-picked { filter: drop-shadow(0 0 2px rgba(63, 111, 245, 1)) drop-shadow(0 8px 18px rgba(63, 111, 245, .4)); }

/* Round 15: province names readable in dark */
html.dark .ms-map-province span { color: rgba(226, 236, 248, .86); text-shadow: 0 0 3px #0b1320, 0 0 6px rgba(11, 19, 32, .9), 0 1px 0 #0b1320; }
html.dark .ms-map-city span { color: #b7c3d2; }

/* Round 15: About page fills its width - hero aside (stats / facts) and mission + vision beside the story */
@media (min-width: 1024px) {
    .ms-phero-card.has-aside { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
    .ms-about-story.has-mv { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 3.5vw, 56px); align-items: start; }
}
.ms-phero-aside { margin-top: 18px; }
@media (min-width: 1024px) { .ms-phero-aside { margin-top: 0; } }
.ms-about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-about-stats > div { padding: 14px 16px; border-radius: 6px 16px; background: color-mix(in srgb, var(--ms-primary) 7%, var(--ms-surface)); border: 1px solid color-mix(in srgb, var(--ms-primary) 18%, var(--ms-line)); }
.ms-about-stats b { display: block; font-family: var(--ms-display); font-size: clamp(22px, 1.4vw + 12px, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ms-primary); font-variant-numeric: tabular-nums; }
.ms-about-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ms-muted); }
.ms-about-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-about-facts li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px 16px; background: color-mix(in srgb, var(--ms-primary) 6%, var(--ms-surface)); border: 1px solid var(--ms-line); font-size: 13.5px; font-weight: 600; color: var(--ms-text); }
.ms-about-facts i { color: var(--ms-primary); width: 16px; text-align: center; }
.ms-about-story.has-mv .ms-about-text { max-width: none; }
.ms-mv--stack { grid-template-columns: 1fr !important; gap: 12px; }
.ms-mv--stack .ms-mv-card { padding: 18px 20px; gap: 8px; }
.ms-mv--stack .ms-mv-card h3 { font-size: 18px; }
.ms-mv--stack .ms-mv-card p { font-size: 14px; line-height: 1.6; }

/* Round 16: map follows the chosen organization type (count card + note) */
.ms-presence-stat em { font-style: normal; }
.ms-presence-note { position: absolute; left: 16px; top: 14px; z-index: 5; max-width: min(60%, 320px); display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 7px 11px; border-radius: 3px 10px; font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--ms-ink); background: color-mix(in srgb, var(--ms-surface) 94%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--ms-primary)) 40%, var(--ms-line)); box-shadow: var(--ms-shadow-sm); animation: ms-note-in .25s ease; }
.ms-presence-note[hidden] { display: none; }
.ms-presence-note i { color: var(--c, var(--ms-primary)); margin-top: 2px; }
@keyframes ms-note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ms-presence-note { top: auto; bottom: 46px; max-width: calc(100% - 32px); } }
