/* =========================================================================
   Masar Site — minimal light / dark theme
   Font: Hayyakum (single thin weight)  •  Prefix: .ms-
   ========================================================================= */

/* ---------- Tokens -------------------------------------------------------- */

:root,
:root[data-theme="light"] {
	--ms-accent: #FF4A17;
	--ms-bg: #F8F7F4;
	--ms-surface: #FFFFFF;
	--ms-surface-2: #F1EFEA;
	--ms-text: #17171B;
	--ms-text-2: #47474D;
	--ms-muted: #8B8A8F;
	--ms-line: #E8E5DF;
	--ms-line-2: #D7D3CB;
	--ms-on-text: #F8F7F4;
	--ms-shadow: 0 1px 2px rgba(23, 23, 27, .04), 0 18px 40px -24px rgba(23, 23, 27, .18);
	--ms-overlay: rgba(23, 23, 27, .55);
	--ms-ph-l: 90%;
	--ms-ph-s: 35%;
	--ms-logo-filter: none;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ms-bg: #0E0E11;
	--ms-surface: #16161A;
	--ms-surface-2: #1D1D22;
	--ms-text: #EDECE8;
	--ms-text-2: #B4B3AE;
	--ms-muted: #7E7D82;
	--ms-line: #25252B;
	--ms-line-2: #34343B;
	--ms-on-text: #0E0E11;
	--ms-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .7);
	--ms-overlay: rgba(0, 0, 0, .6);
	--ms-ph-l: 20%;
	--ms-ph-s: 22%;
	color-scheme: dark;
}

:root {
	--ms-accent-soft: color-mix(in srgb, var(--ms-accent) 12%, var(--ms-bg));
	--ms-font: "Hayyakum", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--ms-radius: 20px;
	--ms-radius-sm: 12px;
	--ms-ease: cubic-bezier(.22, .7, .2, 1);
	--ms-header-h: 64px;
	--ms-header-space: 100px;
	--ms-gutter: clamp(18px, 4vw, 44px);
	--ms-max: 1240px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--ms-header-space); }
body.masar-site #content, body.masar-site .site-content { padding-top: var(--ms-header-space); }

/* Smooth colour change when switching theme. */
/* Theme switch: one GPU cross-fade of the whole page (View Transitions), no per-element transitions. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
/* ---------- Left-to-right (English) ---------- */
[dir="ltr"] .ms-ico--arrow { transform: scaleX(-1); }
[dir="ltr"] .ms-btn:hover .ms-btn__ico, [dir="ltr"] .ms-link:hover .ms-ico { transform: translateX(4px); }
[dir="ltr"] .ms-btn:hover .ms-btn__ico .ms-ico--arrow, [dir="ltr"] .ms-link:hover .ms-ico--arrow { transform: scaleX(-1); }
[dir="ltr"] .ms-header__cta:hover i { transform: rotate(45deg); }
[dir="ltr"] .ms-show__btn[data-show="prev"] .ms-ico { transform: none; }
[dir="ltr"] .ms-show__btn[data-show="next"] .ms-ico { transform: scaleX(-1); }
[dir="ltr"] .ms-tabs__list button::after { transform-origin: left; }
[dir="ltr"] .ms-index__row:hover .ms-index__a { transform: rotate(45deg); }
[dir="ltr"] .ms-dots { left: auto; right: 22px; }
[dir="ltr"] .ms-dots button { justify-content: flex-end; }
[dir="ltr"] .ms-dots button span { left: auto; right: 34px; }
[dir="ltr"] .ms-root .ms-display, [dir="ltr"] .ms-root .ms-h2 { letter-spacing: -.015em; }

html.ms-theme-switching *, html.ms-theme-switching *::before, html.ms-theme-switching *::after { transition: none !important; }

/* Off-screen sections skip style/paint work until they are near the viewport. */
.ms-root > .ms-section, .ms-root > section.ms-slide, .ms-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.ms-root > .ms-hero { content-visibility: visible; }

/* ---------- Base ---------------------------------------------------------- */

body.masar-site {
	background: var(--ms-bg) !important;
	color: var(--ms-text-2);
	font-family: var(--ms-font);
	font-weight: 400;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.masar-site h1, body.masar-site h2, body.masar-site h3,
body.masar-site h4, body.masar-site h5, body.masar-site h6 {
	font-family: var(--ms-font);
	font-weight: 400;
	color: var(--ms-text);
}
body.masar-site strong, body.masar-site b { font-weight: 400; color: var(--ms-text); }
body.masar-site ::selection { background: var(--ms-accent); color: #fff; }

.ms-root, .ms-header, .ms-footer, .ms-drawer {
	font-family: var(--ms-font);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.85;
	color: var(--ms-text-2);
}
.ms-root *, .ms-header *, .ms-footer *, .ms-drawer * { box-sizing: border-box; font-weight: 400; }
.ms-root a, .ms-header a, .ms-footer a, .ms-drawer a { text-decoration: none; color: inherit; }
.ms-root img { max-width: 100%; height: auto; display: block; }
.ms-root [hidden] { display: none !important; }
.ms-root p { margin: 0; }
.ms-root h1, .ms-root h2, .ms-root h3, .ms-root h4 { margin: 0; line-height: 1.4; letter-spacing: 0; color: var(--ms-text); }
.ms-root ul, .ms-root ol { margin: 0; padding: 0; list-style: none; }
.ms-root li { margin: 0; }
.ms-root em, .ms-accent { font-style: normal; color: var(--ms-accent); }

.ms-root button, .ms-header button, .ms-footer button, .ms-drawer button,
.ms-root button:hover, .ms-header button:hover, .ms-footer button:hover, .ms-drawer button:hover,
.ms-root button:focus, .ms-header button:focus, .ms-footer button:focus, .ms-drawer button:focus {
	background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit;
	border-radius: 0; box-shadow: none; cursor: pointer; line-height: inherit;
	text-transform: none; letter-spacing: inherit; min-height: 0;
}
.ms-root :focus-visible, .ms-header :focus-visible, .ms-footer :focus-visible, .ms-drawer :focus-visible {
	outline: 2px solid var(--ms-accent); outline-offset: 3px; border-radius: 8px;
}

/* ---------- Astra resets -------------------------------------------------- */

body.masar-full .site-content > .ast-container,
body.masar-full #content > .ast-container { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
body.masar-full #primary, body.masar-full .content-area { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; float: none !important; border: 0 !important; }
body.masar-full #secondary { display: none !important; }
body.masar-full article.page, body.masar-full article.masar_work,
body.masar-full .ast-article-single, body.masar-full .ast-article-post,
body.masar-full .site-main > article { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; max-width: none !important; }
body.masar-full .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
body.masar-full .entry-content > .ms-root { margin: 0 !important; max-width: none !important; width: 100% !important; }
body.masar-full .entry-header, body.masar-full .post-thumb-img-content,
body.masar-full .ast-single-post-order, body.masar-full .post-navigation,
body.masar-full .ast-breadcrumbs-wrapper, body.masar-full #comments,
body.masar-full .comments-area, body.masar-full .ast-author-box { display: none !important; }
body.masar-site .site-content, body.masar-site.ast-separate-container { background: var(--ms-bg) !important; }
body.masar-site #masthead, body.masar-site .site-footer:not(.ms-footer) { display: none; }

/* Astra blog / post pages follow the same theme. */
body.masar-site {
	--ast-global-color-0: var(--ms-accent);
	--ast-global-color-1: var(--ms-accent);
	--ast-global-color-2: var(--ms-text);
	--ast-global-color-3: var(--ms-text-2);
	--ast-global-color-4: var(--ms-bg);
	--ast-global-color-5: var(--ms-surface);
	--ast-global-color-6: var(--ms-surface-2);
	--ast-global-color-7: var(--ms-line);
	--ast-global-color-8: var(--ms-text);
	--ast-border-color: var(--ms-line);
}
body.masar-site:not(.masar-full) .ast-article-single,
body.masar-site:not(.masar-full) .ast-article-post,
body.masar-site:not(.masar-full) .comments-area,
body.masar-site:not(.masar-full) .ast-separate-container .comment-respond,
body.masar-site:not(.masar-full) .widget { background: var(--ms-surface) !important; color: var(--ms-text-2); border-color: var(--ms-line) !important; }
body.masar-site:not(.masar-full) .entry-title, body.masar-site:not(.masar-full) .entry-title a { color: var(--ms-text) !important; }
body.masar-site:not(.masar-full) .entry-content { font-size: 1.1rem; line-height: 1.95; color: var(--ms-text-2); }
body.masar-site:not(.masar-full) .entry-content a { color: var(--ms-accent); }
body.masar-site:not(.masar-full) .entry-meta, body.masar-site:not(.masar-full) .entry-meta * { color: var(--ms-muted) !important; }
body.masar-site:not(.masar-full) input, body.masar-site:not(.masar-full) textarea { background: var(--ms-bg); color: var(--ms-text); border-color: var(--ms-line); }

/* ---------- Layout -------------------------------------------------------- */

.ms-wrap { width: 100%; max-width: var(--ms-max); margin-inline: auto; padding-inline: var(--ms-gutter); }
.ms-section { padding-block: clamp(64px, 7.5vw, 108px); position: relative; }
.ms-section + .ms-section { border-top: 1px solid var(--ms-line); }
.ms-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Typography ---------------------------------------------------- */

.ms-root .ms-display {
	font-size: clamp(2.4rem, 5.2vw, 4.4rem);
	line-height: 1.32;
	letter-spacing: -.005em;
	color: var(--ms-text);
	text-wrap: balance;
}
.ms-root .ms-h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.85rem);
	line-height: 1.4;
	color: var(--ms-text);
	text-wrap: balance;
}
.ms-root .ms-lead { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.9; color: var(--ms-text-2); max-width: 58ch; }

.ms-root .ms-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .95rem; color: var(--ms-muted);
	margin: 0 0 18px;
}
.ms-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-accent); flex-shrink: 0; }

/* ---------- Reveal on scroll ---------------------------------------------- */
/* Uses the `translate` property so hover transforms never fight with it. */

.ms-js .ms-reveal { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ms-ease), translate .8s var(--ms-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.ms-js .ms-reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Buttons ------------------------------------------------------- */

.ms-root .ms-btn, .ms-header .ms-btn, .ms-footer .ms-btn, .ms-drawer .ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 24px; min-height: 48px;
	border-radius: 999px; font-size: 1rem; line-height: 1;
	border: 1px solid transparent;
	transition: background-color .3s var(--ms-ease), color .3s, border-color .3s, transform .2s var(--ms-ease);
	white-space: nowrap;
}
.ms-btn:active { transform: scale(.97); }
.ms-btn__ico { display: inline-grid; place-items: center; font-style: normal; transition: transform .35s var(--ms-ease); }
.ms-btn__ico .ms-ico { width: 16px; height: 16px; }
.ms-btn:hover .ms-btn__ico { transform: translateX(-4px); }

.ms-btn--primary { background: var(--ms-text); color: var(--ms-on-text) !important; }
.ms-btn--primary:hover { background: var(--ms-accent); color: #fff !important; }

.ms-btn--ghost { border-color: var(--ms-line-2) !important; color: var(--ms-text) !important; background: transparent; }
.ms-btn--ghost:hover { border-color: var(--ms-text) !important; background: var(--ms-surface); }

.ms-btn--lg { min-height: 54px; padding-inline: 28px; }

.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.ms-root .ms-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ms-text); position: relative; padding-bottom: 4px; }
.ms-root .ms-link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: right; transition: transform .45s var(--ms-ease); }
.ms-root .ms-link:hover { color: var(--ms-accent); }
.ms-root .ms-link:hover::after { transform: scaleX(1); }
.ms-link .ms-ico { width: 15px; height: 15px; transition: transform .35s var(--ms-ease); }
.ms-link:hover .ms-ico { transform: translateX(-3px); }

.ms-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .82rem; background: var(--ms-surface-2); color: var(--ms-text-2); }
.ms-pill--accent { background: var(--ms-accent-soft); color: var(--ms-accent); }

.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-tags li { font-size: .88rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ms-line); color: var(--ms-text-2); }

/* ---------- Header: floating pill ---------------------------------------- */

.ms-header {
	position: fixed; z-index: 900;
	top: calc(14px + var(--wp-admin--admin-bar--height, 0px)); left: 0; right: 0;
	padding-inline: 14px;
	pointer-events: none;
	transition: transform .5s var(--ms-ease);
}
.ms-header.is-hidden { transform: translateY(calc(-100% - 30px)); }
.ms-header__pill {
	pointer-events: auto;
	max-width: 1180px; height: var(--ms-header-h); margin-inline: auto;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
	padding-inline: 22px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ms-surface) 78%, transparent);
	backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
	border: 1px solid var(--ms-line);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25);
	transition: background-color .3s, box-shadow .3s;
}
.ms-header.is-scrolled .ms-header__pill { background: color-mix(in srgb, var(--ms-surface) 92%, transparent); box-shadow: 0 14px 40px -20px rgba(0, 0, 0, .35); }

