/* =====================================================================
   mizan-v2 — "Dimensions"
   Every section enters in 3D depth and settles flat (2D) with the scroll.
   Motion reads two variables written by motion.js on each .mz-sec:
     --pi  0→1  entering (1 = flat, at rest)
     --po  0→1  leaving through the top
   Scaled by --mz-k (intensity: 0 off … 1 full). Without JS, or with
   reduced motion, --pi stays 1 and --po 0 → a plain, flat page.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --mz-accent: #6d4aff;
    --mz-accent-2: #a855f7;
    --mz-mint: #2dd4bf;
    --mz-navy: #1e1b4b;
    --mz-btn-from: var(--mz-accent);
    --mz-btn-to: var(--mz-accent-2);
    --mz-btn-text: #fff;
    --mz-price-accent: var(--mz-accent);
    --mz-price-feat-from: var(--mz-accent);
    --mz-price-feat-to: var(--mz-navy);
    --mz-price-feat-text: #fff;
    --mz-k: .75;
    --mz-persp: 1400px;
    --mz-radius: 22px;
    --mz-wrap: 1180px;
    --mz-font-ar: 'Tajawal';
    --mz-ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="light"] {
    color-scheme: light;
    --mz-bg: #f6f5ff;
    --mz-surface: #ffffff;
    --mz-surface-2: #efedfc;
    --mz-text: #26234a;
    --mz-muted: #625f84;
    --mz-heading: #16133d;
    --mz-border: rgba(45, 34, 130, .12);
    --mz-card: rgba(255, 255, 255, .78);
    --mz-header: rgba(255, 255, 255, .72);
    --mz-footer: #15123a;
    --mz-footer-text: #d8d5f4;
    --mz-shadow: 0 30px 60px -32px rgba(45, 34, 130, .38);
    --mz-glow: rgba(109, 74, 255, .16);
    --mz-grid-line: rgba(45, 34, 130, .09);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --mz-bg: #0a0920;
    --mz-surface: #131133;
    --mz-surface-2: #1b1843;
    --mz-text: #e6e4fb;
    --mz-muted: #a6a2cb;
    --mz-heading: #ffffff;
    --mz-border: rgba(255, 255, 255, .1);
    --mz-card: rgba(30, 26, 76, .62);
    --mz-header: rgba(10, 9, 32, .62);
    --mz-footer: #07061a;
    --mz-footer-text: #b9b5dd;
    --mz-shadow: 0 34px 70px -30px rgba(0, 0, 0, .75);
    --mz-glow: rgba(139, 110, 255, .22);
    --mz-grid-line: rgba(160, 150, 255, .1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mz {
    margin: 0;
    background: var(--mz-bg);
    color: var(--mz-text);
    font: 400 16px/1.7 var(--mz-font-ar), 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
body.mz.lang-en { font-family: 'Plus Jakarta Sans', var(--mz-font-ar), system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--mz-heading); line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mz-accent); outline-offset: 3px; border-radius: 8px; }
.mz-wrap { width: min(var(--mz-wrap), 100% - 32px); margin-inline: auto; }
.mz-wrap--narrow { --mz-wrap: 860px; }
.mz-center { text-align: center; margin-top: 34px; }
.mz-row { display: flex; gap: 10px; align-items: center; }
.mz-row--wrap { flex-wrap: wrap; }
.mz-hide-sm { }
@media (max-width: 760px) { .mz-hide-sm { display: none !important; } }

/* ---------- Backdrop: soft blobs + a floor grid that lies down as you scroll ---------- */
.mz-backdrop { position: fixed; inset: -10vh 0 -30vh; z-index: -1; pointer-events: none; overflow: hidden; perspective: 900px; }
/* Shapes from the «الخلفية» settings: position/size/colour/rotation per shape
   (inline vars), strength + softness for all of them (--mz-bg-o / --mz-bg-b). */
.mz-blob { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c);
    opacity: var(--mz-bg-o, .24); filter: blur(var(--mz-bg-b, 80px)); border-radius: 50%; transform: rotate(var(--r, 0deg));
    will-change: transform; }   /* own layer: drifting moves it, never re-blurs the page */
