/* V4.7/V5.7 legacy framing translated onto the approved WordPress section model. */
.mh-legacy[lang="ar"] { font-family:var(--site-font-ar,'Segoe UI',sans-serif); }
.mh-legacy .mh-media { position:relative; isolation:isolate; overflow:hidden; }
.mh-legacy .mh-media img { aspect-ratio:16/10; object-fit:cover; filter:saturate(1.04) contrast(1.02); }
/* Original dual-edge fade anatomy; colors follow the section's actual tone. */
.mh-legacy .mh-media::after { content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--mh-bg),transparent 24%,transparent 76%,var(--mh-bg)); }
.mh-legacy .mh-items li { border-radius:22px; padding:24px; background:var(--site-surface); border:1px solid var(--mh-line); }
#marketing-first .mh-item-number { width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#fff0e5;color:#ae391b;font-size:20px; }
#automation-follow-up .mh-items { grid-template-columns:1fr; }
#automation-follow-up.mh-legacy { --mh-ink:#102034;--mh-muted:#485a70;--mh-line:#b9d3df;--mh-accent:#126b7c; }
:root[data-site-theme="dark"] #automation-follow-up.mh-legacy { --mh-ink:#f5f7fa;--mh-muted:#c2d4e4;--mh-line:#456477;--mh-accent:#96d9ee; }
#automation-follow-up .mh-items li { display:grid;grid-template-columns:44px 1fr;gap:20px;background:rgba(255,255,255,.075);border-color:var(--mh-line); }
#automation-follow-up .mh-item-number { margin:0;color:var(--mh-accent); }
#research-intelligence .mh-items li { box-shadow:0 15px 35px rgba(58,71,122,.08); }
#services-ecosystem { --mh-bg:var(--site-surface); }
#services-ecosystem .mh-items { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
#services-ecosystem .mh-items li { display:flex;flex-direction:column;align-items:stretch;gap:14px;min-height:268px;padding:22px;border-radius:28px; }
#services-ecosystem .mh-items li:nth-child(2) { --mh-accent:#8f398f; }
#services-ecosystem .mh-items li:nth-child(3) { --mh-accent:#147a81; }
#services-ecosystem .mh-items li:nth-child(5) { --mh-accent:#6552bc; }
#services-ecosystem .mh-items h3 { font-size:clamp(22px,2vw,28px); }
#services-ecosystem .mh-item-number { margin:0;padding:0; }
#services-ecosystem .mh-link { margin-top:auto; }
.mh-pillar-art { height:160px;margin:0 0 4px;position:relative;overflow:hidden;border-radius:22px; }
.mh-pillar-art img { height:100%;width:100%;object-fit:cover;object-position:center;filter:saturate(1.04) contrast(1.02); }
#services-ecosystem .mh-items li:nth-child(2) .mh-pillar-art { background:#21102e; }
#how-we-work .mh-items { gap:16px; }
#how-we-work .mh-items li { background:var(--site-surface); }
#websites-infrastructure { --mh-ink:#f5f7fa;--mh-muted:#c2d4e4;--mh-line:#456477;--mh-accent:#96d9ee; }
#websites-infrastructure .mh-items { border:0;padding:0; }
#websites-infrastructure .mh-items li { background:rgba(23,53,78,.88); }
#founder .mh-inner { border-block:1px solid var(--mh-line);padding-block:42px; }
#final-cta .mh-inner { max-width:1000px;margin-inline:auto; }
#final-cta .mh-cta { border-radius:50px; }
.mh-curated .mh-empty { padding:28px;border:1px solid var(--mh-line);border-radius:18px;background:var(--site-surface); }
:root[data-site-theme="dark"] #services-ecosystem .mh-items li { --mh-accent:#ffb297; }
/* Palettes from dynamic-sections must also update static/animated scene surfaces. */
.mh-legacy .mm-type-scene { --surface:var(--site-surface); }
@media(min-width:1101px) {
 #automation-follow-up .mh-composition { grid-template-columns:1fr 1fr; }
 #automation-follow-up .mh-items { max-width:76%;margin-inline-start:auto; }
 #research-intelligence .mh-composition { grid-template-columns:1fr 1fr; }
}
@media(max-width:1100px) { #services-ecosystem .mh-items { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
 #services-ecosystem .mh-items { grid-template-columns:1fr; }
 .mh-legacy .mh-media img { aspect-ratio:16/10; }
 #automation-follow-up .mh-items li { padding:20px;gap:12px;grid-template-columns:30px 1fr; }
 .mh-legacy .mh-items li { padding:22px; }
 .mh-pillar-art { height:180px; }
 #founder .mh-inner { padding-block:24px; }
 .mh-legacy[lang="ar"] .mm-journey h2 { font-size:1.35rem; }
 .mh-legacy[lang="ar"] .mm-journey-intro { font-size:.75rem; }
 .mh-legacy[lang="ar"] .mm-journey-steps h3 { font-size:1.4rem; }
 .mh-legacy[lang="ar"] .mm-type-statements .mm-type-title { font-size:clamp(1.8rem,7vw,3.4rem); }
}
/* Scoped visual recovery. Frozen Hero/Journey motion remains independent. */
.recovery-work h2{max-width:900px}.recovery-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;margin-block:3rem}.recovery-work-card{min-width:0}.recovery-work-card a,.recovery-video-samples a{display:block;color:inherit;text-decoration:none}.recovery-cover{margin:0;aspect-ratio:4/3;background:#101725;border:1px solid #586379;overflow:hidden;border-radius:16px}.recovery-cover img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .35s}.recovery-work-card a:hover img,.recovery-video-samples a:hover img{transform:scale(1.025)}.recovery-work-card h3{font-size:clamp(1.1rem,1.7vw,1.45rem);line-height:1.6;margin:1rem 0 .5rem}.recovery-work-card a:focus-visible,.recovery-video a:focus-visible{outline:3px solid #fb825f;outline-offset:7px}.recovery-review-note{font-size:.9rem;line-height:1.8;border-inline-start:3px solid #bca4ff;padding-inline-start:1rem}.recovery-strip{overflow:hidden;border-block:1px solid var(--site-border);padding-block:1.6rem;margin-block-start:3rem}.recovery-strip-track{display:flex;gap:4rem;width:max-content;animation:recovery-drift 26s ease-in-out infinite alternate}.recovery-strip span{white-space:nowrap;font-size:1.5rem;font-weight:650}.recovery-strip span:before{content:'✦';color:#b69bea;margin-inline-end:1.5rem}.recovery-strip:hover .recovery-strip-track{animation-play-state:paused}@keyframes recovery-drift{to{transform:translateX(-35%)}}[dir=rtl] .recovery-strip-track{animation-direction:alternate-reverse}.recovery-video{background:radial-gradient(ellipse at 80% 15%,#482575 0,transparent 55%),#140e25;color:#faf7ff;padding:clamp(4rem,8vw,8rem) clamp(1rem,4vw,4rem);overflow:hidden}.recovery-video .mh-inner{max-width:1320px;margin:auto}.recovery-video-lead{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,5vw,5rem)}.recovery-video h2{font-size:clamp(2.2rem,5vw,4.7rem);line-height:1.2;margin-block:1rem 1.5rem;max-width:12ch}.recovery-video p{line-height:1.85;max-width:62ch}.recovery-video-lead figure{margin:0}.recovery-video-lead img{display:block;width:100%;height:auto;border-radius:26px}.recovery-video .mh-cta{display:inline-flex;background:#eee4ff;color:#23113d;padding:1rem 1.5rem;border-radius:999px;margin-block:1.5rem;text-decoration:none}.recovery-formats{display:flex;flex-wrap:wrap;gap:.7rem;list-style:none;padding:0;margin-block:2.5rem}.recovery-formats li{border:1px solid #8f76af;border-radius:100px;padding:.65rem 1rem;font-size:.9rem}.recovery-video-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.recovery-video-samples .recovery-cover{aspect-ratio:3/4;background:#0b0910}.recovery-video-samples h3{font-size:1.5rem;margin-block:.4rem}.recovery-video-samples .mh-kicker{margin-block:1.3rem .4rem;color:#cfb6fc}.recovery-video .recovery-review-note{margin-block-start:2rem;color:#dccfee}@media(max-width:900px){.recovery-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-video-lead{grid-template-columns:1fr}.recovery-video-lead figure{max-width:650px}.recovery-video-samples{gap:1rem}}@media(max-width:600px){.recovery-work-grid,.recovery-video-samples{grid-template-columns:1fr}.recovery-video h2{max-width:none}.recovery-strip span{font-size:1.1rem}.recovery-cover{aspect-ratio:1/1}}@media(prefers-reduced-motion:reduce){.recovery-strip-track{animation:none;width:auto;flex-wrap:wrap;gap:1.5rem}.recovery-cover img{transition:none}.recovery-work-card a:hover img,.recovery-video-samples a:hover img{transform:none}}
.recovery-pause{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;margin-block-start:1.5rem;cursor:pointer}.recovery-pause input{width:20px;height:20px;accent-color:#8e5ce4}.recovery-pause:has(input:checked)+.recovery-strip .recovery-strip-track{animation-play-state:paused}.recovery-strip{direction:ltr}.recovery-strip-track{animation-direction:alternate!important}@keyframes recovery-drift{to{transform:translateX(calc(-100% + min(85vw,1100px)))}}@media(prefers-reduced-motion:reduce){.recovery-pause{display:none}}
.recovery-video-samples .recovery-reel-watch{display:inline-flex;align-items:center;min-height:44px;margin-block-start:1rem;padding:.75rem 1rem;border:1px solid #b299d2;border-radius:999px;font-size:.9rem;line-height:1.6}.recovery-video-samples .recovery-reel-watch:hover{background:#563775}


/* Legacy case-study visual restoration: six current records, original card anatomy only. */
#projects .recovery-work-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
#projects .recovery-work-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe5e9;border-radius:22px;background:#fff;color:#11243c;box-shadow:0 12px 30px rgba(25,42,63,.075);transition:border-color .25s,box-shadow .25s,transform .25s}
#projects .recovery-work-card:hover{border-color:#f28b6e;box-shadow:0 20px 40px rgba(25,42,63,.13);transform:translateY(-4px)}
#projects .recovery-work-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
#projects .recovery-work-card .recovery-cover{height:205px;aspect-ratio:auto;border:0;border-radius:0;background:#f4f7f9;position:relative;isolation:isolate}
#projects .recovery-work-card .recovery-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,#fff 100%);pointer-events:none}
#projects .recovery-work-card .recovery-cover img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}
#projects .recovery-work-card:hover .recovery-cover img{transform:scale(1.025)}
#projects .recovery-work-copy{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:.55rem;padding:18px 20px 0;min-width:0}
#projects .recovery-work-badge{align-self:flex-start;display:inline-flex;padding:3px 10px;color:#c94931;background:#fff1ea;border:1px solid #f7d6c8;border-radius:999px;font-size:.75rem;line-height:1.5;font-weight:700}
#projects .recovery-work-copy h3{font-size:clamp(1.05rem,1.4vw,1.26rem);font-weight:800;line-height:1.5;margin:0;color:inherit}
#projects .recovery-work-description{font-size:.87rem;line-height:1.75;color:#516176;margin:0 0 1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#projects .recovery-work-action{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;border-top:1px solid #e5eaf0;text-align:center;font-size:.85rem;font-weight:750;color:#16324b}
#projects .recovery-work-action span{color:#d65432}
#projects .recovery-work-card .recovery-work-link:focus-visible{outline:3px solid #f06543;outline-offset:-3px;border-radius:20px}
:root[data-site-theme="dark"] #projects .recovery-work-card{background:#162635;color:#f2f6fa;border-color:#435469;box-shadow:0 12px 30px rgba(0,0,0,.18)}
:root[data-site-theme="dark"] #projects .recovery-work-card .recovery-cover{background:#243746}
:root[data-site-theme="dark"] #projects .recovery-work-card .recovery-cover:after{background:linear-gradient(180deg,transparent 60%,#162635 100%)}
:root[data-site-theme="dark"] #projects .recovery-work-badge{background:#432d30;color:#ffc2ad;border-color:#704a43}
:root[data-site-theme="dark"] #projects .recovery-work-description{color:#c2d2df}
:root[data-site-theme="dark"] #projects .recovery-work-action{border-color:#425466;color:#f2f6fa}
@media(max-width:1000px){#projects .recovery-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#projects .recovery-work-grid{grid-template-columns:1fr;gap:18px}#projects .recovery-work-card .recovery-cover{height:210px}#projects .recovery-work-copy{padding:18px 18px 0}}
@media(prefers-reduced-motion:reduce){#projects .recovery-work-card{transition:none}#projects .recovery-work-card:hover{transform:none}#projects .recovery-work-card .recovery-cover img{transition:none}#projects .recovery-work-card:hover .recovery-cover img{transform:none}}