.ms-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.ms-logo__svg { display: block; color: var(--ms-text); line-height: 0; }
.ms-logo__svg svg { height: 34px; width: auto; display: block; }
.ms-logo--footer .ms-logo__svg svg { height: 40px; }
@media (max-width: 640px) { .ms-logo__svg svg { height: 27px; } }
.ms-logo__img { height: 36px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.ms-logo__img--dark { display: none; }
:root[data-theme="dark"] .ms-logo__img--light { display: none; }
:root[data-theme="dark"] .ms-logo__img--dark { display: block; }
.ms-logo__img.is-invert { filter: brightness(0) invert(.92); }
.ms-logo__word { font-size: 1.35rem; color: var(--ms-text); }

.ms-nav { justify-self: center; }
.ms-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ms-nav__list > li { position: relative; list-style: none; margin: 0; }
.ms-nav__list > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; font-size: 1rem; line-height: 1.4; color: var(--ms-text-2); border-radius: 999px; transition: color .2s, background-color .2s; }
.ms-nav__list > li > a:hover { color: var(--ms-text); }
.ms-nav__list > li.is-current > a, .ms-nav__list > li.current-menu-item > a { color: var(--ms-text); background: var(--ms-surface-2); }
.ms-nav__list .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: 14px; padding: 6px; box-shadow: var(--ms-shadow); list-style: none; opacity: 0; visibility: hidden; transition: opacity .2s; margin: 0; }
.ms-nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; }
.ms-nav__list .sub-menu a { display: block; padding: 8px 12px; border-radius: 10px; }
.ms-nav__list .sub-menu a:hover { background: var(--ms-surface-2); }

.ms-caret { width: 6px; height: 6px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg) translateY(-2px); transition: transform .3s; display: inline-block; }
.has-mega:hover .ms-caret, .has-mega:focus-within .ms-caret { transform: rotate(135deg) translate(-2px, 0); }

.ms-mega {
	position: absolute; top: calc(100% + 18px); right: 50%; transform: translateX(50%);
	width: min(640px, 92vw);
	background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: 22px; padding: 8px;
	box-shadow: var(--ms-shadow);
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.ms-mega::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.has-mega:hover .ms-mega, .has-mega:focus-within .ms-mega { opacity: 1; visibility: visible; }
.ms-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-mega__grid a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; transition: background-color .2s; }
.ms-mega__grid a:hover { background: var(--ms-surface-2); }
.ms-mega__grid strong { display: block; font-size: .98rem; color: var(--ms-text); line-height: 1.5; }
.ms-mega__grid small { display: block; font-size: .84rem; color: var(--ms-muted); line-height: 1.5; margin-top: 2px; }
.ms-mega__ico { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ms-surface-2); color: var(--ms-text-2); transition: background-color .2s, color .2s; }
.ms-mega__grid a:hover .ms-mega__ico { background: var(--ms-accent-soft); color: var(--ms-accent); }

.ms-header__actions { display: flex; align-items: center; gap: 6px; }
.ms-header .ms-theme, .ms-header .ms-burger { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ms-text); position: relative; overflow: hidden; transition: background-color .2s; }
.ms-header .ms-theme:hover, .ms-header .ms-burger:hover { background: var(--ms-surface-2); }
.ms-theme span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s var(--ms-ease), opacity .3s; }
.ms-theme__sun { transform: translateY(120%) rotate(-60deg); opacity: 0; }
:root[data-theme="dark"] .ms-theme__sun { transform: none; opacity: 1; }
:root[data-theme="dark"] .ms-theme__moon { transform: translateY(-120%) rotate(60deg); opacity: 0; }
.ms-lang { font-size: .88rem; padding: 8px 10px; border-radius: 999px; color: var(--ms-text-2); transition: color .2s, background-color .2s; }
.ms-lang:hover { color: var(--ms-text); background: var(--ms-surface-2); }
.ms-header__cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 0; padding-inline: 20px 6px; border-radius: 999px; background: var(--ms-text); color: var(--ms-on-text) !important; font-size: .98rem; transition: background-color .25s, color .25s; }
.ms-header__cta i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ms-accent); color: #fff; font-style: normal; transition: transform .35s var(--ms-ease); }
.ms-header__cta i .ms-ico { width: 15px; height: 15px; }
.ms-header__cta:hover { background: var(--ms-accent); color: #fff !important; }
.ms-header__cta:hover i { background: rgba(255, 255, 255, .2); transform: rotate(-45deg); }
.ms-header .ms-burger { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.ms-header .ms-theme, .ms-header .ms-burger { padding: 0 !important; border: 0 !important; background-color: transparent; box-shadow: none !important; line-height: 1; min-height: 0; flex-shrink: 0; border-radius: 50% !important; }
.ms-burger span { width: 18px; height: 1.2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ms-ease); }
.ms-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.ms-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Drawer */
.ms-drawer { position: fixed; inset: 0; padding-top: calc(var(--ms-header-space) + var(--wp-admin--admin-bar--height, 0px)); z-index: 890; background: var(--ms-bg); opacity: 0; visibility: hidden; transition: opacity .35s var(--ms-ease), visibility .35s; overflow-y: auto; }
.ms-drawer.is-open { opacity: 1; visibility: visible; }
.ms-drawer[hidden] { display: block; }
.ms-drawer__in { padding: 24px var(--ms-gutter) 40px; display: flex; flex-direction: column; gap: 36px; min-height: 100%; }
.ms-drawer nav { display: flex; flex-direction: column; }
.ms-drawer nav a { font-size: 1.9rem; line-height: 1.5; color: var(--ms-text); padding: 12px 0; border-bottom: 1px solid var(--ms-line); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; translate: 0 12px; transition: opacity .4s, translate .5s var(--ms-ease), color .2s; transition-delay: calc(var(--i) * 45ms); }
.ms-drawer nav a small { font-size: .85rem; color: var(--ms-muted); }
.ms-drawer nav a.is-current { color: var(--ms-accent); }
.ms-drawer.is-open nav a { opacity: 1; translate: 0 0; }
.ms-drawer__foot { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: auto; }
.ms-drawer__contact { color: var(--ms-text-2); }
html.ms-lock, html.ms-lock body { overflow: hidden; }

/* Socials */
.ms-socials { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ms-socials li { list-style: none; margin: 0; }
.ms-socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ms-line); color: var(--ms-text-2); transition: background-color .25s, color .25s, border-color .25s; }
.ms-socials a:hover { background: var(--ms-text); border-color: var(--ms-text); color: var(--ms-on-text); }
.ms-socials .ms-ico { width: 15px; height: 15px; }
.ms-socials--boxed a { width: 42px; height: 42px; border-radius: 12px; }

/* ---------- Hero ---------------------------------------------------------- */

.ms-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.ms-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ms-root .ms-hero__title { margin-bottom: 22px; }
.ms-hero__copy .ms-lead { margin-bottom: 30px; }
.ms-hero__proof { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0; margin-top: 40px !important; border-top: 1px solid var(--ms-line); }
.ms-hero__proof li { padding: 18px 0 0; padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--ms-line); display: flex; flex-direction: column; }
.ms-hero__proof li:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.ms-hero__proof strong { font-size: 1.8rem; line-height: 1.3; color: var(--ms-text); }
.ms-hero__proof span { font-size: .9rem; color: var(--ms-muted); line-height: 1.5; }

.ms-hero__mosaic {
	position: relative;
	display: grid; gap: 12px;
	grid-template-columns: 1.25fr 1fr;
	grid-template-rows: repeat(3, clamp(104px, 10.5vw, 150px));
	grid-template-areas: "a b" "a c" "d c";
}
.ms-hero__video { position: relative; border-radius: 24px; overflow: hidden; background: var(--ms-surface-2); aspect-ratio: 4/3.4; isolation: isolate; }
.ms-hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-hero__video .ms-hero__note { bottom: 16px; inset-inline-end: 16px; }
.ms-root .ms-hero__vbtn { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ms-surface) 80%, transparent); backdrop-filter: blur(8px); color: var(--ms-text); transition: background-color .2s; }
.ms-root .ms-hero__vbtn:hover { background: var(--ms-surface); }
.ms-hero__vbtn .is-play, .ms-hero__vbtn.is-paused .is-pause { display: none; }
.ms-hero__vbtn.is-paused .is-play { display: grid; }
.ms-hero__vbtn span { display: grid; place-items: center; }
/* Hero with full background video (always dark, copy on the right) */
.ms-hero--bg {
	--ms-bg: #0E0E11; --ms-surface: #16161A; --ms-surface-2: #1D1D22; --ms-text: #EDECE8; --ms-text-2: #B4B3AE; --ms-muted: #8E8D92; --ms-line: #2A2A30; --ms-line-2: #3A3A41; --ms-on-text: #0E0E11;
	position: relative; isolation: isolate; overflow: hidden; background: #0E0E11; color: var(--ms-text);
	min-height: min(100svh, 920px); display: flex; align-items: center;
	margin-top: calc(-1 * var(--ms-header-space, 100px)); padding: calc(var(--ms-header-space, 100px) + 32px) 0 clamp(56px, 7vw, 96px);
}
.ms-hero--bg .ms-wrap { width: 100%; }
.ms-hero__bg { position: absolute; inset: 0; z-index: -1; }
.ms-hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ms-hero__shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(14,14,17,.92) 0%, rgba(14,14,17,.55) 42%, rgba(14,14,17,0) 70%), linear-gradient(to top, #0E0E11 0%, rgba(14,14,17,0) 22%); pointer-events: none; }
.ms-hero--bg .ms-hero__grid { grid-template-columns: 1fr; }
.ms-hero--bg .ms-hero__copy { width: min(620px, 50%); margin-left: auto; margin-right: 0; }
[dir="ltr"] .ms-hero--bg .ms-hero__copy { text-align: left; }
.ms-hero--bg .ms-hero__vbtn { top: auto; bottom: 28px; inset-inline-end: auto; left: 28px; background: rgba(255,255,255,.1); color: #fff; }
.ms-hero--bg .ms-btn--primary { background: #EDECE8; color: #0E0E11 !important; }
.ms-hero--bg .ms-btn--primary:hover { background: var(--ms-accent); color: #fff !important; }
@media (max-width: 900px) {
	.ms-hero--bg { min-height: 0; align-items: flex-end; padding-top: calc(var(--ms-header-space, 84px) + 40vw); }
	.ms-hero__bg video { height: 62vw; bottom: auto; object-position: 0 50%; }
	.ms-hero__shade { background: linear-gradient(to top, #0E0E11 calc(100% - 62vw + 10px), rgba(14,14,17,.2) calc(100% - 22vw), rgba(14,14,17,0) 100%); }
	.ms-hero--bg .ms-hero__copy { width: 100%; }
	.ms-hero--bg .ms-hero__vbtn { top: calc(62vw - 56px); bottom: auto; left: 16px; }
}
.ms-hero__tile { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--ms-surface-2); isolation: isolate; }
.ms-hero__tile.is-0 { grid-area: a; }
.ms-hero__tile.is-1 { grid-area: b; }
.ms-hero__tile.is-2 { grid-area: c; }
.ms-hero__tile.is-3 { grid-area: d; }
.ms-hero__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ms-ease); }
.ms-hero__tile span { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; font-size: .82rem; line-height: 1; padding: 7px 12px; border-radius: 999px; background: var(--ms-surface); color: var(--ms-text); opacity: 0; translate: 0 6px; transition: opacity .3s, translate .4s var(--ms-ease); }
.ms-hero__tile:hover img { transform: scale(1.05); }
.ms-hero__tile:hover span { opacity: 1; translate: 0 0; }
.ms-hero__note { position: absolute; bottom: -16px; inset-inline-end: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--ms-surface); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); font-size: .92rem; color: var(--ms-text); }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ms-ping 2.4s infinite; }
@keyframes ms-ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Image strip & marquee ---------------------------------------- */

.ms-strip { overflow: hidden; direction: ltr; padding: 4px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ms-strip__track { display: flex; gap: 14px; width: max-content; animation: ms-slide 70s linear infinite; }
.ms-strip:hover .ms-strip__track { animation-play-state: paused; }
.ms-strip__item { position: relative; flex-shrink: 0; width: clamp(220px, 22vw, 300px); aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: var(--ms-surface-2); direction: rtl; }
.ms-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ms-ease); }
.ms-strip__item span { position: absolute; bottom: 10px; inset-inline-start: 10px; font-size: .8rem; line-height: 1; padding: 6px 11px; border-radius: 999px; background: var(--ms-surface); color: var(--ms-text); opacity: 0; transition: opacity .3s; }
.ms-strip__item:hover img { transform: scale(1.05); }
.ms-strip__item:hover span { opacity: 1; }
@keyframes ms-slide { to { transform: translateX(-50%); } }