.mz-backdrop { contain: strict; }
.mz-blob--square { border-radius: 24%; }
.mz-blob--diamond { border-radius: 14%; }
.mz-blob--capsule { height: calc(var(--s) * .42); border-radius: 999px; }
.mz-blob--ring { background: transparent; border: calc(var(--s) * .1) solid var(--c); }
.mz-blob--blob { border-radius: 43% 57% 62% 38% / 45% 38% 62% 55%; }
/* Fill: one colour, a gradient into the next colour, or a lit sphere. */
.mz-fill-gradient .mz-blob:not(.mz-blob--ring) { background: linear-gradient(150deg, var(--c), var(--c2)); }
.mz-fill-sphere .mz-blob:not(.mz-blob--ring) { background: radial-gradient(circle at 32% 28%, var(--c2), var(--c) 68%); }
/* Small marks (dots, rings, squiggles…) — crisp, never blurred. */
.mz-mark { position: absolute; left: var(--x); top: var(--y); color: var(--mz-heading); opacity: var(--mz-mark-o, .35); pointer-events: none; }
.mz-mark svg { display: block; width: 100%; height: 100%; }
.mz-mark--dots { width: 120px; height: 52px; background: radial-gradient(currentColor 2.6px, transparent 3px) 0 0 / 18px 18px; }
.mz-mark--dotfield { width: min(9vw, 170px); height: 22vh; background: radial-gradient(currentColor 1.6px, transparent 2px) 0 0 / 16px 16px;
    -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.mz-mark--ring { width: 22px; height: 22px; border: 2.6px solid currentColor; border-radius: 50%; }
.mz-mark--squiggle { width: 62px; height: 18px; transform: rotate(-24deg); }
.mz-mark--chevron, .mz-mark--cross, .mz-mark--corner { width: 22px; height: 22px; }
.mz-bg-motion .mz-blob { animation: mz-drift var(--d, 28s) ease-in-out infinite alternate; }
@keyframes mz-drift {
    from { transform: rotate(var(--r, 0deg)); }
    to { transform: translate3d(6vw, 4vh, 0) rotate(calc(var(--r, 0deg) + 24deg)) scale(1.12); }
}
.mz-floor { display: none; position: absolute; left: 50%; bottom: 0; width: 240vw; height: 120vh; transform: translateX(-50%) rotateX(64deg); transform-origin: 50% 100%;
    background-image: linear-gradient(var(--mz-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--mz-grid-line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.mz-bg-grid .mz-floor { display: block; }
.mz-bg-plain .mz-blob { display: none; }

/* ---------- Progress + preview flag ---------- */
.mz-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.mz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--mz-accent), var(--mz-accent-2), var(--mz-mint)); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .mz-progress span { transform-origin: 100% 50%; }
.mz-preview-flag { position: fixed; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 70; background: #111; color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); white-space: nowrap; }
[dir="rtl"] .mz-preview-flag { transform: translateX(50%); }

/* ---------- Buttons, chips, pills ---------- */
.mz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform .25s var(--mz-ease), box-shadow .25s, background .25s; }
.mz-btn:hover { transform: translateY(-2px); }
.mz-btn--primary, .mz-btn--mint { background: linear-gradient(135deg, var(--mz-btn-from), var(--mz-btn-to)); color: var(--mz-btn-text); box-shadow: 0 14px 30px -12px var(--mz-accent); }
.mz-btn--mint { background: linear-gradient(135deg, var(--mz-mint), #14b8a6); color: #042f2e; box-shadow: 0 14px 30px -12px var(--mz-mint); }
.mz-btn--ghost { background: var(--mz-card); color: var(--mz-heading); border-color: var(--mz-border); backdrop-filter: blur(10px); }
.mz-btn--outline { background: transparent; color: var(--mz-heading); border-color: currentColor; }
.mz-btn--light { background: #fff; color: var(--mz-navy); }
.mz-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.mz-btn--block { width: 100%; }
.mz-btn[disabled] { opacity: .6; pointer-events: none; }
.mz-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mz-border); background: var(--mz-card); color: var(--mz-heading); font: 700 13px/1 inherit; font-family: inherit; cursor: pointer; }
.mz-chip--icon { width: 40px; padding: 0; font-size: 20px; }
.mz-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mz-surface-2); color: var(--mz-text); border: 1px solid var(--mz-border); font-family: inherit; cursor: default; }
button.mz-pill { cursor: pointer; }
button.mz-pill.is-active { background: var(--gc, var(--mz-accent)); border-color: transparent; color: #fff; }
.mz-link { display: inline-flex; gap: 6px; font-weight: 700; color: var(--mz-accent); font-size: 14px; }
html[data-theme="dark"] .mz-link { color: #b7a6ff; }
.mz-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--sb-hl, var(--mz-accent)) 14%, transparent); color: var(--sb-hl, var(--mz-accent)); }
.mz-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--mz-muted); }
.mz-empty { text-align: center; color: var(--mz-muted); }
.mz-lead { color: var(--mz-muted); }

