/*
 * Maison Digitale — theme styles.
 * Ported from the approved design files (designs/*.dc.html and site.css).
 * Colours: black, ivory and gold only. Square corners. No shadows, no gradients.
 * Every rule is scoped under .md-site so Elementor's own defaults never win.
 */

@font-face{font-family:"Flyhead";src:url("../fonts/Flyhead-Regular.otf") format("opentype");font-display:swap}

/* ---------- Base ---------- */
html{-webkit-text-size-adjust:100%}
body.md-site{margin:0;background:#f6f1e9;color:#17120f;font-family:"Instrument Sans","IBM Plex Sans Arabic",sans-serif;font-size:17px;line-height:28px;-webkit-font-smoothing:antialiased}
body.md-site.md-bg-ink{background:#17120f;color:#f6f1e9}
body.md-site.md-mode-home{background:#17120f}
.md-site *,.md-site *::before,.md-site *::after{box-sizing:border-box}
.md-site img{max-width:100%}
.md-site [hidden]{display:none!important}
.md-site a{color:inherit}
.md-site a:hover{color:#a67c2e}
.md-site .dk a:hover{color:#c9a24f}
.md-site button{font-family:inherit}
.md-site p,.md-site h1,.md-site h2,.md-site h3,.md-site h4,.md-site figure,.md-site blockquote{margin:0}
.md-skip{position:absolute;top:12px;left:12px;z-index:100002;background:#17120f;color:#f6f1e9;padding:12px 18px;font:600 12px/1 "Instrument Sans",sans-serif;letter-spacing:.14em;text-transform:uppercase;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.md-skip:focus{clip-path:none;width:auto;height:auto}
.md-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Page frame: the layout is a column so the footer sits at the bottom of short pages */
.md-page{min-height:100vh;display:flex;flex-direction:column}
.md-main{flex:1 1 auto;display:flex;flex-direction:column;container-type:inline-size;position:relative}
.md-main > *{flex-shrink:0}
.md-main .md-push,.md-main .elementor{flex:1 1 auto;display:flex;flex-direction:column}
.md-main .elementor > .e-con:last-child,.md-main .elementor > .elementor-section:last-child,.md-main .elementor > .elementor-section-wrap > .elementor-section:last-child{margin-top:auto}

/* Elementor wrappers around Maison widgets: no extra spacing, full width */
.md-site .elementor-widget[class*="elementor-widget-md-"]{margin:0!important;width:100%;--kit-widget-spacing:0px}
.md-site .elementor-widget[class*="elementor-widget-md-"] > .elementor-widget-container{margin:0;padding:0}
.md-site .e-con:has(> .elementor-widget[class*="elementor-widget-md-"]),
.md-site .e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-md-"]){--padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;--gap:0px;--row-gap:0px;--column-gap:0px;--content-width:100%;--container-max-width:100%;--widgets-spacing:0px}
.md-site .elementor-section:has(.elementor-widget[class*="elementor-widget-md-"]) > .elementor-container{max-width:none}
.md-site .elementor-column:has(> .elementor-widget-wrap > .elementor-widget[class*="elementor-widget-md-"]) > .elementor-widget-wrap{padding:0}

/* ---------- Type ---------- */
.md-site .fh{font-family:"Flyhead","IBM Plex Sans Arabic","Instrument Sans",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.04em;line-height:1.04;margin:0}
.md-site .ov{font:600 12px/16px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;margin:0}
.md-site .md-gold{color:#a67c2e}
.md-site .dk .md-gold{color:#c9a24f}
.md-site .gd .md-gold{color:inherit}
.md-site .md-q{display:block}

/* ---------- Buttons and links ---------- */
.md-site .bt{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 26px;box-sizing:border-box;font:600 12px/1 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;border:1px solid #17120f;border-radius:0;cursor:pointer;transition:background-color .25s ease,color .25s ease,border-color .25s ease,transform .15s ease}
.md-site .bt:active{transform:translateY(1px)}
.md-site .bt[disabled]{opacity:.45;cursor:not-allowed}
.md-site .b-ink{background:#17120f;color:#f6f1e9}.md-site .b-ink:hover{background:#a67c2e;border-color:#a67c2e;color:#17120f}
.md-site .b-gold{background:#a67c2e;border-color:#a67c2e;color:#17120f}.md-site .b-gold:hover{background:#17120f;border-color:#17120f;color:#f6f1e9}
.md-site .b-line{background:transparent;color:#17120f}.md-site .b-line:hover{background:#17120f;color:#f6f1e9}
.md-site .dk .b-ink{background:#f6f1e9;border-color:#f6f1e9;color:#17120f}.md-site .dk .b-ink:hover{background:#c9a24f;border-color:#c9a24f;color:#17120f}
.md-site .dk .b-gold{background:#c9a24f;border-color:#c9a24f;color:#17120f}.md-site .dk .b-gold:hover{background:#f6f1e9;border-color:#f6f1e9;color:#17120f}
.md-site .dk .b-line{border-color:#f6f1e9;color:#f6f1e9}.md-site .dk .b-line:hover{background:#f6f1e9;color:#17120f}
.md-site .gd .b-ink{background:#17120f;border-color:#17120f;color:#f6f1e9}
.md-site .gd .b-ink:hover{background:#f6f1e9;border-color:#f6f1e9;color:#17120f}
.md-site .gd .b-line{border-color:#17120f;color:#17120f}.md-site .gd .b-line:hover{background:#17120f;color:#f6f1e9}
.md-site .lk{font:600 12px/1 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:underline;text-underline-offset:6px;display:inline-flex;align-items:center;gap:10px;min-height:44px;color:inherit}
.md-site button.lk{background:none;border:0;padding:0;cursor:pointer}
.md-site .lk svg{transition:transform .25s ease}.md-site .lk:hover svg{transform:translateX(4px)}
.md-site .lk:hover svg.md-back{transform:scaleX(-1) translateX(4px)}

/* ---------- Focus ---------- */
.md-site :focus-visible{outline:2px solid #7a5a1c;outline-offset:3px}
.md-site .dk :focus-visible{outline-color:#d9b566}

/* ---------- Inner page frame ---------- */
.md-site .sec{padding:clamp(56px,8cqw,120px) clamp(20px,5cqw,80px);box-sizing:border-box}
.md-site .in{max-width:1280px;margin:0 auto}
.md-site .ph{display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;padding:16px;font:500 13px/20px "Instrument Sans",sans-serif;color:#62574d;background:#e3d3ad;overflow:hidden;position:relative}
.md-site .ph.d{background:#3d3324;color:#b9ad9d}
.md-site .ph.o{background:transparent;border:1px dashed #8a7c6d}
.md-site .ph.has-media{padding:0;background:#e3d3ad}
.md-site .ph.has-media > img,.md-site .ph.has-media > video,.md-site .ph.has-media > iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border:0}
.md-site .ph.o.has-media{border:0;background:transparent}
.md-site .ph.o.has-media > img{object-fit:contain;padding:10px}
.md-site .step{border-top:1px solid #17120f;padding-top:20px;transition:border-color .3s ease}
.md-site .step:hover{border-color:#a67c2e}
.md-site .md-rich p{margin:0}
.md-site .md-rich p + p{margin-top:20px}

/* ---------- Cards ---------- */
.md-site .card{display:block;text-decoration:none;color:inherit}
.md-site .card .im{overflow:hidden;position:relative}
.md-site .card .im .ph{width:100%;height:100%;transition:transform .6s ease,background-color .4s ease}
.md-site .card:hover .im .ph{transform:scale(1.04);background:#c9a24f;color:#17120f}
.md-site .card:hover .im .ph.has-media{background:#e3d3ad}
.md-site .card .im .ph.has-media::after{content:"";position:absolute;inset:0;background:#c9a24f;opacity:0;mix-blend-mode:multiply;transition:opacity .4s ease}
.md-site .card:hover .im .ph.has-media::after{opacity:.55}
.md-site .card .tt{transition:color .25s ease}
.md-site .card:hover .tt{color:#a67c2e}
.md-site .card:hover{color:inherit}
.md-site .box{border:1px solid #d8cdbc;padding:clamp(20px,2.4cqw,32px);box-sizing:border-box;transition:border-color .3s ease,background-color .3s ease}
.md-site .box:hover{border-color:#17120f}

/* ---------- Forms ---------- */
.md-site .fd{display:flex;flex-direction:column;gap:6px}
.md-site .fd label,.md-site .lb{font:600 12px/16px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#17120f}
.md-site .fd label .opt-l{color:#62574d;letter-spacing:0;text-transform:none;font-weight:400}
.md-site .fi{font:400 17px/26px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;color:#17120f;background:transparent;border:0;border-bottom:1px solid #8a7c6d;padding:10px 0;min-height:48px;box-sizing:border-box;border-radius:0;width:100%;transition:border-color .2s ease;-webkit-appearance:none;appearance:none;box-shadow:none}
.md-site textarea.fi{min-height:132px;resize:vertical}
.md-site .fi::placeholder{color:#62574d;opacity:1}
.md-site .fi:hover{border-bottom-color:#17120f}
.md-site .fi:focus{outline:none;border-bottom:2px solid #7a5a1c;padding-bottom:9px}
.md-site .fi.err{border-bottom:2px solid #17120f;padding-bottom:9px}
.md-site .fi.ok{border-bottom:2px solid #7a5a1c;padding-bottom:9px}
.md-site .msg{font:500 13px/18px "Instrument Sans",sans-serif;display:flex;align-items:center;gap:6px;margin:0}
.md-site .msg.err{color:#17120f;font-weight:600}.md-site .msg.ok{color:#7a5a1c}
.md-site .chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid #8a7c6d;background:transparent;font:500 15px/1 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;color:#17120f;cursor:pointer;border-radius:0;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.md-site .chip:hover{border-color:#17120f}
.md-site .chip.on{background:#17120f;border-color:#17120f;color:#f6f1e9}
.md-site .dk .fi{color:#f6f1e9;border-bottom-color:#857869}
.md-site .dk .fi::placeholder{color:#b9ad9d}
.md-site .dk .fi:hover{border-bottom-color:#f6f1e9}
.md-site .dk .fi:focus{border-bottom-color:#d9b566}
.md-site .dk .fi.err{border-bottom-color:#f6f1e9}
.md-site .dk .fd label,.md-site .dk .lb{color:#f6f1e9}
.md-site .dk .fd label .opt-l{color:#b9ad9d}
.md-site .dk .msg.err{color:#f6f1e9}.md-site .dk .msg.ok{color:#d9b566}
.md-site .dk .chip{color:#f6f1e9;border-color:#857869}
.md-site .dk .chip:hover{border-color:#f6f1e9}
.md-site .dk .chip.on{background:#c9a24f;border-color:#c9a24f;color:#17120f}
.md-site .md-sum{border:1px solid #17120f;padding:20px 24px}
.md-site .dk .md-sum{border-color:#f6f1e9}
.md-site .md-sum .msg{font-size:15px}
.md-site .md-sum .md-sum-list{margin:8px 0 0;color:#62574d}
.md-site .dk .md-sum .md-sum-list{color:#b9ad9d}
.md-site .md-sent{background:#c9a24f;color:#17120f;padding:28px 32px}
.md-site .md-hp{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%);opacity:0;pointer-events:none}
.md-site .md-busy{opacity:.6;pointer-events:none}

/* ---------- Accordion (native details) ---------- */
.md-site details{border-bottom:1px solid #d8cdbc}
.md-site details:first-of-type{border-top:1px solid #17120f}
.md-site summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;min-height:44px;font:500 clamp(18px,1.6cqw,22px)/1.35 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;transition:color .2s ease}
.md-site summary::-webkit-details-marker{display:none}
.md-site summary:hover{color:#a67c2e}
.md-site summary .pm{flex-shrink:0;width:18px;height:18px;position:relative}
.md-site summary .pm::before,.md-site summary .pm::after{content:"";position:absolute;background:currentColor;transition:transform .25s ease}
.md-site summary .pm::before{left:0;right:0;top:8px;height:2px}
.md-site summary .pm::after{top:0;bottom:0;left:8px;width:2px}
.md-site details[open] summary .pm::after{transform:scaleY(0)}
.md-site details .an{padding:0 0 22px;max-width:44em;color:#62574d}
.md-site details .an p{margin:0}.md-site details .an p + p{margin-top:12px}

/* ---------- Reveal on scroll ---------- */
@keyframes mdrv{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes mdrvp{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){
.md-site .rv{animation:mdrv linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
.md-site .pn .rv{animation:mdrvp linear both;animation-timeline:--pn;animation-range:entry 35% entry 85%}
.md-site .pn .rv2{animation-range:entry 50% entry 92%}
.md-site .pn .rv3{animation-range:entry 62% entry 100%}
}}
/* Fallback for browsers without scroll-driven animations (set by maison.js) */
.md-io .md-site .rv{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease}
.md-io .md-site .pn .rv2{transition-delay:.12s}
.md-io .md-site .pn .rv3{transition-delay:.24s}
.md-io .md-site .rv.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.md-io .md-site .rv{transform:none}}
/* The editor always shows everything */
.elementor-editor-active .md-site .rv,body.elementor-editor-active .rv{animation:none!important;opacity:1!important;transform:none!important}

/* =========================================================
   Navigation (Nav.dc.html)
   ========================================================= */
.md-header{position:relative;z-index:30}
.md-header.md-hm-overlay{position:absolute;top:0;left:0;right:0}
.md-header.md-hm-home{position:fixed;top:0;left:0;right:0;z-index:60}
.admin-bar .md-header.md-hm-home{top:32px}
@media screen and (max-width:782px){.admin-bar .md-header.md-hm-home{top:46px}}
.admin-bar .md-header.md-hm-overlay{top:0}
.md-site .nv{container-type:inline-size;position:relative;color:#17120f;font-family:"Instrument Sans","IBM Plex Sans Arabic",sans-serif;transition:color .3s ease}
.md-site .nv.dk{color:#f6f1e9}
.md-site .nv a{color:inherit;text-decoration:none}
.md-site .nv .nl{font:600 12px/16px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;display:inline-flex;align-items:center;min-height:44px;background:none;border:0;padding:0;color:inherit;cursor:pointer;position:relative}
.md-site .nv .nl::after{content:"";position:absolute;inset-inline:0;bottom:8px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.md-site .nv .nl:hover::after,.md-site .nv .nl[aria-expanded="true"]::after,.md-site .nv .nl.cur::after{transform:scaleX(1)}
.md-site .nv .nl:hover{color:inherit}
.md-site .nv .cta{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;font:600 12px/1 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;background:#a67c2e;color:#17120f;border:1px solid #a67c2e;transition:background-color .25s ease,color .25s ease,border-color .25s ease}
.md-site .nv .cta:hover{background:#17120f;border-color:#17120f;color:#f6f1e9}
.md-site .nv.dk .cta{background:#c9a24f;border-color:#c9a24f;color:#17120f}
.md-site .nv.dk .cta:hover{background:#f6f1e9;border-color:#f6f1e9;color:#17120f}
.md-site .nv .bar-d{display:flex;align-items:center;justify-content:space-between;gap:32px;height:88px;padding-inline:clamp(24px,3.4cqw,56px);box-sizing:border-box}
.md-site .nv .nv-links{display:flex;align-items:center;gap:clamp(16px,2.1cqw,34px)}
.md-site .nv .nv-right{display:flex;align-items:center;gap:22px}
.md-site .nv .nv-lang{display:flex;align-items:center;gap:8px}
.md-site .nv .logo{display:inline-flex;align-items:center;min-height:44px}
.md-site .nv .logo img{height:24px;width:auto;display:block;max-width:none}
.md-site .nv .bar-m .logo img,.md-site .nv .mm .logo img{height:18px}
.md-site .nv .lg-d{display:none!important}
.md-site .nv.dk .lg-l{display:none!important}
.md-site .nv.dk .lg-d{display:block!important}
.md-site .nv .dd{position:absolute;top:88px;inset-inline:clamp(24px,3.4cqw,56px);background:#f6f1e9;border:1px solid #d8cdbc;padding:28px 32px 32px;box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;z-index:5}
.md-site .nv.dk .dd{background:#17120f;border-color:#3b322a}
.md-site .nv .dd[hidden]{display:none}
.md-site .nv .dd-t{font-family:"Flyhead","IBM Plex Sans Arabic",sans-serif;font-size:28px;letter-spacing:.05em;text-transform:uppercase;line-height:1.1}
.md-site .nv .dd-all{font:600 12px/16px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:underline!important;text-underline-offset:6px;min-height:44px;border:0}
.md-site .nv .dd-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;row-gap:2px}
.md-site .nv .dd-g a{display:flex;align-items:center;min-height:44px;font:400 15px/22px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;border-bottom:1px solid transparent}
.md-site .nv .dd-g a span{font:600 11px/1 "Instrument Sans",sans-serif;letter-spacing:.14em;opacity:.6;width:34px;flex-shrink:0}
.md-site .nv .dd-g a:hover{color:#a67c2e}
.md-site .nv.dk .dd-g a:hover{color:#c9a24f}
.md-site .nv .ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:none;border:0;color:inherit;cursor:pointer;padding:0}
.md-site .nv :focus-visible{outline:2px solid #7a5a1c;outline-offset:3px}
.md-site .nv.dk :focus-visible,.md-site .nv .mm :focus-visible{outline-color:#d9b566}
.md-site .nv .bar-m{display:none;align-items:center;justify-content:space-between;height:72px;padding-inline:20px;box-sizing:border-box}
.md-site .nv .mm{position:fixed;top:0;left:0;right:0;min-height:100vh;height:100vh;overflow-y:auto;background:#17120f;color:#f6f1e9;z-index:100;display:flex;flex-direction:column;box-sizing:border-box;padding:0 20px 24px}
.admin-bar .md-site .nv .mm{top:46px;height:calc(100vh - 46px);min-height:0}
.md-site .nv .mm[hidden]{display:none}
.md-site .nv .mm a.big{font-family:"Flyhead","IBM Plex Sans Arabic",sans-serif;font-size:30px;line-height:1.15;letter-spacing:.05em;text-transform:uppercase;display:flex;align-items:center;min-height:46px}
.md-site .nv .mm a:hover{color:#c9a24f}
.md-site .nv .mm-top{display:flex;align-items:center;justify-content:space-between;height:72px;flex-shrink:0}
.md-site .nv .mm-q{font-family:"Flyhead",sans-serif;font-size:44px;line-height:.7;color:#c9a24f;margin-top:12px}
.md-site .nv .mm-svc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;padding:4px 0 10px;border-bottom:1px solid #3b322a;margin-bottom:6px}
.md-site .nv .mm-svc a{font:400 13px/18px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;color:#b9ad9d;display:flex;align-items:center;min-height:32px}
.md-site .nv .mm-cta{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.md-site .nv .mm-cta a{display:flex;align-items:center;justify-content:center;min-height:48px;font:600 12px/1 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.md-site .nv .mm-cta a.g{background:#c9a24f;color:#17120f}
.md-site .nv .mm-cta a.g:hover{background:#f6f1e9;color:#17120f}
.md-site .nv .mm-cta a.l{border:1px solid #f6f1e9}
.md-site .nv .mm-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:20px}
.md-site .nv .mm-lang{display:flex;align-items:center;gap:10px;font:600 12px/16px "Instrument Sans",sans-serif;letter-spacing:.14em}
.md-site .nv .mm-lang a{display:inline-flex;align-items:center;min-height:44px}
.md-site .nv .ar-l{letter-spacing:0!important;font-family:"IBM Plex Sans Arabic",sans-serif!important}
@container (max-width: 1020px){.md-site .nv .bar-d{display:none!important}.md-site .nv .bar-m{display:flex}.md-site .nv .dd{display:none!important}}
html.md-lock,html.md-lock body{overflow:hidden!important}

/* Minimal header and footer (Brand audit page) */
.md-site .mh{display:flex;align-items:center;justify-content:space-between;gap:16px;height:88px;padding-inline:clamp(20px,3.4vw,56px);box-sizing:border-box}
.md-site .mh .logo{display:inline-flex;align-items:center;min-height:44px}
.md-site .mh .logo img{height:clamp(18px,1.7vw,24px);width:auto;display:block;max-width:none}
.md-site .mf{background:#17120f;color:#b9ad9d;padding:20px clamp(20px,3.4vw,56px);display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-size:13px;line-height:20px;border-top:1px solid #3b322a}

/* =========================================================
   Footer (Footer.dc.html)
   ========================================================= */
.md-site .ft{container-type:inline-size;background:#17120f;color:#f6f1e9;font-family:"Instrument Sans","IBM Plex Sans Arabic",sans-serif}
.md-site .ft a{color:inherit;text-decoration:none;transition:color .2s ease}
.md-site .ft a:hover{color:#c9a24f}
.md-site .ft .ft-in{max-width:1328px;margin:0 auto;box-sizing:border-box;padding:clamp(36px,4.4cqw,64px) clamp(20px,3.4cqw,56px) 28px;display:flex;flex-direction:column;gap:clamp(28px,3.4cqw,48px)}
.md-site .ft .ft-top{display:flex;flex-wrap:wrap;gap:clamp(28px,4cqw,64px);justify-content:space-between}
.md-site .ft .ft-brand{display:flex;flex-direction:column;gap:18px;flex:1 1 260px;max-width:340px}
.md-site .ft .ft-brand img{height:72px;width:auto;display:block;max-width:none}
.md-site .ft .ft-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:28px clamp(24px,3cqw,48px);flex:3 1 560px}
.md-site .ft .ft-svc{grid-column:span 2}
.md-site .ft .ft-svc-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));column-gap:24px}
.md-site .ft .fl{display:flex;align-items:center;min-height:32px;font:400 15px/22px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;color:#f6f1e9}
.md-site .ft .fl.mu{color:#b9ad9d}
.md-site .ft .fo{font:600 12px/16px "Instrument Sans","IBM Plex Sans Arabic",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#b9ad9d;margin:0 0 12px}
.md-site .ft .ft-bot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #3b322a;padding-top:20px}
.md-site .ft .ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #3b322a;transition:border-color .2s ease,color .2s ease}
.md-site .ft .ic:hover{border-color:#c9a24f}
.md-site .ft .ic.tx{width:auto;padding:0 12px;font-size:12px;color:#b9ad9d}
.md-site .ft :focus-visible{outline:2px solid #d9b566;outline-offset:3px}

/* =========================================================
   Homepage (Main.dc.html)
   ========================================================= */
html.md-snap{scroll-snap-type:y mandatory;scroll-behavior:smooth;scrollbar-width:none}
html.md-snap::-webkit-scrollbar{display:none}
.md-site .pn{position:relative;height:100vh;min-height:620px;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;overflow:hidden;view-timeline-name:--pn;view-timeline-axis:block}
.md-site .sv{display:flex}
.md-site .sv .tx{width:50%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;gap:clamp(14px,1.7cqw,24px);padding:120px clamp(24px,5cqw,80px) clamp(40px,5cqw,72px);position:relative;z-index:2}
.md-site .pn .bgm{position:absolute;inset:0;z-index:0;overflow:hidden}
.md-site .pn .bgm img,.md-site .pn .bgm video{width:100%;height:100%;object-fit:cover;display:block}
.md-site .pn .bgm .dim{position:absolute;inset:0;background:#17120f}
.md-site .hph{position:absolute;top:120px;font:500 13px/20px "Instrument Sans",sans-serif;letter-spacing:.04em;border:1px dashed currentColor;padding:8px 12px;opacity:.75;z-index:1}
.md-site .ft-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid;padding-top:16px}
.md-site .logo-ph{font:500 11px/1 "Instrument Sans",sans-serif;border:1px dashed currentColor;padding:12px 14px;opacity:.75;white-space:nowrap}
.md-site .ft-row .cl-logo{max-height:44px;max-width:140px;width:auto;height:auto;display:block}
.md-dots{position:fixed;inset-inline-end:20px;top:50%;transform:translateY(-50%);z-index:59;display:flex;flex-direction:column}
.md-dots a{display:flex;align-items:center;justify-content:center;width:24px;height:24px}
.md-dots a span{display:block;width:8px;height:8px;background:rgba(23,18,15,.35);transition:height .3s ease,background-color .3s ease}
.md-dots.on-dark a span{background:rgba(246,241,233,.45)}
.md-dots a.on span{height:24px;background:#17120f}
.md-dots.on-dark a.on span{background:#c9a24f}
.md-dots a:focus-visible{outline:2px solid #7a5a1c;outline-offset:2px}
.md-dots.on-dark a:focus-visible{outline-color:#d9b566}
.md-site .reel{display:inline-flex;align-items:center;gap:18px;background:none;border:0;padding:0;color:inherit;cursor:pointer;font:600 12px/1 "Instrument Sans",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.md-site .reel .sq{position:relative;width:64px;height:64px;border:1px solid #c9a24f;display:flex;align-items:center;justify-content:center;color:#c9a24f;transition:background-color .25s ease,color .25s ease}
.md-site .reel .sq::after{content:"";position:absolute;inset:-1px;border:1px solid #c9a24f;animation:mdpulse 2.4s ease-out infinite}
.md-site .reel:hover .sq{background:#c9a24f;color:#17120f}
.md-site .caret{display:inline-block;width:3px;height:1em;background:#c9a24f;margin-inline-start:4px;vertical-align:-.12em;animation:mdblink 1s steps(1) infinite}
.md-site .cue{display:inline-flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;min-height:44px}
.md-site .cue i{display:block;width:1px;height:36px;background:#c9a24f;transform-origin:top;animation:mdcue 2s ease-in-out infinite}
.md-site .vid-m{display:none}
.md-site .hero .hc{position:relative;z-index:1}
.md-ld{position:fixed;inset:0;z-index:100000;background:#17120f;display:flex;align-items:center;justify-content:center;animation:mdldout .9s cubic-bezier(.7,0,.2,1) 2.5s forwards;container-type:inline-size}
.md-ld .q{font-family:"Flyhead",sans-serif;color:#c9a24f;font-size:clamp(64px,9cqw,132px);line-height:.62;align-self:flex-start;opacity:0;animation:mdrise .6s ease .15s forwards}
.md-ld .w{font-family:"Flyhead",sans-serif;font-size:clamp(34px,7cqw,100px);letter-spacing:.06em;line-height:1.06;text-transform:uppercase;color:transparent;-webkit-text-stroke:1px #f6f1e9;opacity:0;animation:mdshow .5s ease .6s forwards,mdfill .9s ease 1.3s forwards}
.md-ld .ld-in{display:flex;gap:clamp(8px,1.2cqw,18px)}
.md-site .h-in{opacity:0;animation:mdrise .8s ease forwards}
.md-reel{position:fixed;inset:0;z-index:100001;background:#17120f;color:#f6f1e9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;box-sizing:border-box;transform-origin:left bottom;animation:mdopen .45s cubic-bezier(.2,.7,.2,1) both}
.md-reel[hidden]{display:none}
.md-reel .rl-x{position:absolute;top:20px;inset-inline-end:20px}
.md-reel .rl-v{width:min(100%,132vh);aspect-ratio:16/9;background:#241c18;border:1px solid #3b322a;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;box-sizing:border-box;font-size:15px;line-height:22px;color:#b9ad9d;position:relative}
.md-reel .rl-v.has-media{padding:0;border:0;background:#000}
.md-reel .rl-v video,.md-reel .rl-v iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
@keyframes mdrise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes mdshow{to{opacity:1}}
@keyframes mdfill{to{color:#f6f1e9}}
@keyframes mdldout{to{transform:translateY(-100%);visibility:hidden}}
@keyframes mdpulse{from{transform:scale(1);opacity:.8}to{transform:scale(1.5);opacity:0}}
@keyframes mdblink{50%{opacity:0}}
@keyframes mdcue{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
@keyframes mdopen{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .md-ld{display:none}
  html.md-snap{scroll-snap-type:none!important;scroll-behavior:auto}
  .md-site .h-in{opacity:1;animation:none}
  .md-site .reel .sq::after,.md-site .caret,.md-site .cue i,.md-reel{animation:none}
}
@container (max-width: 820px){
  .md-site .pn{height:auto;min-height:100vh}
  .md-site .sv{flex-direction:column;justify-content:flex-end!important}
  .md-site .sv .tx{width:100%;margin-top:38vh;padding-top:32px}
  .md-site .hph{top:96px;inset-inline:20px auto!important}
  .md-site .vid-d{display:none!important}
  .md-site .vid-m{display:block}
  .md-site .hero{padding-top:120px!important}
}
@media (max-width:820px){
  html.md-snap{scroll-snap-type:none!important}
  .md-dots{display:none!important}
}
/* In the Elementor editor: no loader, no snapping, content visible straight away */
.elementor-editor-active .md-ld,.elementor-editor-preview .md-ld{display:none!important}
.elementor-editor-active .md-site .h-in,body.elementor-editor-active .h-in{opacity:1;animation:none}
html.md-editor{scroll-snap-type:none!important}

/* =========================================================
   Inner page components
   ========================================================= */
/* Services index (Services.dc.html) */
.md-site .row{display:grid;grid-template-columns:clamp(36px,5cqw,72px) minmax(0,1fr) 44px;align-items:center;gap:0 clamp(8px,2cqw,24px);padding:clamp(18px,2.2cqw,30px) 0;border-top:1px solid #17120f;text-decoration:none;color:#17120f;position:relative;transition:background-color .3s ease,color .3s ease,padding .3s ease}
.md-site .row:hover,.md-site .row:focus-visible{background:#17120f;color:#f6f1e9;padding-inline:clamp(12px,2cqw,28px)}
.md-site .row .pv{position:absolute;inset-inline-end:clamp(80px,10cqw,150px);top:50%;width:230px;height:150px;transform:translateY(-50%) scale(.92);opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease;z-index:2}
.md-site .row:hover .pv,.md-site .row:focus-visible .pv{opacity:1;transform:translateY(-50%) scale(1)}
.md-site .row .ar{transition:transform .3s ease,color .3s ease;justify-self:end}
.md-site .row:hover .ar{transform:translateX(6px);color:#c9a24f}
.md-site .row:hover .nm{color:#c9a24f}
.md-site .row .ln{transition:opacity .3s ease}
@container (max-width: 900px){.md-site .row .pv{display:none}}
.md-site .grp a{display:flex;align-items:center;min-height:40px;text-decoration:none;border-bottom:1px solid #3b322a}

/* Next service / project link */
.md-site .nx{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 40px;text-decoration:none;color:#f6f1e9;transition:color .3s ease}
.md-site .nx:hover{color:#c9a24f}
.md-site .nx svg{transition:transform .3s ease}
.md-site .nx:hover svg{transform:translateX(10px)}

/* Portfolio grid */
.md-site .pgrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(28px,3.4cqw,56px) clamp(16px,2cqw,28px);align-items:start}
.md-site .pgrid .card[hidden]{display:none}
@container (max-width: 760px){.md-site .pgrid .card{grid-column:1 / -1!important;margin-top:0!important}}

/* Contact routing cards */
.md-site .rt{display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:240px;text-decoration:none;padding:clamp(24px,3cqw,40px);box-sizing:border-box;transition:background-color .3s ease,color .3s ease}
.md-site .rt svg{transition:transform .3s ease}
.md-site .rt:hover svg{transform:translateX(8px)}
.md-site .rt.a{background:#17120f;color:#f6f1e9}.md-site .rt.a:hover{background:#3d3324;color:#f6f1e9}
.md-site .rt.b{background:#c9a24f;color:#17120f}.md-site .rt.b:hover{background:#a67c2e;color:#17120f}

/* Article */
.md-site .sh{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #8a7c6d;color:#17120f;background:transparent;cursor:pointer;padding:0;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.md-site .sh:hover{background:#17120f;border-color:#17120f;color:#f6f1e9}
.md-site .md-article{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:22px;font-size:19px;line-height:32px}
.md-site .md-article > *{margin:0}
.md-site .md-article > p:first-child,.md-site .md-article > .md-lead{font-size:clamp(21px,1.9cqw,26px);line-height:1.5}
.md-site .md-article h2{font-family:"Flyhead","IBM Plex Sans Arabic","Instrument Sans",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.04em;line-height:1.04;font-size:clamp(26px,2.8cqw,38px);margin-top:18px}
.md-site .md-article h3{font-family:"Flyhead","IBM Plex Sans Arabic","Instrument Sans",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.06em;line-height:1.15;font-size:24px;margin-top:12px}
.md-site .md-article blockquote,.md-site .md-article .wp-block-pullquote,.md-site .md-article .wp-block-quote{margin:22px 0;display:flex;flex-direction:column;gap:14px;border-top:1px solid #17120f;border-bottom:1px solid #17120f;padding:28px 0;border-left:0;border-right:0}
.md-site .md-article blockquote::before,.md-site .md-article .wp-block-pullquote::before{content:"\201C";font-family:"Flyhead",sans-serif;font-size:84px;line-height:.62;color:#a67c2e;display:block}
.md-site .md-article .wp-block-pullquote blockquote{border:0;padding:0;margin:0}
.md-site .md-article .wp-block-pullquote blockquote::before{content:none}
.md-site .md-article blockquote p{font-family:"Flyhead","IBM Plex Sans Arabic","Instrument Sans",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.04em;font-size:clamp(26px,3cqw,40px);line-height:1.14;margin:0}
.md-site .md-article blockquote cite{font:600 12px/16px "Instrument Sans",sans-serif;letter-spacing:.14em;text-transform:uppercase;font-style:normal;color:#62574d}
.md-site .md-article figure{margin:0}
.md-site .md-article img{display:block;width:100%;height:auto}
.md-site .md-article figcaption,.md-site .md-article .wp-element-caption{font-size:14px;line-height:20px;color:#62574d;margin-top:22px;text-align:start}
.md-site .md-article a{color:#7a5a1c;text-underline-offset:4px}
.md-site .md-article ul,.md-site .md-article ol{padding-inline-start:1.2em;margin:0}
.md-site .md-article .ph{font-size:13px;line-height:20px}

/* Brand audit */
.md-site .opt{display:flex;align-items:center;gap:16px;width:100%;min-height:60px;padding:12px 20px;box-sizing:border-box;background:transparent;border:1px solid #857869;border-radius:0;color:#f6f1e9;font:500 clamp(16px,1.5cqw,19px)/1.35 "Instrument Sans","IBM Plex Sans Arabic",sans-serif;text-align:start;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.md-site .opt .k{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid currentColor;font:600 12px/1 "Instrument Sans",sans-serif;letter-spacing:.06em}
.md-site .opt:hover{border-color:#c9a24f;background:#241c18}
.md-site .opt.on{background:#c9a24f;border-color:#c9a24f;color:#17120f}
.md-site .stp{animation:mdstep .45s ease both}
.md-site .bar i{display:block;height:100%;background:#17120f;transform-origin:left;animation:mdbar .9s cubic-bezier(.2,.7,.2,1) both}
.md-site .off{display:flex;flex-direction:column;gap:18px;padding:clamp(24px,3cqw,44px);box-sizing:border-box}
.md-site [data-phase][hidden],.md-site [data-step][hidden]{display:none!important}
@keyframes mdstep{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes mdbar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.md-site .stp,.md-site .bar i{animation:none}}

/* Blog */
.md-site .bgrid .card[hidden]{display:none}

/* =========================================================
   Right to left (Arabic) — mirrors HomeAr.dc.html
   ========================================================= */
[dir="rtl"] .md-site .fh{font-family:"IBM Plex Sans Arabic","Instrument Sans",sans-serif;font-weight:600;letter-spacing:0;line-height:1.3;text-transform:none}
[dir="rtl"] .md-site .lat{font-family:"Flyhead",sans-serif;font-weight:400;text-transform:uppercase}
[dir="rtl"] .md-site .ov{font:600 14px/20px "IBM Plex Sans Arabic","Instrument Sans",sans-serif;letter-spacing:0;text-transform:none}
[dir="rtl"] .md-site .bt{font:600 15px/1 "IBM Plex Sans Arabic","Instrument Sans",sans-serif;letter-spacing:0;text-transform:none}
[dir="rtl"] .md-site .lk{font:600 15px/1 "IBM Plex Sans Arabic","Instrument Sans",sans-serif;letter-spacing:0;text-transform:none;text-underline-offset:8px}
[dir="rtl"] .md-site .md-q{font-family:"Flyhead",sans-serif;font-weight:400;display:inline-block;transform:scaleX(-1);line-height:.62}
[dir="rtl"] .md-site .hph{font:500 14px/22px "IBM Plex Sans Arabic",sans-serif;letter-spacing:0}
[dir="rtl"] .md-site .logo-ph{font:500 12px/1 "IBM Plex Sans Arabic",sans-serif}
[dir="rtl"] .md-site .reel{font:600 15px/1 "IBM Plex Sans Arabic",sans-serif;letter-spacing:0;text-transform:none}
[dir="rtl"] .md-site .reel svg,[dir="rtl"] .md-site .md-flip{transform:scaleX(-1)}
[dir="rtl"] .md-site .md-reel{transform-origin:right bottom}
[dir="rtl"] .md-site .md-ld{direction:ltr}
[dir="rtl"] .md-site .nv .nl,[dir="rtl"] .md-site .nv .cta{letter-spacing:0;font-size:14px;text-transform:none}
[dir="rtl"] .md-site .nv .nl::after{transform-origin:right}
[dir="rtl"] .md-site .nv .dd-t,[dir="rtl"] .md-site .nv .mm a.big{font-family:"IBM Plex Sans Arabic",sans-serif;font-weight:600;letter-spacing:0;text-transform:none}
[dir="rtl"] .md-site .nv .dd-all,[dir="rtl"] .md-site .nv .mm-cta a{letter-spacing:0;font-size:14px;text-transform:none}
[dir="rtl"] .md-site .ft .fo{letter-spacing:0;font-size:14px;text-transform:none}
[dir="rtl"] .md-site .fd label,[dir="rtl"] .md-site .lb{letter-spacing:0;font-size:14px;text-transform:none}
[dir="rtl"] .md-site summary .pm::after{left:auto;right:8px}
[dir="rtl"] .md-site .md-arrow,[dir="rtl"] .md-site .lk svg,[dir="rtl"] .md-site .nx svg,[dir="rtl"] .md-site .rt svg{transform:scaleX(-1)}
[dir="rtl"] .md-site .lk svg.md-back{transform:none}
[dir="rtl"] .md-site .lk:hover svg{transform:scaleX(-1) translateX(4px)}
[dir="rtl"] .md-site .lk:hover svg.md-back{transform:translateX(4px)}
[dir="rtl"] .md-site .nx:hover svg{transform:scaleX(-1) translateX(10px)}
[dir="rtl"] .md-site .rt:hover svg{transform:scaleX(-1) translateX(8px)}
[dir="rtl"] .md-site .row .ar{transform:scaleX(-1)}
[dir="rtl"] .md-site .row:hover .ar{transform:scaleX(-1) translateX(6px)}
[dir="rtl"] .md-site .bar i{transform-origin:right}
[dir="rtl"] .md-site .hero h1{font-size:clamp(36px,5.6cqw,80px)!important}
[dir="rtl"] .md-site .hero .ty{line-height:1.5!important}
[dir="rtl"] .md-site .sv h2{font-size:clamp(32px,4cqw,56px)!important}
[dir="rtl"] .md-site .pn p.lines{line-height:1.7!important}
[dir="rtl"] .md-site .pn-about h2{font-size:clamp(32px,4.8cqw,68px)!important}
[dir="rtl"] .md-site .pn-about p.lines,[dir="rtl"] .md-site .pn-audit p.lines,[dir="rtl"] .md-site .pn-close p.lines{line-height:1.8!important}
[dir="rtl"] .md-site .pn-audit h2{font-size:clamp(32px,5cqw,72px)!important}
[dir="rtl"] .md-site .pn-close h2{font-size:clamp(36px,6cqw,88px)!important}

/* Loader shown once per session (Appearance → Maison Digitale) */
.md-ld-seen .md-ld{display:none!important}
html.md-ld-seen{--md-ld:0s}