.ms-marquee { overflow: hidden; white-space: nowrap; direction: ltr; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ms-marquee__track { display: inline-flex; align-items: center; gap: 28px; width: max-content; animation: ms-slide 60s linear infinite; }
.ms-marquee span { font-size: clamp(1.4rem, 2.8vw, 2.2rem); color: var(--ms-muted); direction: rtl; transition: color .3s; }
.ms-marquee span:hover { color: var(--ms-text); }
.ms-marquee i { color: var(--ms-line-2); font-style: normal; font-size: 2rem; }
.ms-marquee:hover .ms-marquee__track { animation-play-state: paused; }

/* ---------- Section heads / split layout --------------------------------- */

.ms-sechead { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.ms-sechead .ms-lead { margin-top: 16px; }
.ms-sechead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.ms-sechead--center { text-align: center; margin-inline: auto; }
.ms-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.ms-split__head .ms-lead { margin-top: 18px; }
.ms-split__head .ms-actions { margin-top: 28px; }

/* Problem */
.ms-problem__list { display: flex; flex-direction: column; border-top: 1px solid var(--ms-line); }
.ms-problem__item { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--ms-line); font-size: 1.08rem; color: var(--ms-text); transition: padding .4s var(--ms-ease), color .3s; }

.ms-x { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ms-line-2); color: var(--ms-muted); }
.ms-x .ms-ico { width: 12px; height: 12px; }
.ms-problem__q { margin-top: 24px; padding: 26px 28px; border-radius: var(--ms-radius); background: var(--ms-accent-soft); display: flex; flex-direction: column; gap: 6px; }
.ms-problem__q small { font-size: .95rem; color: var(--ms-text-2); }
.ms-problem__q strong { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; color: var(--ms-accent); }

/* Cards */
.ms-cards { display: grid; gap: 14px; }
.ms-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ms-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-card { padding: 28px 24px; border-radius: var(--ms-radius); border: 1px solid var(--ms-line); background: var(--ms-surface); transition: transform .45s var(--ms-ease), border-color .3s, box-shadow .45s; }
.ms-card:hover { border-color: var(--ms-line-2); box-shadow: var(--ms-shadow); }
.ms-root .ms-card h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.ms-card p { color: var(--ms-text-2); line-height: 1.85; font-size: 1rem; }
.ms-card__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ms-accent-soft); color: var(--ms-accent); }
.ms-card__num { font-size: 1.1rem; color: var(--ms-muted); }
.ms-card--dark { background: var(--ms-surface-2); }
.ms-card--accent { background: var(--ms-accent-soft); border-color: transparent; }
.ms-root .ms-card--dark h3, .ms-root .ms-card--accent h3 { font-size: 1.8rem; }
.ms-vm .ms-card { padding: 36px 32px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.ms-vm .ms-card p { font-size: 1.12rem; }

/* Stats */
.ms-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ms-line); }
.ms-stat { padding: 26px 22px 6px; border-inline-start: 1px solid var(--ms-line); }
.ms-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ms-stat__num { font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1.2; display: flex; align-items: flex-start; gap: 2px; color: var(--ms-text); }
.ms-stat__num em { font-style: normal; color: var(--ms-accent); font-size: .55em; }
.ms-stat p { margin-top: 8px; color: var(--ms-muted); }
.ms-stats--line { margin: 0 0 clamp(48px, 6vw, 80px); }

/* Services accordion */
.ms-acc { border-top: 1px solid var(--ms-line); }
.ms-acc__item { border-bottom: 1px solid var(--ms-line); }
.ms-root .ms-acc__head { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 44px; gap: 18px; align-items: center; padding: 24px 0; text-align: start; }
.ms-acc__num { font-size: .95rem; color: var(--ms-muted); }
.ms-acc__title { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ms-text); transition: color .3s, translate .45s var(--ms-ease); }
.ms-acc__hook { color: var(--ms-muted); font-size: .98rem; }
.ms-acc__plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ms-line); display: grid; place-items: center; color: var(--ms-text-2); transition: transform .45s var(--ms-ease), border-color .3s, color .3s, background-color .3s; }
.ms-acc__plus .ms-ico { width: 16px; height: 16px; }
.ms-acc__head:hover .ms-acc__title { color: var(--ms-accent); }
.ms-acc__head:hover .ms-acc__plus { border-color: var(--ms-line-2); }
.ms-acc__item.is-open .ms-acc__title { color: var(--ms-accent); }
.ms-acc__item.is-open .ms-acc__plus { transform: rotate(45deg); border-color: var(--ms-accent); color: var(--ms-accent); }
.ms-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ms-ease); }
.ms-acc__body > div { overflow: hidden; padding-inline-start: 74px; }
.ms-acc__item.is-open .ms-acc__body { grid-template-rows: 1fr; }
.ms-acc__body p { max-width: 60ch; color: var(--ms-text-2); font-size: 1.05rem; line-height: 1.9; margin-bottom: 16px; }
.ms-acc__body .ms-tags { margin-bottom: 20px; }
.ms-acc__body .ms-link { margin-bottom: 28px; }

/* ---------- Work cards & grids ------------------------------------------- */

.ms-grid { --mh: clamp(220px, 20vw, 290px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); grid-auto-flow: dense; }
.ms-grid .ms-work.is-wide { grid-column: span 2; }
.ms-grid .ms-work__media { height: var(--mh); }

.ms-work { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ms-work.is-hidden { display: none; }
.ms-work__media { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--ms-surface-2); isolation: isolate; aspect-ratio: 16/11; }
.ms-grid .ms-work__media { aspect-ratio: auto; }
.ms-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ms-ease); }
.ms-work:hover .ms-work__media img { transform: scale(1.04); }
.ms-work__view { position: absolute; z-index: 2; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--ms-surface); color: var(--ms-text); border-radius: 999px; font-size: .88rem; line-height: 1; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .4s var(--ms-ease); }
.ms-work__view .ms-ico { width: 13px; height: 13px; }
.ms-work:hover .ms-work__view, .ms-work__media:focus-visible .ms-work__view { opacity: 1; translate: 0 0; }
.ms-work__count { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; background: var(--ms-surface); color: var(--ms-text); padding: 5px 11px; border-radius: 999px; font-size: .8rem; line-height: 1.2; }
.ms-work__meta { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ms-root .ms-work__title { font-size: 1.2rem; line-height: 1.5; }
.ms-work__title a { transition: color .25s; }
.ms-work:hover .ms-work__title a { color: var(--ms-accent); }
.ms-work__sub { color: var(--ms-muted); font-size: .92rem; line-height: 1.6; }
.ms-work__side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ms-work__year { font-size: .9rem; color: var(--ms-muted); }
.ms-work__ext { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ms-line); color: var(--ms-text-2); transition: background-color .2s, color .2s, border-color .2s; }
.ms-work__ext .ms-ico { width: 14px; height: 14px; }
.ms-work__ext:hover { background: var(--ms-text); color: var(--ms-on-text) !important; border-color: var(--ms-text); }

/* Placeholder for works without images */
.ms-ph { position: absolute; inset: 0; display: grid; place-items: center; background:
	radial-gradient(120% 90% at 85% 10%, hsl(var(--h) var(--ms-ph-s) calc(var(--ms-ph-l) - 6%)), transparent 60%),
	hsl(var(--h) calc(var(--ms-ph-s) - 10%) var(--ms-ph-l)); }
.ms-ph span { font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: 1; color: hsl(var(--h) 30% 50% / .7); }

/* Works page */
.ms-wstats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.ms-wstats > div { flex: 1 1 150px; padding: 20px 22px; border-inline-start: 1px solid var(--ms-line); display: flex; flex-direction: column; gap: 2px; }
.ms-wstats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ms-wstats strong { font-size: 2.2rem; line-height: 1.3; color: var(--ms-text); }
.ms-wstats > div:first-child strong { color: var(--ms-accent); }
.ms-wstats span:not(.ms-count) { font-size: .92rem; color: var(--ms-muted); }

.ms-spot { padding-top: clamp(40px, 5vw, 64px); }
.ms-spot__card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); border-radius: 24px; overflow: hidden; background: var(--ms-surface); border: 1px solid var(--ms-line); min-height: 400px; transition: border-color .3s, box-shadow .45s; }
.ms-spot__card:hover { border-color: var(--ms-line-2); box-shadow: var(--ms-shadow); }
.ms-spot__media { overflow: hidden; background: var(--ms-surface-2); }
.ms-spot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ms-ease); }
.ms-spot__card:hover .ms-spot__media img { transform: scale(1.03); }
.ms-spot__info { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; }
.ms-root .ms-spot__info h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.ms-spot__info p { color: var(--ms-text-2); }
.ms-spot__ex { line-height: 1.85; }

.ms-portfolio { padding-top: clamp(40px, 5vw, 64px); }
.ms-filter { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.ms-filter__chips { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ms-surface-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ms-filter__chips::-webkit-scrollbar { display: none; }
.ms-root .ms-filter__chips button, .ms-filter__chips a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: .98rem; white-space: nowrap; color: var(--ms-text-2); transition: color .3s; }
.ms-root .ms-filter__chips button:hover, .ms-filter__chips a:hover { color: var(--ms-text); }
.ms-root .ms-filter__chips button.is-active, .ms-filter__chips a.is-active { color: var(--ms-on-text); }
.ms-filter--simple .ms-filter__chips a.is-active { background: var(--ms-text); }
.ms-filter__chips sup { font-size: .7rem; opacity: .6; margin-inline-start: 3px; }
.ms-filter__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--ms-text); transition: left .45s var(--ms-ease), width .45s var(--ms-ease); left: 4px; width: 0; }
.ms-filter__tools { display: flex; gap: 8px; align-items: center; }
.ms-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 999px; border: 1px solid var(--ms-line); background: var(--ms-surface); color: var(--ms-muted); transition: border-color .2s; }
.ms-search:focus-within { border-color: var(--ms-line-2); }
.ms-search .ms-ico { width: 15px; height: 15px; }
.ms-root .ms-search input, .ms-root .ms-search input:focus { border: 0; background: none; outline: 0; box-shadow: none; padding: 0; height: 100%; width: 170px; font: inherit; font-size: .98rem; color: var(--ms-text); min-height: 0; }
.ms-view { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--ms-line); background: var(--ms-surface); }
.ms-root .ms-view button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ms-muted); transition: background-color .25s, color .25s; }
.ms-root .ms-view button .ms-ico { width: 16px; height: 16px; }
.ms-root .ms-view button.is-active { background: var(--ms-text); color: var(--ms-on-text); }
.ms-grid .ms-work { transition: opacity .35s var(--ms-ease); }
.ms-grid.is-filtering .ms-work { opacity: 0; }
.ms-empty { text-align: center; color: var(--ms-muted); padding: 56px 0; }

/* Works list view */
.ms-index { border-top: 1px solid var(--ms-line); position: relative; }
.ms-index__row { display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.4fr) 70px 32px; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ms-line); transition: padding .4s var(--ms-ease); }
.ms-index__row.is-hidden { display: none; }
.ms-index__n, .ms-index__y { color: var(--ms-muted); }
.ms-index__t { font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ms-text); transition: color .25s; }
.ms-index__c { color: var(--ms-muted); }
.ms-index__a { display: grid; place-items: center; color: var(--ms-muted); transition: transform .4s var(--ms-ease), color .25s; }
.ms-index__row:hover { background: var(--ms-surface); }
.ms-index__row:hover .ms-index__t, .ms-index__row:hover .ms-index__a { color: var(--ms-accent); }
.ms-index__row:hover .ms-index__a { transform: rotate(-45deg); }
.ms-index__preview { position: fixed; z-index: 60; top: 0; left: 0; width: 300px; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ms-ease); box-shadow: var(--ms-shadow); }
.ms-index__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ms-index__preview img { width: 100%; height: 100%; object-fit: cover; }

.ms-clients { padding: 8px 0 clamp(56px, 7vw, 96px); }
.ms-clients__label { color: var(--ms-muted); font-size: .95rem; margin-bottom: 10px !important; }

/* Lightbox */
.ms-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 8, 10, .94); display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; padding: 40px 8px; }
.ms-lightbox[hidden] { display: none; }
.ms-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; min-width: 0; }
.ms-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; animation: ms-fade .4s var(--ms-ease); }
.ms-lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .95rem; }
@keyframes ms-fade { from { opacity: 0; transform: scale(.97); } }
.ms-root .ms-lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.ms-root .ms-lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.ms-root .ms-lightbox__nav { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; justify-self: center; transition: background-color .2s; }
.ms-root .ms-lightbox__nav:hover { background: rgba(255, 255, 255, .12); }
.ms-lightbox__nav.is-prev .ms-ico { transform: scaleX(-1); }

/* ---------- Why ---------------------------------------------------------- */

.ms-why__list { display: flex; flex-direction: column; border-top: 1px solid var(--ms-line); }
.ms-why__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--ms-line); }
.ms-why__num { color: var(--ms-muted); padding-top: 4px; }
.ms-root .ms-why__item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.ms-why__item p { color: var(--ms-text-2); line-height: 1.85; }
.ms-why__ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ms-line); display: grid; place-items: center; color: var(--ms-text-2); transition: background-color .3s, color .3s, border-color .3s; }
.ms-why__item:hover .ms-why__ico { background: var(--ms-accent-soft); color: var(--ms-accent); border-color: transparent; }

/* ---------- Process ------------------------------------------------------ */

.ms-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.ms-step { padding: 28px 20px 4px 20px; border-top: 1px solid var(--ms-line); position: relative; }
.ms-step:first-child { padding-inline-start: 0; }
.ms-step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 1px; width: 0; background: var(--ms-accent); transition: width 1s var(--ms-ease) calc(var(--d) * 160ms + 200ms); }
.ms-step.is-in::before { width: 100%; }
.ms-step__num { display: block; font-size: 1rem; color: var(--ms-accent); margin-bottom: 14px; }
.ms-root .ms-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ms-step p { font-size: .98rem; line-height: 1.85; color: var(--ms-text-2); }

/* ---------- Testimonials ------------------------------------------------- */