/* ---------- Cards ---------- */
.mz-card { position: relative; background: var(--mz-surface); border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: 26px; box-shadow: var(--mz-shadow); }
.mz-glass .mz-card { background: var(--mz-card); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
a.mz-card, .mz-card[role="button"] { transition: border-color .3s, box-shadow .3s; cursor: pointer; }
a.mz-card:hover, .mz-card[role="button"]:hover { border-color: color-mix(in srgb, var(--mz-accent) 45%, transparent); box-shadow: 0 30px 60px -28px var(--mz-accent); }
.mz-grid { display: grid; gap: 22px; }
.mz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mz-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.mz-grid--feats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mz-grid--plans { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
@media (max-width: 760px) { .mz-grid--2 { grid-template-columns: 1fr; } }
/* Balanced rows (mz_flow_attrs): column count chosen for the number of cards,
   and any short last row sits centred instead of hugging one side. */
.mz-flow { --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.mz-flow > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (max-width: 1100px) { .mz-flow > * { flex-basis: calc((100% - (var(--cols-md) - 1) * var(--gap)) / var(--cols-md)); } }
@media (max-width: 680px) { .mz-flow > * { flex-basis: 100%; } }
.mz-flow--feats { --gap: 16px; }

/* ---------- Header ---------- */
.mz-header { position: fixed; top: 10px; inset-inline: 0; z-index: 50; pointer-events: none; }
.mz-header__bar { pointer-events: auto; width: min(1760px, 100% - 20px); margin-inline: auto; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 14px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
[dir="rtl"] .mz-header__bar { padding: 8px 14px 8px 10px; }
/* Always a frosted bar: over a busy custom background the links must stay readable. */
.mz-header__bar { background: color-mix(in srgb, var(--mz-header) 70%, transparent); border-color: var(--mz-border); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.mz-header.is-scrolled .mz-header__bar, body.mz-nav-open .mz-header__bar { background: var(--mz-header); border-color: var(--mz-border); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 16px 40px -24px rgba(0,0,0,.35); }
.mz-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--mz-heading); font-size: 17px; white-space: nowrap; flex-shrink: 0; }
.mz-header .mz-btn, .mz-header .mz-chip { white-space: nowrap; flex-shrink: 0; }
.mz-brand img { width: 36px; height: 36px; object-fit: contain; }
.mz-nav { display: flex; gap: 2px; margin-inline: auto; align-items: center; min-width: 0; }
.mz-nav__item { position: relative; }
.mz-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--mz-muted); white-space: nowrap; transition: color .2s, background .2s; }
.mz-nav a:hover, .mz-nav a.is-active { color: var(--mz-heading); background: var(--mz-surface-2); }
.mz-nav__sub { position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; padding: 8px; border-radius: 14px; background: var(--mz-surface); border: 1px solid var(--mz-border); box-shadow: var(--mz-shadow); display: none; flex-direction: column; }
.mz-nav__item:hover .mz-nav__sub, .mz-nav__item:focus-within .mz-nav__sub { display: flex; }
.mz-header__tools { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.mz-nav + .mz-header__tools { margin-inline-start: 0; }
html[data-theme="light"] .mz-ic-moon, html[data-theme="dark"] .mz-ic-sun { display: none; }
.mz-burger { display: none; flex-direction: column; gap: 4px; }
.mz-burger span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
body.mz-nav-open .mz-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.mz-nav-open .mz-burger span:nth-child(2) { opacity: 0; }
body.mz-nav-open .mz-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Tight: the first step when the links don't fit — less padding, a bit smaller. */
.mz-header.is-tight .mz-nav { gap: 0; }
.mz-header.is-tight .mz-nav a { padding: 7px 8px; font-size: 13px; }
.mz-header.is-tight .mz-header__bar { gap: 10px; }
/* Burger mode: on small screens, and whenever the links don't fit beside the
   brand (theme.js adds .is-compact after measuring — the number of nav items
   comes from the admin, so no fixed breakpoint can know it). */
.mz-header.is-compact .mz-burger { display: inline-flex; }
.mz-header.is-compact .mz-nav { position: fixed; inset: 76px 10px auto; max-height: calc(100vh - 96px); overflow: auto; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 18px; background: var(--mz-surface); border: 1px solid var(--mz-border); box-shadow: var(--mz-shadow);
    opacity: 0; transform: perspective(900px) rotateX(-18deg) translateY(-10px); transform-origin: 50% 0; pointer-events: none; transition: opacity .3s, transform .35s var(--mz-ease); }
.mz-header.is-compact .mz-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mz-header.is-compact .mz-nav a { width: 100%; font-size: 16px; padding: 12px 14px; }
.mz-header.is-compact .mz-nav__sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 12px; background: transparent; }
@media (max-width: 1020px) {
    .mz-burger { display: inline-flex; }
    .mz-nav { position: fixed; inset: 76px 10px auto; max-height: calc(100vh - 96px); overflow: auto; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 18px; background: var(--mz-surface); border: 1px solid var(--mz-border); box-shadow: var(--mz-shadow);
        opacity: 0; transform: perspective(900px) rotateX(-18deg) translateY(-10px); transform-origin: 50% 0; pointer-events: none; transition: opacity .3s, transform .35s var(--mz-ease); }
    .mz-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .mz-nav a { width: 100%; font-size: 16px; padding: 12px 14px; }
    .mz-nav__sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 12px; background: transparent; }
}

/* ---------- Section rhythm ---------- */
.mz-main { position: relative; }
.mz-sec { position: relative; padding: clamp(52px, 7vw, 96px) 0; overflow-x: clip; }
.mz-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); }
.mz-head h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.01em; }
.mz-head p { color: var(--mz-muted); font-size: clamp(16px, 1.4vw, 18px); margin-top: 12px; }
.mz-num { color: var(--mz-accent); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .mz-num { color: #b7a6ff; }

/* ---------- Hero ---------- */
.mz-hero { padding: 0; }
.mz-hero__inner { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 110px 0 60px; }
/* Split layouts are physical, as on the classic page: "split-left" puts the
   image on the LEFT and "split-right" on the RIGHT, in Arabic and English alike. */
.mz-hero--split-left .mz-hero__inner, .mz-hero--split-right .mz-hero__inner { direction: ltr; }
.mz-hero--split-left .mz-hero__scene { order: -1; }
[dir="rtl"] .mz-hero--split-left .mz-hero__copy, [dir="rtl"] .mz-hero--split-right .mz-hero__copy { direction: rtl; }
/* Logo: the admin's sizes win exactly (inline style); unset → a sensible default. */
.mz-hero__brand { display: block; margin-bottom: 18px; }
.mz-hero__brand[data-align="start"] { text-align: start; }
.mz-hero__brand[data-align="center"] { text-align: center; }
.mz-hero__brand[data-align="end"] { text-align: end; }
.mz-hero__brand .mz-hero__logo { display: inline-block; width: auto; height: auto; margin: 0; }
.mz-hero__logo:not(.is-sized) { max-height: min(96px, 22vh); max-width: 100%; }
.mz-hero__brand--beside { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mz-hero__brand--beside[data-align="center"] { justify-content: center; }
.mz-hero__brand--beside[data-align="end"] { justify-content: flex-end; }
.mz-hero__brand--beside .mz-hero__title { margin: 0; }
/* One real screenshot: shown alone, on a soft platform. */
.mz-rig--solo .mz-panel--main { inset: 0; }
.mz-panel--deck .mz-panel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.mz-panel--deck .mz-panel__slide.is-on { opacity: 1; }
.mz-panel--deck .mz-panel__slide img { width: 100%; height: 100%; }
.mz-hero__scene:has(.mz-rig--solo) { --ar: 1.3333; }
.mz-hero__platform { position: absolute; left: 8%; right: 8%; bottom: -7%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mz-accent) 45%, transparent), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }
.mz-hero--centered .mz-hero__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; text-align: center; justify-items: center; align-content: center; align-content: safe center; gap: 22px; padding: 104px 0 28px; }
/* Hero subtitle: solid text colour — the muted grey washed out over custom backgrounds. */
.mz-hero .mz-hero__sub { color: color-mix(in srgb, var(--mz-text) 82%, var(--mz-muted)); }
.mz-hero--centered .mz-hero__ctas { justify-content: center; margin-top: 22px; }
/* Centred: the scene takes whatever height is left under the copy, so the
   whole hero fits one screen whatever the image's shape (--ar = its ratio). */