.ms-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ms-quote { position: relative; margin: 0; padding: 28px 26px; border-radius: var(--ms-radius); border: 1px solid var(--ms-line); background: var(--ms-surface); display: flex; flex-direction: column; gap: 22px; transition: border-color .3s, transform .45s var(--ms-ease); }
.ms-quote:hover { border-color: var(--ms-line-2); }
.ms-quote__mark { position: absolute; top: 6px; inset-inline-end: 22px; font-size: 4rem; line-height: 1; color: var(--ms-accent-soft); }
.ms-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 1.08rem; line-height: 1.9; font-style: normal; flex: 1; color: var(--ms-text); position: relative; }
.ms-quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--ms-text); font-size: .98rem; line-height: 1.4; }
.ms-quote figcaption small { display: block; color: var(--ms-accent); font-size: .78rem; letter-spacing: 2px; margin-top: 2px; }
.ms-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ms-surface-2); color: var(--ms-text); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- FAQ ---------------------------------------------------------- */

.ms-faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--ms-line); }
.ms-faq__item { border-bottom: 1px solid var(--ms-line); }
.ms-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 1.12rem; color: var(--ms-text); transition: color .2s; }
.ms-faq__item summary:hover { color: var(--ms-accent); }
.ms-faq__item summary::-webkit-details-marker { display: none; }
.ms-faq__item summary i { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ms-line); display: grid; place-items: center; color: var(--ms-text-2); transition: transform .4s var(--ms-ease), border-color .3s, color .3s; }
.ms-faq__item summary i .ms-ico { width: 14px; height: 14px; }
.ms-faq__item[open] summary { color: var(--ms-text); }
.ms-faq__item[open] summary i { transform: rotate(45deg); border-color: var(--ms-accent); color: var(--ms-accent); }
.ms-faq__item p { padding: 0 0 24px; padding-inline-end: 50px; color: var(--ms-text-2); line-height: 1.9; animation: ms-fade .4s var(--ms-ease); }

/* ---------- Posts -------------------------------------------------------- */

.ms-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ms-post { display: flex; flex-direction: column; gap: 16px; }
.ms-post__media { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: var(--ms-surface-2); }
.ms-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ms-ease); }
.ms-post:hover .ms-post__media img { transform: scale(1.04); }
.ms-post__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; color: var(--ms-muted); margin-bottom: 8px !important; }
.ms-root .ms-post h3 { font-size: 1.3rem; line-height: 1.55; }
.ms-post h3 a { transition: color .25s; }
.ms-post:hover h3 a { color: var(--ms-accent); }
.ms-post__excerpt { color: var(--ms-text-2); line-height: 1.85; margin-top: 8px !important; font-size: 1rem; }
.ms-post.is-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.ms-root .ms-post.is-big h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.ms-pager { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.ms-pager .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ms-line); display: inline-grid; place-items: center; color: var(--ms-text-2); transition: border-color .2s; }
.ms-pager .page-numbers:hover { border-color: var(--ms-line-2); }
.ms-pager .page-numbers.current { background: var(--ms-text); color: var(--ms-on-text); border-color: var(--ms-text); }

/* ---------- Contact & forms --------------------------------------------- */

.ms-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
.ms-contact--page { padding-top: 24px; }
.ms-contact--page .ms-contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ms-contact__side .ms-lead { margin: 16px 0 28px; }
.ms-info { display: flex; flex-direction: column; border-top: 1px solid var(--ms-line); }
.ms-info__item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ms-line); transition: padding .35s var(--ms-ease); }

.ms-info__item small { display: block; color: var(--ms-muted); font-size: .86rem; line-height: 1.4; }
.ms-info__item strong { display: block; font-size: 1.05rem; line-height: 1.5; color: var(--ms-text); word-break: break-word; transition: color .2s; }
.ms-info__item:hover strong { color: var(--ms-accent); }
.ms-info__ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ms-surface-2); color: var(--ms-text-2); }
.ms-info__ico--wa { background: rgba(37, 211, 102, .14); color: #1fa855; }
.ms-hours, .ms-social-box { margin-top: 20px; }
.ms-root .ms-hours h4, .ms-root .ms-social-box h4 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin-bottom: 8px; }
.ms-hours p { color: var(--ms-text-2); line-height: 1.9; font-size: .98rem; }

.ms-form-wrap { background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: 24px; padding: clamp(22px, 3.6vw, 40px); }
.ms-root .ms-form__title { font-size: 1.6rem; margin-bottom: 22px; }
.ms-form { display: flex; flex-direction: column; gap: 18px; }
.ms-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ms-field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.ms-field > span, .ms-field legend { font-size: .95rem; color: var(--ms-text); padding: 0; margin-bottom: 8px; }
.ms-field > span { margin-bottom: 0; }
.ms-field b { color: var(--ms-accent); font-weight: 400; }
.ms-root .ms-field input, .ms-root .ms-field select, .ms-root .ms-field textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ms-line); background: var(--ms-bg);
	font: inherit; font-size: 1rem; color: var(--ms-text); box-shadow: none; outline: 0; min-height: 50px; margin: 0;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ms-root .ms-field input::placeholder, .ms-root .ms-field textarea::placeholder { color: var(--ms-muted); opacity: 1; }
.ms-root .ms-field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ms-muted) 50%), linear-gradient(135deg, var(--ms-muted) 50%, transparent 50%); background-position: 18px 50%, 23px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.ms-root .ms-field textarea { resize: vertical; min-height: 110px; line-height: 1.8; }
.ms-root .ms-field input:hover, .ms-root .ms-field select:hover, .ms-root .ms-field textarea:hover { border-color: var(--ms-line-2); }
.ms-root .ms-field input:focus, .ms-root .ms-field select:focus, .ms-root .ms-field textarea:focus { border-color: var(--ms-text); background: var(--ms-surface); box-shadow: 0 0 0 4px var(--ms-accent-soft); outline: 0; }
.ms-root .ms-field.has-error input { border-color: #e5484d; }
.ms-field__err { color: #e5484d; font-size: .88rem; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chip { position: relative; cursor: pointer; margin: 0; }
.ms-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ms-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ms-line); font-size: .95rem; color: var(--ms-text-2); transition: background-color .2s, color .2s, border-color .2s, transform .15s; user-select: none; }
.ms-chip:hover span { border-color: var(--ms-line-2); color: var(--ms-text); }
.ms-chip:active span { transform: scale(.96); }
.ms-chip input:checked + span { background: var(--ms-text); color: var(--ms-on-text); border-color: var(--ms-text); }
.ms-chip input:checked + span::before { content: "✓"; font-size: .8em; }
.ms-chip input:focus-visible + span { outline: 2px solid var(--ms-accent); outline-offset: 2px; }
.ms-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ms-form__note { display: inline-flex; gap: 6px; align-items: center; color: var(--ms-muted); font-size: .92rem; }
.ms-form__note .ms-ico { width: 15px; height: 15px; }
.ms-form__status:empty { display: none; }
.ms-form__status { padding: 10px 14px; border-radius: 10px; background: rgba(229, 72, 77, .1); color: #e5484d; font-size: .95rem; }
.ms-form__status.is-ok { background: rgba(34, 197, 94, .12); color: #16a34a; }
.ms-form.is-busy { opacity: .6; pointer-events: none; }
.ms-root .ms-form button[type="submit"] { padding: 12px 26px; background: var(--ms-text); color: var(--ms-on-text); border-radius: 999px; }
.ms-root .ms-form button[type="submit"]:hover { background: var(--ms-accent); color: #fff; }
.ms-form-done { text-align: center; padding: 32px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: ms-fade .5s var(--ms-ease); }
.ms-form-done[hidden] { display: none; }
.ms-form-done__ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ms-accent-soft); color: var(--ms-accent); display: grid; place-items: center; }
.ms-root .ms-form-done h3 { font-size: 1.9rem; }
.ms-form-done p { color: var(--ms-text-2); max-width: 40ch; line-height: 1.85; }

.ms-map { margin-top: 36px; border-radius: 24px; overflow: hidden; height: 380px; border: 1px solid var(--ms-line); background: var(--ms-surface-2); }
.ms-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(.95); transition: filter .5s; }
:root[data-theme="dark"] .ms-map iframe { filter: grayscale(1) invert(.9) hue-rotate(180deg) contrast(.9); }
.ms-map:hover iframe { filter: none; }

/* ---------- CTA ---------------------------------------------------------- */

.ms-cta { padding: 0 0 clamp(56px, 7vw, 96px); }
.ms-cta__box { position: relative; overflow: hidden; border-radius: 28px; background: var(--ms-surface); border: 1px solid var(--ms-line); padding: clamp(48px, 7vw, 96px) clamp(22px, 6vw, 80px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.ms-cta__glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(var(--ms-accent-soft), transparent 65%); top: -380px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.ms-root .ms-cta__title { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.6rem); position: relative; }
.ms-cta .ms-lead { margin: 20px auto 30px; position: relative; }
.ms-cta .ms-actions { justify-content: center; position: relative; }
.ms-cta .ms-eyebrow { position: relative; }
.ms-cta .ms-btn--light { background: var(--ms-text); color: var(--ms-on-text) !important; }
.ms-cta .ms-btn--light:hover { background: var(--ms-accent); color: #fff !important; }
.ms-cta .ms-btn--outline-light { border-color: var(--ms-line-2) !important; color: var(--ms-text) !important; }
.ms-cta .ms-btn--outline-light:hover { border-color: var(--ms-text) !important; }

/* ---------- Page header -------------------------------------------------- */

.ms-pagehead { padding: clamp(28px, 4vw, 64px) 0 clamp(32px, 4vw, 56px); }
.ms-crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--ms-muted); margin-bottom: 22px; flex-wrap: wrap; }
.ms-crumbs a { transition: color .2s; }
.ms-crumbs a:hover { color: var(--ms-accent); }
.ms-pagehead__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.ms-root .ms-pagehead .ms-display { max-width: 20ch; }

/* ---------- Services page ----------------------------------------------- */

.ms-svc { padding-top: 16px; }
.ms-svc__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.ms-svc__nav { position: sticky; top: calc(var(--ms-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px)); }
.ms-svc__navtitle { color: var(--ms-muted); font-size: .92rem; margin-bottom: 10px !important; }
.ms-svc__nav ol { border-inline-start: 1px solid var(--ms-line); }
.ms-svc__nav a { display: flex; gap: 10px; padding: 7px 14px; margin-inline-start: -1px; border-inline-start: 1px solid transparent; font-size: .98rem; color: var(--ms-text-2); transition: color .2s, border-color .2s; line-height: 1.6; }
.ms-svc__nav a span { color: var(--ms-muted); font-size: .85rem; }
.ms-svc__nav a:hover { color: var(--ms-text); }
.ms-svc__nav a.is-active { color: var(--ms-accent); border-inline-start-color: var(--ms-accent); }
.ms-svc__list { display: flex; flex-direction: column; }
.ms-svc__item { padding: clamp(30px, 4vw, 48px) 0; border-top: 1px solid var(--ms-line); scroll-margin-top: calc(var(--ms-header-h) + 30px); }
.ms-svc__item:first-child { border-top: 0; padding-top: 0; }
.ms-svc__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ms-svc__num { font-size: 1rem; color: var(--ms-muted); }
.ms-svc__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ms-accent-soft); color: var(--ms-accent); }
.ms-svc__hook { color: var(--ms-accent); margin-bottom: 4px !important; }
.ms-root .ms-svc__item h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.ms-svc__text { color: var(--ms-text-2); font-size: 1.08rem; line-height: 1.95; max-width: 62ch; margin-bottom: 20px !important; }
.ms-svc__item .ms-tags { margin-bottom: 22px; }

/* ---------- About -------------------------------------------------------- */

.ms-about { padding-top: 16px; }
.ms-about__story { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.ms-about__year { font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--ms-line-2); }
.ms-about__story p { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.75; color: var(--ms-text); }
.ms-vm { margin-bottom: clamp(64px, 8vw, 110px); }

/* ---------- Single work -------------------------------------------------- */