.mz-hero--centered .mz-hero__scene { width: min(1040px, 100%, calc((100vh - 500px) * var(--ar))); min-width: min(380px, 100%); }
.mz-hero--centered .mz-hero__title { font-size: clamp(36px, 5vw, 64px); }
.mz-hero__title { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.02em; background: linear-gradient(120deg, var(--mz-heading) 35%, var(--mz-accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.mz-hero__sub { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); color: var(--mz-muted); max-width: 620px; }
.mz-hero--centered .mz-hero__sub { margin-inline: auto; }
.mz-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mz-hero__copy { position: relative; z-index: 2; }
.mz-hero__scene { z-index: 1; margin-top: 10px; position: relative; perspective: var(--mz-persp); perspective-origin: 50% 40%; --ar: 1.4545; aspect-ratio: var(--ar); width: 100%; }
.mz-rig { position: absolute; inset: 0; transform-style: preserve-3d; --mx: 0; --my: 0; }
.mz-panel { position: absolute; margin: 0; border-radius: calc(var(--mz-radius) - 4px); overflow: hidden; background: var(--mz-surface); border: 1px solid var(--mz-border); box-shadow: 0 40px 80px -40px rgba(20, 10, 80, .55); }
.mz-panel img { width: 100%; height: 100%; }
.mz-panel--main { inset: 6% 9% 6% 9%; }
.mz-panel--s1 { width: 30%; height: 36%; top: 14%; inset-inline-start: 0; }
.mz-panel--s2 { width: 30%; height: 34%; bottom: 0; inset-inline-end: 0; }
.mz-panel--s3 { width: 18%; aspect-ratio: 1; top: 10%; inset-inline-end: 3%; }
/* Mock UI (when the hero has no slides) */
.mz-mock { padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--mz-accent); }
.mz-mock__bar { display: flex; gap: 6px; align-items: center; color: var(--mz-muted); font-size: 13px; font-weight: 700; }
.mz-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mz-surface-2); }
.mz-mock__bar span { margin-inline-start: 8px; }
.mz-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mz-mock__kpis div { background: var(--mz-surface-2); border-radius: 12px; padding: 12px; }
.mz-mock__kpis b { display: block; font-size: clamp(16px, 2vw, 24px); }
.mz-mock__kpis small { color: var(--mz-muted); font-size: 12px; }
.mz-mock__chart { flex: 1; width: 100%; min-height: 60px; }
.mz-mock--list { justify-content: center; }
.mz-mock__soft { background: color-mix(in srgb, var(--mz-accent) 14%, var(--mz-surface)) !important; color: var(--mz-accent) !important; }
.mz-mock__row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--mz-heading); }
.mz-mock__row span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--mz-surface-2); color: #fff; font-size: 15px; flex: none; }
.mz-mock__row em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-mock--donut { display: grid; place-items: center; padding: 0; }
.mz-mock--donut svg { display: block; width: 66%; height: auto; aspect-ratio: 1; }
.mz-scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid var(--mz-border); }
.mz-scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mz-accent); animation: mz-cue 1.8s ease-in-out infinite; }
@keyframes mz-cue { 60% { transform: translateY(12px); opacity: 0; } }
@media (max-width: 900px) {
    .mz-hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: 110px; }
    .mz-hero__ctas { justify-content: center; }
    .mz-hero__brand { text-align: center !important; }
    .mz-hero__brand--beside { justify-content: center !important; }
    .mz-hero--split-left .mz-hero__scene { order: 0; }
    .mz-hero--split-left .mz-hero__inner, .mz-hero--split-right .mz-hero__inner { direction: inherit; }
    .mz-scroll-cue { display: none; }
}

/* ---------- Secondary banner ---------- */
.mz-sb { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--mz-radius) + 8px); background: var(--mz-surface); border: 1px solid var(--mz-border); box-shadow: var(--mz-shadow); }
.mz-sb--image-left .mz-sb__media { order: -1; }
.mz-sb--image-top, .mz-sb--noimg { grid-template-columns: 1fr; }
.mz-sb--noimg .mz-sb__copy { max-width: 760px; }
.mz-sb--image-top .mz-sb__media { order: -1; }
.mz-sb__title { font-size: clamp(26px, 3.4vw, 42px); color: inherit; margin: 14px 0 12px; }
.mz-sb__title mark { background: none; color: var(--sb-hl); }
.mz-sb__sub { opacity: .8; margin-bottom: 22px; }
.mz-sb__badges { margin-top: 24px; display: grid; gap: 10px; }
.mz-sb__badges small { opacity: .7; font-weight: 700; }
.mz-sb__media { border-radius: var(--mz-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mz-surface-2); display: grid; place-items: center; }
.mz-sb__media img { width: 100%; height: 100%; }
.mz-sb__ph { font-size: 48px; opacity: .5; }
@media (max-width: 860px) { .mz-sb { grid-template-columns: 1fr; } .mz-sb__media { order: -1; } }