.ms-facts { display: flex; flex-wrap: wrap; margin: 32px 0 0; border-top: 1px solid var(--ms-line); }
.ms-facts > div { padding: 18px 0 0; padding-inline-end: 32px; margin-inline-end: 32px; border-inline-end: 1px solid var(--ms-line); }
.ms-facts > div:last-child { border: 0; }
.ms-facts dt { font-size: .88rem; color: var(--ms-muted); margin-bottom: 4px; font-weight: 400; }
.ms-facts dd { margin: 0; font-size: 1.08rem; color: var(--ms-text); }
.ms-facts dd a { display: inline-flex; gap: 6px; align-items: center; color: var(--ms-accent); }
.ms-facts dd.is-accent { color: var(--ms-accent); font-size: 1.4rem; }
.ms-work-hero { margin: 0 0 48px; border-radius: 24px; overflow: hidden; background: var(--ms-surface-2); }
.ms-work-hero img { width: 100%; }
.ms-prose { max-width: 780px !important; font-size: 1.12rem; line-height: 1.95; padding-bottom: 48px; color: var(--ms-text-2); }
.ms-root .ms-prose p { margin-bottom: 1.2em; }
.ms-root .ms-prose h2 { font-size: 1.9rem; margin: 1.4em 0 .5em; }
.ms-masonry { columns: 3 260px; column-gap: 16px; }
.ms-masonry__item { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--ms-surface-2); }
.ms-masonry__item img { width: 100%; transition: transform .8s var(--ms-ease); }
.ms-masonry__item:hover img { transform: scale(1.03); }
.ms-next { display: block; border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); padding: clamp(44px, 7vw, 88px) 0; margin-bottom: clamp(56px, 7vw, 96px); transition: background-color .3s; }
.ms-next:hover { background: var(--ms-surface); }
.ms-next .ms-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 28px; }
.ms-next small { grid-column: 1 / -1; color: var(--ms-muted); font-size: .95rem; }
.ms-next strong { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.3; color: var(--ms-text); transition: color .3s; }
.ms-next span { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--ms-line-2); display: grid; place-items: center; color: var(--ms-text); transition: transform .5s var(--ms-ease), background-color .3s, color .3s, border-color .3s; }
.ms-next:hover strong { color: var(--ms-accent); }
.ms-next:hover span { transform: rotate(-45deg); background: var(--ms-accent); color: #fff; border-color: var(--ms-accent); }

/* ---------- Article ------------------------------------------------------ */

.ms-article__head { padding-bottom: clamp(24px, 3vw, 36px) !important; }
.ms-article__head .ms-wrap { max-width: 1000px; }
.ms-root .ms-article__title { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.45; margin: 14px 0 16px; color: var(--ms-text); font-weight: 400; }
.ms-root .ms-article__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.9; color: var(--ms-text-2); max-width: 760px; margin: 0 0 22px; }
.ms-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ms-muted); font-size: .92rem; margin: 0 !important; }
.ms-article__cover { margin: 0 0 clamp(36px, 5vw, 64px); border-radius: 24px; overflow: hidden; background: var(--ms-surface-2); aspect-ratio: 16 / 9; }
.ms-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-article__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ms-article__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.ms-toc { border: 1px solid var(--ms-line); border-radius: 18px; padding: 18px 20px; background: var(--ms-surface); }
.ms-toc summary { cursor: pointer; font-weight: 600; color: var(--ms-text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ms-toc summary::-webkit-details-marker { display: none; }
.ms-toc summary::after { content: "+"; color: var(--ms-muted); font-weight: 400; transition: transform .3s; }
.ms-toc[open] summary::after { transform: rotate(45deg); }
.ms-toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.ms-toc li { counter-increment: toc; }
.ms-toc a { display: flex; gap: 10px; padding: 7px 0; font-size: .93rem; line-height: 1.6; color: var(--ms-text-2); transition: color .2s; }
.ms-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ms-muted); font-size: .8rem; padding-top: 3px; min-width: 20px; }
.ms-toc a:hover, .ms-toc a.is-active { color: var(--ms-accent); }
.ms-toc a.is-active::before { color: var(--ms-accent); }
.ms-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ms-muted); font-size: .9rem; }
.ms-share span { margin-inline-end: 4px; }
.ms-share a, .ms-share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ms-line-2); display: grid; place-items: center; color: var(--ms-text); background: transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; padding: 0; }
.ms-share a:hover, .ms-share button:hover, .ms-share button.is-done { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
.ms-article__body.ms-prose { max-width: 760px !important; padding-bottom: clamp(40px, 6vw, 80px); }
.ms-root .ms-prose h2 { scroll-margin-top: 110px; color: var(--ms-text); line-height: 1.5; font-weight: 400; }
.ms-root .ms-prose h3 { font-size: 1.35rem; line-height: 1.6; margin: 1.3em 0 .4em; color: var(--ms-text); font-weight: 600; }
.ms-root .ms-prose ul, .ms-root .ms-prose ol { margin: 0 0 1.3em; padding-inline-start: 1.4em; list-style: disc; }
.ms-root .ms-prose ol { list-style: decimal; }
.ms-root .ms-prose li { margin-bottom: .45em; padding-inline-start: .2em; }
.ms-root .ms-prose li::marker { color: var(--ms-accent); }
.ms-root .ms-prose strong { color: var(--ms-text); font-weight: 600; }
.ms-root .ms-prose a { color: var(--ms-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--ms-accent) 40%, transparent); transition: text-decoration-color .2s; }
.ms-root .ms-prose a:hover { text-decoration-color: var(--ms-accent); }
.ms-tldr { border: 1px solid color-mix(in srgb, var(--ms-accent) 35%, var(--ms-line)); background: var(--ms-accent-soft); border-radius: 18px; padding: 20px 24px; margin: 0 0 1.6em; }
.ms-root .ms-tldr p { margin: 0; color: var(--ms-text); line-height: 1.9; }
.ms-figure { margin: 1.8em 0; }
.ms-figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--ms-line); display: block; }
.ms-figure figcaption { font-size: .9rem; color: var(--ms-muted); margin-top: 10px; text-align: center; }
.ms-faq-block { margin: 2.2em 0 1.4em; }
.ms-faq-block details { border-bottom: 1px solid var(--ms-line); }
.ms-faq-block details:first-of-type { border-top: 1px solid var(--ms-line); }
.ms-faq-block summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ms-text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ms-faq-block summary::-webkit-details-marker { display: none; }
.ms-faq-block summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--ms-accent); transition: transform .3s var(--ms-ease); flex-shrink: 0; }
.ms-faq-block details[open] summary::after { transform: rotate(45deg); }
.ms-root .ms-faq-block details p { margin: 0 0 18px; }
.ms-cta-box { margin-top: 2.4em; border-radius: 22px; padding: clamp(24px, 4vw, 36px); background: var(--ms-text); color: var(--ms-bg); }
.ms-root .ms-cta-box h2 { margin: 0 0 .4em !important; color: var(--ms-bg); font-size: 1.6rem; }
.ms-root .ms-cta-box p { color: color-mix(in srgb, var(--ms-bg) 78%, transparent); margin-bottom: 1em; }
.ms-root .ms-cta-box p:last-child { margin: 0; }
.ms-root .ms-prose a.ms-cta-box__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ms-accent); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 99px; font-weight: 600; transition: transform .2s var(--ms-ease); }
.ms-root .ms-prose a.ms-cta-box__btn:hover { transform: translateY(-1px); }
.ms-article__related { border-top: 1px solid var(--ms-line); }
@media (max-width: 960px) {
	.ms-article__grid { grid-template-columns: 1fr; }
	.ms-article__aside { position: static; }
	.ms-toc:not([open]) { padding-bottom: 18px; }
}
@media (max-width: 640px) {
	.ms-article__cover { border-radius: 16px; }
	.ms-root .ms-prose h2 { font-size: 1.5rem; }
	.ms-article__body.ms-prose { font-size: 1.04rem; }
}

/* ---------- Footer ------------------------------------------------------- */

.ms-footer { background: var(--ms-surface); border-top: 1px solid var(--ms-line); padding-top: clamp(48px, 6vw, 80px); }
.ms-footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--ms-line); }
.ms-footer__kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ms-muted); font-size: .95rem; margin: 0 0 10px; }
.ms-footer .ms-footer__title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.35; margin: 0; color: var(--ms-text); }
.ms-footer__title em { font-style: normal; color: var(--ms-accent); }
.ms-footer__cta-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-footer__wa { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ms-line-2); color: var(--ms-text) !important; transition: border-color .2s, background-color .2s; }
.ms-footer__wa:hover { border-color: #25D366; background: rgba(37, 211, 102, .08); }
.ms-footer__wa .ms-ico { color: #25D366; }

.ms-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); }
.ms-footer__brand p { color: var(--ms-text-2); line-height: 1.9; font-size: .98rem; margin: 16px 0 0; max-width: 40ch; }
.ms-footer h4 { font-size: .95rem; margin: 0 0 14px; color: var(--ms-muted); }
.ms-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-footer ul.ms-socials { flex-direction: row; gap: 6px; }
.ms-footer__col li { margin: 0; }
.ms-footer__col a { color: var(--ms-text-2); font-size: .98rem; line-height: 1.7; transition: color .2s; }
.ms-footer__col a:hover { color: var(--ms-accent); }
.ms-footer__news p { color: var(--ms-text-2); font-size: .95rem; margin: 0 0 12px; }
.ms-footer__hours { color: var(--ms-muted) !important; font-size: .88rem !important; line-height: 1.8; margin-top: 14px !important; }
.ms-news { display: flex; border: 1px solid var(--ms-line); border-radius: 999px; padding: 4px; background: var(--ms-bg); transition: border-color .2s; }
.ms-news:focus-within { border-color: var(--ms-line-2); }
.ms-footer .ms-news input[type="email"], .ms-footer .ms-news input[type="email"]:focus { flex: 1; min-width: 0; background: none; border: 0; outline: 0; box-shadow: none; color: var(--ms-text); padding: 8px 12px; font: inherit; font-size: .95rem; min-height: 0; }
.ms-footer .ms-news button, .ms-footer .ms-news button:hover { width: 40px; height: 40px; border-radius: 50%; background: var(--ms-text); color: var(--ms-on-text); display: grid; place-items: center; flex-shrink: 0; transition: background-color .2s; }
.ms-footer .ms-news button:hover { background: var(--ms-accent); color: #fff; }
.ms-news__status { margin-top: 8px; }
.ms-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; border-top: 1px solid var(--ms-line); font-size: .92rem; color: var(--ms-muted); flex-wrap: wrap; }
.ms-footer__bottom p { margin: 0; }
.ms-totop { display: inline-flex; gap: 6px; align-items: center; color: var(--ms-text-2) !important; transition: color .2s; }
.ms-totop:hover { color: var(--ms-accent) !important; }
.ms-totop .ms-ico { width: 15px; height: 15px; }

.ms-wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 880; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); transition: transform .3s var(--ms-ease); }
.ms-wa-float:hover { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .9); }

/* ---------- Smooth scroll (Lenis) & section dots ------------------------ */

html.ms-lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.ms-slide.ms-section { padding-block: clamp(56px, 6.5vw, 96px); }
.ms-slide .ms-sechead { margin-bottom: clamp(22px, 3vw, 40px); }
.ms-slide .ms-stats { margin-top: clamp(28px, 4vw, 48px); }

.ms-dots { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 850; display: flex; flex-direction: column; gap: 4px; }
.ms-root .ms-dots button { position: relative; display: flex; align-items: center; justify-content: flex-start; width: 28px; height: 22px; }
.ms-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ms-line-2); background: transparent; transition: background-color .25s, border-color .25s, width .35s var(--ms-ease); margin-inline-start: 10px; }
.ms-dots button.is-active::before { background: var(--ms-accent); border-color: var(--ms-accent); width: 18px; border-radius: 99px; margin-inline-start: 0; }
.ms-dots button span { position: absolute; left: 34px; white-space: nowrap; font-size: .85rem; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--ms-surface); border: 1px solid var(--ms-line); color: var(--ms-text); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ms-dots button:hover span, .ms-dots button:focus-visible span { opacity: 1; }

/* ---------- Compare ------------------------------------------------------ */

.ms-compare__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); align-items: stretch; }
.ms-compare__col { border-radius: 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ms-line); }
.ms-compare__col.is-before { background: transparent; }
.ms-compare__col.is-after { background: var(--ms-surface); box-shadow: var(--ms-shadow); border-color: var(--ms-line-2); }
.ms-root .ms-compare__col h3 { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ms-compare__col.is-before h3 { color: var(--ms-muted); }
.ms-compare__col.is-after h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ms-accent)); opacity: .5; }
.ms-compare__col li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ms-line); line-height: 1.7; }
.ms-compare__col li:first-child { border-top: 0; }
.ms-compare__col.is-before li { color: var(--ms-muted); }
.ms-compare__col.is-after li { color: var(--ms-text); }
.ms-compare__ico { flex-shrink: 0; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; }
.ms-compare__col.is-before .ms-compare__ico { border: 1px solid var(--ms-line-2); color: var(--ms-muted); }
.ms-compare__col.is-after .ms-compare__ico { background: var(--ms-accent); color: #fff; }
.ms-compare__vs { display: grid; place-items: center; }
.ms-compare__vs span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ms-line); background: var(--ms-bg); color: var(--ms-muted); font-size: .9rem; }
.ms-compare__q { text-align: center; margin-top: 28px !important; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ms-text); }

/* ---------- Services tabs ------------------------------------------------ */

.ms-tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.ms-tabs__list { display: flex; flex-direction: column; border-top: 1px solid var(--ms-line); }
.ms-root .ms-tabs__list button { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--ms-line); text-align: start; color: var(--ms-text-2); font-size: 1.08rem; line-height: 1.5; position: relative; transition: color .2s; }
.ms-root .ms-tabs__list button:hover { color: var(--ms-text); }
.ms-root .ms-tabs__list button.is-active { color: var(--ms-text); }
.ms-tabs__list button::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; height: 1px; width: 0; background: var(--ms-accent); transition: width .5s var(--ms-ease); }
.ms-tabs__list button.is-active::after { width: 100%; }
.ms-tabs__n { font-size: .85rem; color: var(--ms-muted); min-width: 22px; }
.ms-tabs__list button.is-active .ms-tabs__n { color: var(--ms-accent); }
.ms-tabs__panels { display: grid; position: relative; border-radius: 26px; background: var(--ms-surface); border: 1px solid var(--ms-line); overflow: hidden; }
.ms-tabs__panel { grid-area: 1 / 1; padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; position: relative; opacity: 0; visibility: hidden; transition: opacity .45s var(--ms-ease), visibility .45s; }
.ms-tabs__panel.is-active { opacity: 1; visibility: visible; }
.ms-tabs__big { position: absolute; top: 4px; inset-inline-end: 24px; font-size: clamp(6rem, 12vw, 10rem); line-height: 1; color: var(--ms-surface-2); pointer-events: none; }
.ms-tabs__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ms-accent-soft); color: var(--ms-accent); position: relative; }
.ms-tabs__hook { color: var(--ms-accent); margin-top: 8px !important; position: relative; }
.ms-root .ms-tabs__panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.35; position: relative; }
.ms-tabs__text { color: var(--ms-text-2); font-size: 1.08rem; line-height: 1.9; max-width: 52ch; position: relative; }
.ms-tabs__panel .ms-tags { position: relative; }
.ms-tabs__panel .ms-actions { margin-top: auto; padding-top: 12px; gap: 18px; position: relative; }

/* ---------- Works showcase (horizontal) --------------------------------- */

.ms-show__nav { display: flex; align-items: center; gap: 8px; }
.ms-root .ms-show__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ms-line-2); display: grid; place-items: center; color: var(--ms-text); transition: background-color .2s, border-color .2s, opacity .2s; }
.ms-root .ms-show__btn:hover { background: var(--ms-surface); border-color: var(--ms-text); }
.ms-root .ms-show__btn:disabled { opacity: .35; cursor: default; }
.ms-show__btn[data-show="prev"] .ms-ico { transform: scaleX(-1); }
.ms-show__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px max(var(--ms-gutter), calc((100vw - var(--ms-max)) / 2 + var(--ms-gutter))) 8px; scroll-padding-inline: max(var(--ms-gutter), calc((100vw - var(--ms-max)) / 2 + var(--ms-gutter))); scrollbar-width: none; overscroll-behavior-x: contain; }
.ms-show__track::-webkit-scrollbar { display: none; }
.ms-show__track:focus-visible { outline: none; }
.ms-show__card { flex: 0 0 clamp(280px, 38vw, 520px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.ms-show__media { position: relative; display: block; aspect-ratio: 16/10.5; border-radius: 20px; overflow: hidden; background: var(--ms-surface-2); }
.ms-show__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ms-ease); }
.ms-show__card:hover .ms-show__media img { transform: scale(1.04); }
.ms-show__meta { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline; }
.ms-show__n { grid-row: span 2; color: var(--ms-muted); font-size: .9rem; }
.ms-show__meta strong { font-size: 1.3rem; line-height: 1.5; color: var(--ms-text); transition: color .2s; }
.ms-show__card:hover .ms-show__meta strong { color: var(--ms-accent); }
.ms-show__meta small { color: var(--ms-muted); font-size: .92rem; }
.ms-show__end { flex: 0 0 1px; }

/* ---------- Client logos ------------------------------------------------- */

.ms-clients-wall__count { display: flex; flex-direction: column; align-items: flex-end; }
.ms-clients-wall__count strong { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.1; color: var(--ms-accent); }
.ms-clients-wall__count span:not(.ms-count) { color: var(--ms-muted); }
.ms-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ms-line); border-inline-start: 1px solid var(--ms-line); }
.ms-logos li { border-bottom: 1px solid var(--ms-line); border-inline-end: 1px solid var(--ms-line); }
.ms-logos__item { display: grid; place-items: center; height: clamp(96px, 10vw, 132px); padding: 18px 26px; transition: background-color .3s; }
.ms-logos__item img { width: auto; height: auto; max-width: min(100%, 170px); max-height: clamp(48px, 5.4vw, 72px); object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; mix-blend-mode: multiply; }
.ms-logos__item:hover { background: var(--ms-surface); }
.ms-logos__item:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .ms-logos__item { background: transparent; }
:root[data-theme="dark"] .ms-logos__item img { mix-blend-mode: normal; filter: grayscale(1) invert(1) brightness(1.6); opacity: .6; }
:root[data-theme="dark"] .ms-logos__item:hover { background: #f4f2ee; }
:root[data-theme="dark"] .ms-logos__item:hover img { filter: none; opacity: 1; }

/* ---------- Process as a timeline --------------------------------------- */

.ms-steps { position: relative; }
.ms-step { border-top: 0 !important; padding-top: 0 !important; }
.ms-step::before { display: none; }
.ms-step__num { width: 52px; height: 52px; border-radius: 50%; display: grid !important; place-items: center; border: 1px solid var(--ms-line-2); background: var(--ms-bg); color: var(--ms-text) !important; font-size: 1.05rem !important; margin-bottom: 22px !important; position: relative; z-index: 1; transition: background-color .3s, color .3s, border-color .3s; }
.ms-step:hover .ms-step__num, .ms-step.is-in .ms-step__num { border-color: var(--ms-accent); color: var(--ms-accent) !important; }
.ms-step::after { content: ""; position: absolute; top: 26px; inset-inline-start: 52px; inset-inline-end: 0; height: 1px; background: var(--ms-line); }
.ms-step:last-child::after { display: none; }
.ms-step.is-in::after { background: linear-gradient(270deg, var(--ms-accent), var(--ms-line) 70%); }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1140px) {
	.ms-nav { display: none; }
	.ms-header .ms-burger { display: inline-flex; }
	.ms-header__pill { grid-template-columns: auto 1fr; }
	.ms-header__actions { justify-self: end; }
	.ms-dots { display: none; }
	.ms-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ms-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
	.ms-step:nth-child(4) { padding-inline-start: 0; }
	.ms-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-svc__layout { grid-template-columns: 1fr; }
	.ms-svc__nav { display: none; }
	.ms-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --ms-header-h: 58px; --ms-header-space: 84px; }
	.ms-header { top: calc(10px + var(--wp-admin--admin-bar--height, 0px)); padding-inline: 10px; }
	.ms-header__pill { padding-inline: 16px 6px; }
	.ms-compare__grid, .ms-tabs { grid-template-columns: 1fr; }
	.ms-compare__vs { margin: -6px 0; }
	.ms-tabs__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; border: 0; gap: 6px; }
	.ms-tabs__list::-webkit-scrollbar { display: none; }
	.ms-root .ms-tabs__list button { flex-shrink: 0; border: 1px solid var(--ms-line); border-radius: 999px; padding: 8px 14px; font-size: .95rem; }
	.ms-root .ms-tabs__list button.is-active { background: var(--ms-text); color: var(--ms-on-text); border-color: var(--ms-text); }
	.ms-tabs__list button::after { display: none; }
	.ms-tabs__n { display: none; }
	.ms-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ms-step::after { display: none; }
	.ms-hide-sm { display: none !important; }
	.ms-split, .ms-contact__grid, .ms-contact--page .ms-contact__grid, .ms-hero__grid { grid-template-columns: 1fr; }
	.ms-hero__mosaic { grid-template-rows: repeat(3, clamp(96px, 24vw, 150px)); margin-bottom: 16px; }
	.ms-grid, .ms-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.ms-stat { border-bottom: 1px solid var(--ms-line); padding-bottom: 22px; }
	.ms-spot__card { grid-template-columns: 1fr; }
	.ms-spot__media { aspect-ratio: 16/10; }
	.ms-post.is-big { grid-template-columns: 1fr; }
	.ms-acc__hook { display: none; }
	.ms-root .ms-acc__head { grid-template-columns: 40px minmax(0, 1fr) 44px; }
	.ms-acc__body > div { padding-inline-start: 0; }
	.ms-index__row { grid-template-columns: 40px minmax(0, 1fr) 28px; }
	.ms-index__c, .ms-index__y, .ms-index__preview { display: none; }
	.ms-about__story { grid-template-columns: 1fr; }
	.ms-filter__tools { width: 100%; }
	.ms-search { flex: 1; }
	.ms-root .ms-search input { width: 100%; }
}

@media (max-width: 640px) {
	.ms-root, .ms-header, .ms-footer, .ms-drawer { font-size: 16px; }
	.ms-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-show__card { flex-basis: 82vw; }
	.ms-show__nav .ms-btn { display: none; }
	.ms-grid, .ms-posts, .ms-cards--4, .ms-cards--2, .ms-form__grid, .ms-quotes { grid-template-columns: 1fr; }
	.ms-grid { --mh: 220px; }
	.ms-grid .ms-work.is-wide { grid-column: auto; }
	.ms-steps { grid-template-columns: 1fr; }
	.ms-step { padding-inline: 0; }
	.ms-footer__grid { grid-template-columns: 1fr 1fr; }
	.ms-footer__brand, .ms-footer__news { grid-column: span 2; }
	.ms-footer__bottom { flex-direction: column; text-align: center; }
	.ms-footer__cta-actions { width: 100%; }
	.ms-hero__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ms-hero__proof li { padding-inline-end: 10px; margin-inline-end: 10px; }
	.ms-hero__proof li:last-child { padding: 18px 0 0; }
	.ms-hero__proof strong { font-size: 1.4rem; }
	.ms-hero__proof span { font-size: .8rem; }
	.ms-wa-float { bottom: 14px; inset-inline-end: 14px; width: 48px; height: 48px; }
	.ms-lightbox { grid-template-columns: 44px 1fr 44px; }
	.ms-facts > div { margin-inline-end: 20px; padding-inline-end: 20px; }
	.ms-wstats > div { flex-basis: 45%; border-bottom: 1px solid var(--ms-line); }
	.ms-faq__item p { padding-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ms-js .ms-reveal { opacity: 1; translate: none; }
}

/* =========================================================================
   Glow layer — dark + orange glow, alternating tones, beam hero, map, finder
   ========================================================================= */

/* Tone overrides (forced dark / forced light / inverse of current theme) */
.ms-tone-dark, .ms-header.ms-tone-dark,
:root[data-theme="light"] .ms-inverse, :root[data-theme="light"] .ms-header.ms-inverse {
	--ms-bg: #0E0E11; --ms-surface: #16161A; --ms-surface-2: #1D1D22; --ms-text: #EDECE8; --ms-text-2: #B4B3AE;
	--ms-muted: #8E8D92; --ms-line: #26262C; --ms-line-2: #36363D; --ms-on-text: #0E0E11;
	--ms-shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -24px rgba(0,0,0,.7);
	--ms-accent-soft: color-mix(in srgb, var(--ms-accent) 14%, #0E0E11);
	--ms-ph-l: 20%; --ms-ph-s: 22%;
	color-scheme: dark;
}
:root[data-theme="dark"] .ms-inverse, :root[data-theme="dark"] .ms-header.ms-inverse {
	--ms-bg: #F8F7F4; --ms-surface: #FFFFFF; --ms-surface-2: #F1EFEA; --ms-text: #17171B; --ms-text-2: #47474D;
	--ms-muted: #8B8A8F; --ms-line: #E8E5DF; --ms-line-2: #D7D3CB; --ms-on-text: #F8F7F4;
	--ms-shadow: 0 1px 2px rgba(23,23,27,.04), 0 18px 40px -24px rgba(23,23,27,.18);
	--ms-accent-soft: color-mix(in srgb, var(--ms-accent) 12%, #F8F7F4);
	--ms-ph-l: 90%; --ms-ph-s: 35%;
	color-scheme: light;
}
.ms-tone-dark, .ms-inverse { background-color: var(--ms-bg); color: var(--ms-text); }
.ms-section.ms-inverse + .ms-section, .ms-section + .ms-section.ms-inverse { border-top: 0; }
/* soft orange glow at the top edge of every inverse section */
.ms-inverse { position: relative; isolation: isolate; }
.ms-inverse::before { content: ""; position: absolute; inset: 0 0 auto; height: 260px; z-index: -1; pointer-events: none;
	background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--ms-accent) 22%, transparent), transparent 70%); }
.ms-header .ms-header__pill { transition: background-color .35s var(--ms-ease), border-color .35s, color .35s; }

/* Word-by-word blur reveal for split headings */
.ms-js .ms-sh .ms-w { display: inline-block; opacity: 0; filter: blur(10px); transition: opacity .7s var(--ms-ease), filter .7s var(--ms-ease); transition-delay: calc(var(--w, 0) * 55ms); }
.ms-js .ms-sh.is-in .ms-w { opacity: 1; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .ms-js .ms-sh .ms-w { opacity: 1; filter: none; transition: none; } }

/* Intro loader */
.ms-intro { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #0E0E11; color: #EDECE8; pointer-events: none;
	animation: ms-intro-out .6s var(--ms-ease) 1.15s forwards; }
.ms-intro__logo { width: min(240px, 56vw); opacity: 0; transform: scale(.94); filter: blur(6px); animation: ms-intro-in .8s var(--ms-ease) .1s forwards; }
.ms-intro__logo svg { width: 100%; height: auto; display: block; }
.ms-intro__logo svg path[fill="#FF4A17"] { transform-origin: 1113px 12px; transform: scaleX(0); animation: ms-intro-dash .6s var(--ms-ease) .55s forwards; }
html.ms-intro-seen .ms-intro { display: none; }
@keyframes ms-intro-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes ms-intro-dash { to { transform: scaleX(1); } }
@keyframes ms-intro-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ms-intro { display: none; } }