/* ---------- Systems ---------- */
.mz-sys__ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--mz-accent) 22%, transparent), color-mix(in srgb, var(--mz-accent-2) 18%, transparent)); margin-bottom: 18px; }
.mz-sys h3 { font-size: 24px; margin-bottom: 8px; }
.mz-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.mz-checks li { position: relative; padding-inline-start: 30px; }
.mz-checks li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--mz-mint); }

/* ---------- Product stats ---------- */
.mz-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mz-cats--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.mz-cat { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--mz-card); border: 1px solid var(--mz-border); font-weight: 700; color: var(--mz-heading); transition: border-color .25s, transform .25s; }
.mz-cat:hover { border-color: var(--mz-accent); }
.mz-cat__ic { font-size: 20px; color: var(--mz-accent); }
.mz-cat__count { margin-inline-start: auto; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--mz-surface-2); color: var(--mz-muted); }

/* ---------- Showcase (3D carousel) ---------- */
.mz-show { position: relative; }
.mz-show__track { position: relative; aspect-ratio: 16 / 9; perspective: var(--mz-persp); transform-style: preserve-3d; }
.mz-show__slide { position: absolute; inset: 0 12%; margin: 0; border-radius: var(--mz-radius); overflow: hidden; background: var(--mz-surface); box-shadow: var(--mz-shadow); --d: 0;
    transform: translateX(calc(var(--drag, 0) * 100%)) translateX(calc(var(--d) * 58%)) translateZ(calc(-1 * (var(--d) * var(--d)) * 60px)) rotateY(calc(var(--d) * -28deg)) scale(calc(1 - (var(--d) * var(--d)) * .06));
    opacity: calc(1 - (var(--d) * var(--d)) * .35); transition: transform .8s var(--mz-ease), opacity .8s; z-index: calc(10 - var(--d) * var(--d)); }
[dir="rtl"] .mz-show__slide { transform: translateX(calc(var(--drag, 0) * 100%)) translateX(calc(var(--d) * -58%)) translateZ(calc(-1 * (var(--d) * var(--d)) * 60px)) rotateY(calc(var(--d) * 28deg)) scale(calc(1 - (var(--d) * var(--d)) * .06)); }
.mz-show__slide img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.mz-show__track { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mz-show__track.is-dragging { cursor: grabbing; }
.mz-show__track.is-dragging .mz-show__slide { transition: none; }
.mz-show__slide:not(.is-active) { cursor: pointer; }
.mz-show__ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.mz-show__dots { display: flex; gap: 8px; }
.mz-show__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--mz-border); cursor: pointer; transition: width .3s, background .3s; }
.mz-show__dots button.is-active { width: 26px; background: var(--mz-accent); }
@media (max-width: 700px) { .mz-show__slide { inset: 0 4%; } }

/* ---------- Groups + features ---------- */
.mz-group { --gc: var(--mz-accent); display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--gc); }
.mz-group.is-active { box-shadow: 0 0 0 2px var(--gc), var(--mz-shadow); }
.mz-group__head { display: flex; gap: 12px; align-items: center; }
.mz-group__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--gc) 16%, transparent); color: var(--gc); flex: none; }
.mz-group h3 { font-size: 19px; }
.mz-group small { color: var(--mz-muted); }
.mz-group p { color: var(--mz-muted); font-size: 15px; }
.mz-group__img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.mz-group__img img { width: 100%; height: 100%; object-fit: cover; }
.mz-group .mz-link { margin-top: auto; color: var(--gc); }
.mz-filter { justify-content: center; margin-bottom: 26px; }
.mz-feat { padding: 22px; }
.mz-feat[hidden] { display: none; }
.mz-feat__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--mz-surface-2); margin-bottom: 14px; }
.mz-feat h4 { font-size: 17px; margin-bottom: 6px; }
.mz-feat p { color: var(--mz-muted); font-size: 14.5px; }

/* ---------- Clients belt ---------- */
.mz-belt { perspective: var(--mz-persp); overflow: hidden; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mz-belt__track { display: flex; width: max-content; animation: mz-belt var(--speed, 50s) linear infinite; }
[dir="rtl"] .mz-belt__track { animation-name: mz-belt-rtl; }
.mz-belt:hover .mz-belt__track { animation-play-state: paused; }
.mz-belt__row { display: flex; gap: 14px; padding-inline-end: 14px; }
@keyframes mz-belt { to { transform: translateX(-50%); } }
@keyframes mz-belt-rtl { to { transform: translateX(50%); } }
.mz-client { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 16px; background: var(--mz-card); border: 1px solid var(--mz-border); white-space: nowrap; font-weight: 700; color: var(--mz-heading); }
.mz-client img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.mz-client__ph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mz-accent), var(--mz-accent-2)); color: #fff; }