/* Beam hero */
.ms-hero--beam { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--ms-header-space, 100px)); padding: calc(var(--ms-header-space, 100px) + clamp(36px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px); }
.ms-hero__center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ms-hero--beam .ms-hero__title { max-width: 18ch; margin-inline: auto; }
.ms-hero--beam .ms-lead { max-width: 56ch; margin-inline: auto; margin-bottom: 30px !important; }
.ms-hero--beam .ms-actions { justify-content: center; }
.ms-hero--beam .ms-btn--primary { background: var(--ms-accent); color: #fff !important; border-color: var(--ms-accent) !important; }
.ms-hero--beam .ms-btn--primary:hover { background: var(--ms-text); border-color: var(--ms-text) !important; color: var(--ms-bg) !important; }
.ms-beam { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ms-beam__ray { position: absolute; top: -30%; left: 58%; width: 140px; height: 120%; transform: rotate(38deg); transform-origin: top center;
	background: linear-gradient(to bottom, rgba(255,140,90,0), rgba(255,110,50,.55) 35%, rgba(255,74,23,.15) 70%, transparent);
	filter: blur(28px); opacity: .85; animation: ms-beam 6s ease-in-out infinite alternate; }
.ms-beam__ray.is-2 { left: 63%; width: 26px; filter: blur(6px); opacity: .7; background: linear-gradient(to bottom, transparent, rgba(255,190,150,.8) 30%, rgba(255,74,23,.25) 65%, transparent); animation-duration: 4s; animation-delay: -2s; }
:root[data-theme="light"] .ms-beam__ray { opacity: .5; }
/* living glow under the chip: two drifting halos + a slowly turning light */
.ms-beam__halo { position: absolute; left: 50%; bottom: -14%; width: 1000px; height: 560px; margin-left: -500px;
	background: radial-gradient(closest-side, rgba(255,74,23,.34), rgba(255,74,23,.1) 55%, transparent);
	animation: ms-halo 9s ease-in-out infinite; will-change: transform, opacity; }
.ms-beam__halo.is-2 { width: 640px; height: 420px; margin-left: -320px; bottom: -6%;
	background: radial-gradient(closest-side, rgba(255,150,80,.32), rgba(255,74,23,.06) 60%, transparent); animation: ms-halo-2 7s ease-in-out infinite; }
.ms-beam__spin { position: absolute; left: 50%; bottom: 4%; width: 520px; height: 520px; margin: 0 0 -260px -260px; border-radius: 50%; opacity: .55;
	background: conic-gradient(from 0deg, transparent 0 60%, rgba(255,74,23,.55) 75%, transparent 90%); filter: blur(40px); animation: ms-spin 12s linear infinite; }
:root[data-theme="light"] .ms-beam__halo, :root[data-theme="light"] .ms-beam__spin { opacity: .75; }
[dir="ltr"] .ms-beam__ray { left: 30%; transform: rotate(-38deg); }
[dir="ltr"] .ms-beam__ray.is-2 { left: 34%; }
@keyframes ms-beam { from { opacity: .45; translate: -30px 0; } to { opacity: .95; translate: 30px 0; } }
@keyframes ms-halo { 0%, 100% { transform: translateX(-6%) scale(1); opacity: .75; } 50% { transform: translateX(6%) scale(1.18); opacity: 1; } }
@keyframes ms-halo-2 { 0%, 100% { transform: translateX(10%) scale(.9); opacity: .6; } 50% { transform: translateX(-10%) scale(1.15); opacity: 1; } }
@keyframes ms-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ms-beam__halo, .ms-beam__spin { animation: none; } }

.ms-circuit { position: relative; width: min(1100px, 100%); margin: clamp(28px, 4vw, 48px) auto 0; aspect-ratio: 1200 / 360; }
.ms-circuit > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ms-circuit__line { fill: none; stroke: color-mix(in srgb, var(--ms-text) 16%, transparent); stroke-width: 1.5; }
.ms-circuit__pulse { fill: none; stroke: var(--ms-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 86; stroke-dashoffset: 100;
	filter: drop-shadow(0 0 6px rgba(255,74,23,.9)); animation: ms-pulse 3.2s linear infinite; animation-delay: calc(var(--i) * -.55s); }
@keyframes ms-pulse { to { stroke-dashoffset: 0; } }
.ms-circuit__chip { position: absolute; left: 50%; top: 50%; width: 13.4%; aspect-ratio: 160 / 120; transform: translate(-50%, -50%);
	display: grid; place-items: center; padding: 2.2%; border-radius: 18px; color: var(--ms-text);
	background: linear-gradient(160deg, var(--ms-surface), var(--ms-surface-2)); border: 1px solid var(--ms-line);
	box-shadow: 0 0 0 1px rgba(255,74,23,.25), 0 0 60px -6px rgba(255,74,23,.55); }
.ms-circuit__chip svg { width: 100%; height: auto; }
.ms-circuit__pins { position: absolute; inset: -9px 18%; border-block: 2px dashed color-mix(in srgb, var(--ms-text) 22%, transparent); border-radius: 2px; pointer-events: none; }
.ms-circuit__node { position: absolute; left: var(--x); top: var(--y); width: clamp(34px, 4vw, 48px); aspect-ratio: 1; transform: translate(-50%, -50%);
	display: grid; place-items: center; border-radius: 12px; color: var(--ms-text); background: var(--ms-surface); border: 1px solid var(--ms-line);
	box-shadow: var(--ms-shadow); animation: ms-bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
.ms-circuit__node svg { width: 45%; height: 45%; }
@keyframes ms-bob { 50% { translate: 0 -6px; } }
.ms-hero__proof--center { justify-content: center; margin: clamp(28px, 4vw, 44px) auto 0 !important; width: max-content; max-width: 100%; }
@media (max-width: 640px) {
	.ms-circuit__chip { width: 22%; border-radius: 12px; }
	.ms-circuit__node { width: 30px; border-radius: 9px; }
	.ms-beam__ray { left: 40%; }
	.ms-hero__proof--center { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ms-circuit__pulse, .ms-circuit__node, .ms-beam__ray { animation: none; } }

/* Card glow following the cursor */
.ms-glowcard { position: relative; isolation: isolate; }
.ms-glowcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ms-accent) 14%, transparent), transparent 60%); }
.ms-glowcard:hover::after { opacity: 1; }

/* Saudi map */
.ms-ksa__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ms-ksa__cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px !important; }
.ms-ksa__cities li { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--ms-line-2); font-size: .92rem; color: var(--ms-text-2); }
.ms-ksa__cities li.is-hq { border-color: var(--ms-accent); color: var(--ms-accent); background: var(--ms-accent-soft); }
.ms-ksa__map { position: relative; isolation: isolate; }
.ms-ksa__halo { position: absolute; inset: 6% 4%; z-index: -1; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--ms-accent) 30%, transparent), color-mix(in srgb, var(--ms-accent) 8%, transparent) 60%, transparent); filter: blur(10px); }
.ms-ksa__svg { width: 100%; height: auto; display: block; overflow: visible; }
.ms-ksa__dots { fill: none; stroke: var(--ms-text); stroke-opacity: .55; stroke-width: 3.4; stroke-linecap: round; }
.ms-ksa__arc { fill: none; stroke: var(--ms-accent); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .9; }
.ms-ksa__map.is-in .ms-ksa__arc { animation: ms-arc 1.6s var(--ms-ease) forwards; animation-delay: calc(.4s + var(--i) * .18s); }
@keyframes ms-arc { to { stroke-dashoffset: 0; } }
.ms-ksa__pin { fill: var(--ms-accent); }
.ms-ksa__hq { fill: var(--ms-accent); filter: drop-shadow(0 0 8px var(--ms-accent)); }
.ms-ksa__ring { fill: none; stroke: var(--ms-accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ms-ring 2.4s ease-out infinite; }
.ms-ksa__ring.is-2 { animation-delay: 1.2s; }
@keyframes ms-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
@media (max-width: 900px) { .ms-ksa__grid { grid-template-columns: 1fr; } }

/* Service finder */
.ms-finder__card { position: relative; isolation: isolate; overflow: hidden; max-width: 980px; margin-inline: auto; padding: clamp(28px, 5vw, 56px);
	border-radius: 28px; background: var(--ms-surface); border: 1px solid var(--ms-line); box-shadow: var(--ms-shadow); text-align: center; }
.ms-finder__sky { position: absolute; left: 50%; top: -38%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--ms-accent) 22%, transparent), color-mix(in srgb, #9cc7ff 18%, transparent) 55%, transparent); }
.ms-finder__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ms-accent); color: #fff; margin-bottom: 14px; }
.ms-finder__head .ms-lead { margin-inline: auto; max-width: 48ch; }
.ms-finder__step { margin-top: clamp(22px, 3vw, 32px); }
.ms-finder__label { font-size: .92rem; color: var(--ms-muted); margin-bottom: 12px !important; }
.ms-finder__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ms-root .ms-finder__chips button { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--ms-line-2); background: var(--ms-bg); color: var(--ms-text);
	font: inherit; font-size: .98rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ms-root .ms-finder__chips button:hover { border-color: var(--ms-text); }
.ms-root .ms-finder__chips button[aria-checked="true"] { background: var(--ms-text); border-color: var(--ms-text); color: var(--ms-bg); }
.ms-finder__result { margin-top: clamp(26px, 4vw, 40px); padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--ms-line); }
.ms-finder__picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: start; margin-bottom: 22px; }
.ms-finder__pick { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--ms-line); background: var(--ms-bg);
	transition: border-color .25s; animation: ms-pick .5s var(--ms-ease) both; animation-delay: calc(var(--i) * 80ms); }
.ms-finder__pick:hover { border-color: var(--ms-accent); }
.ms-finder__pick i { font-style: normal; color: var(--ms-accent); }
.ms-finder__pick strong { font-weight: 400; font-size: 1.12rem; color: var(--ms-text); }
.ms-finder__pick span { font-size: .9rem; color: var(--ms-text-2); line-height: 1.7; }
.ms-finder__result .ms-actions { justify-content: center; }
@keyframes ms-pick { from { opacity: 0; filter: blur(6px); } }
@media (max-width: 760px) { .ms-finder__picks { grid-template-columns: 1fr; } }

/* Footer CTA with orange horizon glow */
.ms-footer__cta { position: relative; isolation: isolate; }
.ms-footer__cta::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(1100px, 120%); height: 180px; transform: translateX(-50%); z-index: -1; pointer-events: none;
	background: radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--ms-accent) 38%, transparent), color-mix(in srgb, var(--ms-accent) 10%, transparent) 50%, transparent 75%); }

/* Contact: map card + budget hint */
.ms-field__hint { display: block; font-size: .8rem; line-height: 1.6; color: var(--ms-muted); margin-top: 6px; }
.ms-cmap { position: relative; display: block; margin: 22px 0 16px; padding: 18px 18px 14px; border-radius: 20px; border: 1px solid var(--ms-line); background: var(--ms-surface); overflow: hidden; isolation: isolate; transition: border-color .25s; }
.ms-cmap:hover { border-color: var(--ms-accent); }
.ms-cmap .ms-ksa__map { display: block; max-width: 360px; margin-inline: auto; }
.ms-cmap .ms-ksa__dots { stroke-width: 3; }
.ms-cmap__label { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ms-line); color: var(--ms-text); }
.ms-cmap__label > svg { color: var(--ms-accent); flex-shrink: 0; }
.ms-cmap__label span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ms-cmap__label strong { font-weight: 400; }
.ms-cmap__label small { color: var(--ms-muted); font-size: .85rem; }
.ms-cmap__label em { font-style: normal; font-size: .85rem; color: var(--ms-accent); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ms-contact__side .ms-social-box { margin-top: 16px; }
@media (max-width: 960px) { .ms-contact--page .ms-contact__form { order: -1; } }

/* Articles written in the visual editor (blocks) — same look as the bundled ones */
.ms-prose .is-style-ms-tldr { border: 1px solid color-mix(in srgb, var(--ms-accent) 35%, var(--ms-line)); background: var(--ms-accent-soft); border-radius: 18px; padding: 20px 24px; margin: 0 0 1.6em; }
.ms-root .ms-prose .is-style-ms-tldr p { margin: 0; color: var(--ms-text); line-height: 1.9; }
.ms-prose .wp-block-image { margin: 1.8em 0; }
.ms-prose .wp-block-image img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--ms-line); display: block; }
.ms-prose .wp-block-image figcaption, .ms-prose .wp-element-caption { font-size: .9rem; color: var(--ms-muted); margin-top: 10px; text-align: center; }
.ms-prose .is-style-ms-faq { margin: 2.2em 0 1.4em; }
.ms-prose .is-style-ms-faq details { border-bottom: 1px solid var(--ms-line); margin: 0; }
.ms-prose .is-style-ms-faq details:first-of-type { border-top: 1px solid var(--ms-line); }
.ms-prose .is-style-ms-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ms-text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ms-prose .is-style-ms-faq summary::-webkit-details-marker { display: none; }
.ms-prose .is-style-ms-faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--ms-accent); transition: transform .3s var(--ms-ease); flex-shrink: 0; }
.ms-prose .is-style-ms-faq details[open] summary::after { transform: rotate(45deg); }
.ms-root .ms-prose .is-style-ms-faq details p { margin: 0 0 18px; }
.ms-prose .is-style-ms-cta { margin-top: 2.4em; border-radius: 22px; padding: clamp(24px, 4vw, 36px); background: var(--ms-text); color: var(--ms-bg); }
.ms-root .ms-prose .is-style-ms-cta h2 { margin: 0 0 .4em !important; color: var(--ms-bg); font-size: 1.6rem; }
.ms-root .ms-prose .is-style-ms-cta p { color: color-mix(in srgb, var(--ms-bg) 78%, transparent); margin-bottom: 1em; }
.ms-prose .is-style-ms-cta .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-root .ms-prose .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; background: var(--ms-accent); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 99px; font-weight: 600; transition: transform .2s var(--ms-ease); }
.ms-root .ms-prose .wp-block-button__link:hover { transform: translateY(-1px); }
.ms-prose .wp-block-quote { border-inline-start: 3px solid var(--ms-accent); margin: 1.6em 0; padding: 4px 20px; color: var(--ms-text); }
.ms-prose .wp-block-table table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.ms-prose .wp-block-table th, .ms-prose .wp-block-table td { border: 1px solid var(--ms-line); padding: 10px 12px; text-align: start; }
.ms-prose .wp-block-table th { background: var(--ms-surface-2); color: var(--ms-text); }
.ms-prose .wp-block-embed { margin: 1.8em 0; }
.ms-prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 18px; }

/* Project videos */
.ms-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.ms-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--ms-line); background: #0E0E11 center / cover no-repeat; padding: 0; cursor: pointer; display: block; width: 100%; }
.ms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-video > span { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--ms-accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(255,74,23,.7); transition: transform .25s var(--ms-ease); }
.ms-video:hover > span { transform: scale(1.08); }

/* Project cards without their own page (2.3) */
.ms-work__media.is-gallery, .ms-show__card.is-gallery, .ms-spot__card.is-gallery, .ms-index__row.is-gallery { cursor: zoom-in; }
.ms-work__media.is-static, .ms-show__card.is-static, .ms-spot__card.is-static, .ms-index__row.is-static, .ms-hero__tile.is-static, div.ms-strip__item { cursor: default; }
.ms-work:has(.is-static):hover .ms-work__media img, .ms-show__card.is-static:hover .ms-show__media img { transform: none; }
.ms-show__card.is-static:hover .ms-show__meta strong { color: inherit; }
.ms-index__row.is-static:hover { padding-inline: 0; }
.ms-work__media.is-gallery:focus-visible, .ms-show__card.is-gallery:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 3px; }

/* ---------- Rich project page (2.4) ------------------------------------- */
.ms-wk__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.9; color: var(--ms-text-2); max-width: 760px; margin: 18px 0 0; }
.ms-wk-cover { position: relative; margin: 0 0 clamp(40px, 6vw, 72px); border-radius: 24px; overflow: hidden; background: var(--ms-surface-2); display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); isolation: isolate; }
.ms-wk-cover::before { content: ""; position: absolute; inset: -40px; background: var(--wk-bg) center / cover no-repeat; filter: blur(40px) saturate(1.2); opacity: .55; z-index: -1; }
.ms-wk-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(60vh, 520px); border-radius: 14px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.45); }

.ms-wk-overview { padding-bottom: clamp(32px, 5vw, 64px); }
.ms-wk-overview__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ms-wk-overview__grid.is-solo { grid-template-columns: 1fr; }
.ms-root .ms-wk-about h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 14px; color: var(--ms-text); font-weight: 500; }
.ms-wk-about__text { font-size: 1.1rem; line-height: 2; color: var(--ms-text-2); }
.ms-root .ms-wk-about__text p { margin: 0 0 1em; }
.ms-wk-facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--ms-line); border: 1px solid var(--ms-line); border-radius: 20px; overflow: hidden; }
.ms-wk-facts > div { flex: 1 1 130px; background: var(--ms-surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ms-wk-facts > div.is-full { flex-basis: 100%; }
.ms-wk-facts span { font-size: .85rem; color: var(--ms-muted); }
.ms-wk-facts strong { font-weight: 500; color: var(--ms-text); font-size: 1.05rem; }
.ms-wk-facts .is-result strong { color: var(--ms-accent); font-size: 1.5rem; }
.ms-wk-facts > .ms-btn { flex: 1 1 100%; border-radius: 0; justify-content: center; padding: 16px; }
.ms-root .ms-wk-chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ms-wk-chips li { font-size: .88rem; padding: 4px 12px; border-radius: 99px; background: var(--ms-surface-2); color: var(--ms-text-2); }
.ms-wk-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.ms-wk-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--ms-line-2); color: var(--ms-text); font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; }
.ms-wk-toc a small { color: var(--ms-accent); font-variant-numeric: tabular-nums; }
.ms-wk-toc a:hover { background: var(--ms-text); color: var(--ms-on-text); border-color: var(--ms-text); }

.ms-wk-sec { padding: clamp(44px, 6vw, 84px) 0; border-top: 1px solid var(--ms-line); scroll-margin-top: 90px; content-visibility: visible !important; }
.ms-wk-sec__head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px clamp(16px, 3vw, 36px); align-items: start; margin-bottom: clamp(24px, 3.5vw, 40px); }
.ms-wk-sec__num { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--ms-accent); font-variant-numeric: tabular-nums; opacity: .9; }
.ms-wk-sec__type { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ms-muted); }
.ms-root .ms-wk-sec__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 4px 0 6px; color: var(--ms-text); font-weight: 500; line-height: 1.35; }
.ms-root .ms-wk-sec__head p { margin: 0; color: var(--ms-text-2); line-height: 1.9; max-width: 680px; }
.ms-wk-sec__head .ms-btn { align-self: center; white-space: nowrap; }

/* Social posts: tidy grid, every design the same size */
.ms-wk-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.ms-wk-posts[data-tall] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ms-wk-post { display: block; aspect-ratio: var(--wk-ar, 0.8); border-radius: 14px; overflow: hidden; background: var(--ms-surface-2); cursor: zoom-in; }
.ms-wk-post img, .ms-wk-tile img { width: 100%; height: 100%; display: block; transition: transform .8s var(--ms-ease); }
.ms-wk-post img { object-fit: cover; }
.ms-wk-post:hover img { transform: scale(1.04); }
.ms-wk-post.is-fit img { object-fit: contain; }

/* Graphics: bento, artwork contained on a soft tile */
.ms-wk-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.ms-wk-tile { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--ms-surface-2); padding: 7%; cursor: zoom-in; }
.ms-wk-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ms-wk-tile:nth-child(3n+4):last-child { grid-column: span 3; aspect-ratio: 3 / 1; }
.ms-wk-tile:nth-child(3n+5):last-child { grid-column: span 2; aspect-ratio: auto; }
.ms-wk-tile:first-child:last-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 8; }
.ms-wk-bento:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.ms-wk-bento:has(> :nth-child(2):last-child) > .ms-wk-tile { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.ms-wk-tile img { object-fit: contain; }
.ms-wk-tile:hover img { transform: scale(1.03); }

/* Website: browser & phone frames, long screenshots scroll on hover */
.ms-wk-web { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); justify-content: center; align-items: flex-start; }
.ms-wk-browser { flex: 1 1 100%; max-width: 980px; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--ms-line-2); background: var(--ms-surface); box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); cursor: zoom-in; }
.ms-wk-browser__bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--ms-line); background: var(--ms-surface-2); }
.ms-wk-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ms-line-2); }
.ms-wk-browser .ms-wk-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ms-wk-phone { flex: 0 1 260px; position: relative; display: block; border-radius: 36px; padding: 10px; background: #111114; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); cursor: zoom-in; }
.ms-wk-phone__notch { position: absolute; top: 16px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 99px; background: #111114; z-index: 2; }
.ms-wk-phone .ms-wk-shot { display: block; aspect-ratio: 9 / 19.5; border-radius: 28px; overflow: hidden; background: #fff; }
.ms-wk-shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: object-position 7s linear; }
.ms-wk-browser:hover .ms-wk-shot img, .ms-wk-phone:hover .ms-wk-shot img { object-position: bottom center; }

/* Uploaded videos */
.ms-wk-videos { display: grid; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(16px, 2vw, 24px); }
.ms-wk-posts + .ms-wk-videos, .ms-wk-bento + .ms-wk-videos, .ms-wk-web + .ms-wk-videos { margin-top: clamp(24px, 3vw, 40px); }
.ms-wk-videos.is-tall { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 10px), 230px), 1fr)); }
.ms-wk-videos.is-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.ms-wk-video { margin: 0; border-radius: 18px; overflow: hidden; background: #0E0E11; aspect-ratio: 16 / 9; }
.ms-wk-videos.is-tall .ms-wk-video { aspect-ratio: 9 / 16; }
.ms-wk-videos.is-tall .ms-wk-video[style] { max-height: 640px; }
.ms-wk-video video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0E0E11; }

@media (max-width: 1100px) { .ms-wk-posts, .ms-wk-posts[data-tall] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.ms-wk-overview__grid { grid-template-columns: 1fr; }
	.ms-wk-sec__head { grid-template-columns: auto 1fr; }
	.ms-wk-sec__head .ms-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 700px) {
	.ms-wk-posts, .ms-wk-posts[data-tall] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-wk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-wk-bento > .ms-wk-tile, .ms-wk-bento > .ms-wk-tile:last-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
	.ms-wk-bento > .ms-wk-tile:first-child, .ms-wk-bento > .ms-wk-tile:nth-child(2n+2):last-child { grid-column: 1 / -1; }
	.ms-wk-phone { flex-basis: calc(50% - 10px); border-radius: 26px; padding: 7px; }
	.ms-wk-phone .ms-wk-shot { border-radius: 20px; }
	.ms-wk-phone__notch { width: 46px; height: 12px; margin-left: -23px; top: 12px; }
	.ms-wk-cover img { max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { .ms-wk-shot img { transition: none; } }

/* Services ↔ projects (2.4) */
.ms-svc__works { margin: 22px 0 18px; }
.ms-root .ms-svc__works > p { margin: 0 0 10px; font-size: .9rem; color: var(--ms-muted); }
.ms-svc__wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ms-svc__w { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--ms-surface-2); }
.ms-svc__w img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ms-ease); }
.ms-svc__w span { position: absolute; inset: auto 0 0; padding: 26px 10px 8px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.ms-svc__w:hover img { transform: scale(1.05); }
.ms-svc__w:hover span, .ms-svc__w:focus-visible span { opacity: 1; }
.ms-svc__w.is-gallery { cursor: zoom-in; }
.ms-root .ms-wk-chips a { color: inherit; }
.ms-wk-chips li:has(a):hover { background: var(--ms-accent); color: #fff; }
@media (max-width: 700px) { .ms-svc__wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-svc__w span { opacity: 1; } }

/* Service boxes: SOSTAC letters, SEO & GEO (2.6) */
.ms-points__word { margin: 18px 0 4px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; font-weight: 700; letter-spacing: .14em; color: var(--ms-accent); font-family: "IBM Plex Sans", system-ui, sans-serif; }
.ms-root .ms-points { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-points li { position: relative; padding: 16px 16px 14px; border: 1px solid var(--ms-line-2); border-radius: 16px; background: var(--ms-surface); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .3s; }
.ms-points li:hover { border-color: var(--ms-accent); transform: translateY(-2px); }
.ms-points__top { display: flex; align-items: center; gap: 10px; }
.ms-points__top em { font-style: normal; font-size: .82rem; letter-spacing: .04em; color: var(--ms-muted); font-family: "IBM Plex Sans", system-ui, sans-serif; }
.ms-points__k { align-self: flex-start; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--ms-surface-2); color: var(--ms-text); font-family: "IBM Plex Sans", system-ui, sans-serif; }
.ms-points.is-letters .ms-points__k { font-size: 1.3rem; background: var(--ms-accent); color: #fff; }
.ms-points strong { font-weight: 600; color: var(--ms-text); font-size: 1rem; line-height: 1.5; }
.ms-root .ms-points p { margin: 0; font-size: .9rem; line-height: 1.8; color: var(--ms-text-2); }
.ms-svc__item .ms-points, .ms-acc__body .ms-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ms-root .ms-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ms-root .ms-points, .ms-svc__item .ms-points { grid-template-columns: 1fr; } }

.ms-points.is-short li { padding: 12px 14px; gap: 4px; }
.ms-points.is-short .ms-points__k { min-width: 32px; height: 32px; }
.ms-points.is-short.is-letters .ms-points__k { font-size: 1.1rem; }
.ms-root .ms-points.is-short p { font-size: .85rem; line-height: 1.6; }
.ms-points.is-detail li { padding: 20px 20px 18px; }

/* Home tabs: boxes are titles only */
.ms-points.is-compact { gap: 8px; margin: 14px 0 18px; }
.ms-points.is-compact li { padding: 10px 12px; flex-direction: row; align-items: center; gap: 10px; }
.ms-points.is-compact .ms-points__top { gap: 0; }
.ms-points.is-compact .ms-points__top em { display: none; }
.ms-points.is-compact strong { font-size: .92rem; font-weight: 500; }
.ms-tabs .ms-points__word { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 0; }
@media (max-width: 600px) { .ms-root .ms-points.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