/* ---------- Articles ---------- */
.mz-article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mz-article__cover { position: relative; aspect-ratio: 16 / 10; background: var(--mz-surface-2); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.mz-article__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mz-ease); font-size: 0; color: transparent; }
.mz-article:hover .mz-article__cover img { transform: scale(1.05); }
.mz-article__cat { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.mz-article__body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.mz-article h3 { font-size: 18px; }
.mz-article p { color: var(--mz-muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.mz-faq { display: grid; gap: 12px; }
.mz-faq__item { background: var(--mz-card); border: 1px solid var(--mz-border); border-radius: 18px; }
.mz-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; font-weight: 700; color: var(--mz-heading); }
.mz-faq__item summary::-webkit-details-marker { display: none; }
.mz-faq__item summary i { position: relative; width: 28px; height: 28px; border-radius: 9px; background: var(--mz-surface-2); flex: none; transition: transform .35s var(--mz-ease), background .3s; }
.mz-faq__item summary i::before, .mz-faq__item summary i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.mz-faq__item summary i::after { transform: rotate(90deg); }
.mz-faq__item[open] summary i { transform: rotate(45deg); background: var(--mz-accent); color: #fff; }
.mz-faq__a { padding: 0 22px 20px; color: var(--mz-muted); display: grid; gap: 12px; }

/* ---------- Pricing ---------- */
.mz-plan { display: flex; flex-direction: column; gap: 14px; }
.mz-plan h3 { font-size: 20px; }
.mz-plan__sub { color: var(--mz-muted); font-size: 14px; }
.mz-plan__price b { font-size: 44px; line-height: 1; color: var(--mz-heading); }
.mz-plan__price.is-custom b { font-size: 28px; }
.mz-plan__price small { display: block; color: var(--mz-muted); margin-top: 6px; }
.mz-plan__feats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.mz-plan__feats li { display: flex; gap: 10px; align-items: flex-start; }
.mz-plan__feats i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; margin-top: 2px; background: color-mix(in srgb, var(--mz-price-accent) 16%, transparent); color: var(--mz-price-accent); }
.mz-plan__feats .is-no { opacity: .55; }
.mz-plan__feats .is-no i { background: var(--mz-surface-2); color: var(--mz-muted); }
.mz-plan.is-featured { background: linear-gradient(160deg, var(--mz-price-feat-from), var(--mz-price-feat-to)); color: var(--mz-price-feat-text); border-color: transparent; box-shadow: 0 40px 80px -36px var(--mz-price-feat-from); }
.mz-plan.is-featured h3, .mz-plan.is-featured .mz-plan__price b { color: inherit; }
.mz-plan.is-featured .mz-plan__sub, .mz-plan.is-featured .mz-plan__price small { color: inherit; opacity: .8; }
.mz-plan.is-featured .mz-plan__feats i { background: rgba(255,255,255,.18); color: #fff; }
.mz-plan__badge { position: absolute; top: -12px; inset-inline-end: 20px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--mz-mint); color: #042f2e; }
.mz-hls { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mz-hl { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--mz-card); border: 1px solid var(--mz-border); }
.mz-hl > span { font-size: 24px; }
.mz-hl b { display: block; color: var(--mz-heading); }
.mz-hl small { color: var(--mz-muted); }

/* ---------- Standalone pages (privacy / terms) ---------- */
.mz-page { padding-top: 130px; }
.mz-page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.mz-page h2 { font-size: 21px; margin: 30px 0 10px; }
.mz-page p, .mz-page li { color: var(--mz-text); line-height: 1.9; }
.mz-page p { margin: 0 0 12px; }
.mz-page ul { padding-inline-start: 22px; margin: 0 0 12px; }

/* ---------- Plans & add-ons ---------- */
.mz-addon { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.mz-addon__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--mz-surface-2); }
.mz-addon h3 { font-size: 17px; }
.mz-addon p { color: var(--mz-muted); font-size: 14.5px; }
.mz-addon__bill { margin-top: auto; align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--mz-accent) 12%, transparent); color: var(--mz-accent); }
html[data-theme="dark"] .mz-addon__bill { color: #c4b5fd; }
.mz-addon.is-featured { background: linear-gradient(160deg, var(--mz-price-feat-from), var(--mz-price-feat-to)); color: var(--mz-price-feat-text); border-color: transparent; }
.mz-addon.is-featured h3, .mz-addon.is-featured p { color: inherit; }
.mz-addon.is-featured .mz-addon__ic, .mz-addon.is-featured .mz-addon__bill { background: rgba(255,255,255,.18); color: #fff; }
.mz-addons__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; text-align: center; }
.mz-addons__foot p { color: var(--mz-muted); max-width: 560px; }

/* ---------- Testimonials ---------- */
.mz-quote { margin: 0; display: flex; flex-direction: column; gap: 18px; --qa: var(--mz-mint); }
.mz-accent--sand { --qa: #f59e0b; }
.mz-accent--purple { --qa: var(--mz-accent-2); }
.mz-accent--sky { --qa: #38bdf8; }
.mz-quote::before { content: '”'; position: absolute; top: 4px; inset-inline-end: 20px; font: 800 80px/1 Georgia, serif; color: var(--qa); opacity: .35; }
.mz-quote blockquote { margin: 0; font-size: 16px; color: var(--mz-text); }
.mz-quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.mz-quote__av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--qa); color: #fff; font-weight: 800; flex: none; }
.mz-quote__av img { width: 100%; height: 100%; object-fit: cover; }
.mz-quote b { display: block; color: var(--mz-heading); }
.mz-quote small { color: var(--mz-muted); }

/* ---------- Resources + careers ---------- */
.mz-res { display: flex; gap: 14px; align-items: flex-start; }
.mz-res__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mz-surface-2); color: var(--mz-accent); font-size: 20px; flex: none; }
.mz-res__body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.mz-res__body b { color: var(--mz-heading); }
.mz-res__body small { color: var(--mz-muted); }
.mz-res__cta { align-self: center; font-weight: 700; color: var(--mz-accent); white-space: nowrap; font-size: 14px; }
.mz-jobs { display: grid; gap: 12px; }
.mz-job { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 20px 22px; }
.mz-job b { color: var(--mz-heading); font-size: 17px; }
.mz-job .mz-meta { grid-column: 1; }
.mz-job .mz-link { grid-row: 1 / span 2; grid-column: 2; }

/* ---------- Contact (+ mform fields) ---------- */
.mz-contact { padding: clamp(22px, 4vw, 40px); }
.mz-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.mf-field { display: grid; gap: 6px; }
.mf-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .mf-grid { grid-template-columns: 1fr; } }
.mf-field label, .mf-field legend { font-weight: 700; font-size: 14px; color: var(--mz-heading); }
.mf-field fieldset { border: 0; padding: 0; margin: 0; }
.mf-field input:not([type="checkbox"]):not([type="radio"]), .mf-field textarea, .mf-field select { width: 100%; font: inherit; color: var(--mz-text); background: var(--mz-surface-2); border: 1.5px solid var(--mz-border); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.mf-field textarea { min-height: 130px; resize: vertical; }
.mf-field input:focus, .mf-field textarea:focus, .mf-field select:focus { outline: none; border-color: var(--mz-accent); box-shadow: 0 0 0 4px var(--mz-glow); }
.mf-choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mf-choice { display: inline-flex; gap: 6px; align-items: center; }
.mf-req { color: #ef4444; }
.mf-hint { color: var(--mz-muted); font-size: 12px; }
.mf-bad input, .mf-bad textarea, .mf-bad select { border-color: #ef4444 !important; }
.mf-err { color: #ef4444; font-size: 13px; }
.mz-feedback { display: none; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.mz-feedback.is-visible { display: block; }
.mz-feedback.is-ok { background: rgba(16, 185, 129, .14); color: #059669; }
.mz-feedback.is-err { background: rgba(239, 68, 68, .12); color: #dc2626; }

/* ---------- Footer ---------- */
.mz-footer { background: var(--mz-footer); color: var(--mz-footer-text); padding: 64px 0 24px; margin-top: 40px; border-radius: 36px 36px 0 0; }
/* Everything in the footer derives from its text colour, so any background the
   admin picks (dark or light) keeps headings, links and icons readable. */
.mz-footer h4 { color: inherit; font-size: 16px; font-weight: 800; margin: 16px 0 12px; }
.mz-footer .mz-brand { color: inherit; }
.mz-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.mz-footer__about p { opacity: .88; max-width: 420px; }
.mz-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mz-footer__links a { opacity: .88; }
.mz-footer__links a:hover { opacity: 1; color: var(--mz-accent); }
.mz-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.mz-socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 12%, transparent); transition: background .25s, color .25s, transform .25s; }
.mz-socials a:hover { background: var(--mz-accent); color: #fff; transform: translateY(-2px); }
.mz-socials svg { width: 18px; height: 18px; fill: currentColor; }
.mz-footer__copy { text-align: center; opacity: .75; font-size: 13px; margin-top: 44px; }
@media (max-width: 760px) { .mz-footer__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   MOTION — 3D → 2D
   ===================================================================== */
.mz-sec { --pi: 1; --po: 0; }
.mz-motion .mz-sec:not([data-mz-fx="none"]) { perspective: var(--mz-persp); perspective-origin: 50% 35%; }
/* The stage stays a flat plane (no preserve-3d): each item carries its own
   perspective() instead. Items pushed "back" inside a shared 3D space end up
   behind their container for hit-testing — they looked fine but could not be
   clicked (FAQ answers, the quote button). */
.mz-motion .mz-stage { transform-style: flat; will-change: transform; }
.mz-motion [data-mz-item] {
    /* Stagger capped at 7 steps, so every item — however far down a long
       list — is fully flat and opaque once the section has settled. */
    --pii: clamp(0, calc(var(--pi) * 1.55 - min(var(--i, 0), 7) * .07), 1);
    --qi: calc(1 - var(--pii));
    will-change: transform, opacity;
    opacity: calc(1 - var(--qi) * var(--mz-k));
}

/* tilt — the section lies back on the floor, then stands up flat */
.mz-motion [data-mz-fx="tilt"] .mz-stage {
    transform-origin: 50% 100%;
    transform: translateZ(calc(((1 - var(--pi)) * -240px - var(--po) * 140px) * var(--mz-k)))
               rotateX(calc(((1 - var(--pi)) * 34deg - var(--po) * 14deg) * var(--mz-k)));
}
.mz-motion [data-mz-fx="tilt"] [data-mz-item] { transform: perspective(900px) translate3d(0, calc(var(--qi) * 50px * var(--mz-k)), calc(var(--qi) * -120px * var(--mz-k))); }

/* unfold — swings open like a door hinged on the reading edge */
.mz-motion [data-mz-fx="unfold"] .mz-stage {
    transform-origin: 0% 50%;
    transform: translateZ(calc(((1 - var(--pi)) * -180px - var(--po) * 120px) * var(--mz-k)))
               rotateY(calc(((1 - var(--pi)) * 48deg - var(--po) * 12deg) * var(--mz-k)));
}
[dir="rtl"].mz-motion [data-mz-fx="unfold"] .mz-stage {
    transform-origin: 100% 50%;
    transform: translateZ(calc(((1 - var(--pi)) * -180px - var(--po) * 120px) * var(--mz-k)))
               rotateY(calc(((1 - var(--pi)) * -48deg + var(--po) * 12deg) * var(--mz-k)));
}
.mz-motion [data-mz-fx="unfold"] [data-mz-item] { transform: perspective(900px) translate3d(0, 0, calc(var(--qi) * -160px * var(--mz-k))); }

/* flip — a flap folding down from its top edge */
.mz-motion [data-mz-fx="flip"] .mz-stage {
    transform-origin: 50% 0%;
    transform: rotateX(calc(((1 - var(--pi)) * -70deg + var(--po) * 18deg) * var(--mz-k)))
               translateZ(calc(var(--po) * -160px * var(--mz-k)));
}
.mz-motion [data-mz-fx="flip"] [data-mz-item] { transform: perspective(900px) rotateX(calc(var(--qi) * -40deg * var(--mz-k))); transform-origin: 50% 0%; }

/* zoom-flat — rises out of the depth toward the screen */
.mz-motion [data-mz-fx="zoom-flat"] .mz-stage {
    transform: translateZ(calc(((1 - var(--pi)) * -680px - var(--po) * 220px) * var(--mz-k)))
               rotateX(calc((1 - var(--pi)) * 10deg * var(--mz-k)));
}
.mz-motion [data-mz-fx="zoom-flat"] [data-mz-item] { transform: translate3d(0, calc(var(--qi) * 30px * var(--mz-k)), 0); }

/* depth-stack — every card flies in from its own depth, then locks into the flat grid */
.mz-motion [data-mz-fx="depth-stack"] .mz-stage {
    transform-origin: 50% 0%;
    transform: rotateX(calc(((1 - var(--pi)) * 16deg - var(--po) * 10deg) * var(--mz-k)))
               translateZ(calc(var(--po) * -160px * var(--mz-k)));
}
.mz-motion [data-mz-fx="depth-stack"] [data-mz-item] {
    --tw: 5deg;
    transform: perspective(900px) translate3d(0, calc(var(--qi) * 70px * var(--mz-k)), calc(var(--qi) * -520px * var(--mz-k)))
               rotateX(calc(var(--qi) * 28deg * var(--mz-k)))
               rotateZ(calc(var(--qi) * var(--tw) * var(--mz-k)));
}
.mz-motion [data-mz-fx="depth-stack"] [data-mz-item]:nth-child(even) { --tw: -5deg; }

/* parallax — flat, only layered 2D drift */
.mz-motion [data-mz-fx="parallax"] .mz-stage { transform: translate3d(0, calc(((1 - var(--pi)) * 90px - var(--po) * 60px) * var(--mz-k)), 0); }
.mz-motion [data-mz-fx="parallax"] [data-mz-item] { transform: translate3d(0, calc(var(--qi) * (40px + var(--i, 0) * 14px) * var(--mz-k)), 0); }

/* none */
.mz-motion [data-mz-fx="none"] [data-mz-item] { opacity: 1; transform: none; }

/* Hero — a 3D rig that folds flat while the hero is pinned */
.mz-motion .mz-hero.is-3d { height: 135vh; }
.mz-motion .mz-hero.is-3d .mz-hero__inner { position: sticky; top: 0; height: 100vh; min-height: 0; }
.mz-motion .mz-hero.is-3d .mz-rig {
    --f: calc(1 - var(--po));   /* 1 = full 3D (top of page) → 0 = flat */
    transform: rotateX(calc((var(--f) * 20deg - var(--my) * 5deg) * var(--mz-k)))
               rotateY(calc((var(--f) * -26deg * var(--td) + var(--mx) * 7deg) * var(--mz-k)))
               rotateZ(calc(var(--f) * 5deg * var(--td) * var(--mz-k)))
               scale(calc(1 - var(--po) * .06));
}
/* --td: which way the rig turns — toward the text, so it follows the image's side. */
.mz-hero { --td: 1; }
[dir="rtl"] .mz-hero { --td: -1; }
.mz-hero--split-left { --td: -1; }
.mz-hero--split-right, [dir="rtl"] .mz-hero--split-right { --td: 1; }
[dir="rtl"] .mz-hero--split-left { --td: -1; }
.mz-motion .mz-hero.is-3d .mz-panel--main { transform: translateZ(calc(var(--f) * 40px * var(--mz-k))); }
.mz-motion .mz-hero.is-3d .mz-panel--side {
    transform: translate3d(calc(var(--f) * var(--sx, 0px) * var(--mz-k)), calc(var(--f) * var(--sy, 0px) * var(--mz-k)), calc(var(--f) * (60px + var(--z) * 70px) * var(--mz-k)));
}
.mz-panel--s1 { --sx: -26px; --sy: 10px; }
.mz-panel--s2 { --sx: 30px; --sy: 24px; }
.mz-panel--s3 { --sx: 22px; --sy: 6px; }
/* The copy stays fully opaque and clickable — only the 3D rig moves. */
.mz-motion .mz-hero.is-3d .mz-hero__copy { transform: translate3d(0, calc(var(--po) * -24px), 0); }
.mz-motion .mz-hero.is-3d .mz-scroll-cue { opacity: calc(1 - var(--po) * 3); }
@media (max-width: 900px) {
    .mz-motion .mz-hero.is-3d { height: 120vh; }
    .mz-motion .mz-hero.is-3d .mz-hero__inner { align-content: center; }
    .mz-hero__scene { width: min(560px, 100%); }
}
@media (max-width: 700px) {
    .mz-panel--side { display: none; }
    .mz-panel--main { inset: 4% 2%; }
    .mz-hero--centered .mz-hero__scene { width: 100%; min-width: 0; }
}

/* Clients belt keeps a gentle 3D lean while entering */
.mz-motion [data-mz-section="clients"] .mz-belt { transform: rotateX(calc((1 - var(--pi)) * 30deg * var(--mz-k))); }

/* Static page (no JS motion / reduced motion / intensity off) */
.mz-still [data-mz-item] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mz-blob, .mz-belt__track, .mz-scroll-cue span { animation: none !important; }
    .mz-show__slide { transition: none; }
}
@media print {
    .mz-header, .mz-backdrop, .mz-progress, .mz-scroll-cue { display: none; }
    .mz-motion .mz-hero.is-3d { height: auto; }
}
