:root{--surface:#fff;--pale:#f3f6fb;--ink:#101c30;--muted:#536074;--line:#dce2eb;--blue:#174be8;color-scheme:light}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Arabic",Tahoma,sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;background:var(--surface);color:var(--ink)}
h1,h2,h3{font-weight:650;letter-spacing:-.035em}p{line-height:1.7}#about .aboutstatement,.aboutstatement{font-size:clamp(1.05rem,1.65vw,1.35rem);font-weight:450;line-height:1.7;letter-spacing:-.015em}.language-fluency{font-size:1rem;font-weight:550;color:var(--muted)}
nav .wrap{flex-wrap:wrap;gap:10px 22px;padding-block:12px}.site-controls{display:flex;gap:8px;align-items:center}.site-controls select{width:auto;max-width:145px;margin:0;padding:9px 28px 9px 12px;min-height:44px;border-radius:8px;font-size:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}.theme-switch{min-height:44px;padding:9px 12px;border-radius:8px;background:var(--pale);color:var(--ink);border:1px solid var(--line);cursor:pointer;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a,input,textarea,select{touch-action:manipulation}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #7099ff;outline-offset:4px}input,select,textarea{font-size:16px}.briefout .button{margin-block:6px}#emailbrief{white-space:normal}.email-direct{display:block;margin-block:20px;overflow-wrap:anywhere}.brand img,.rise-signature img{background:white;padding:4px;border-radius:5px;box-sizing:content-box}.case{scroll-margin-top:12px;transform:none!important;opacity:1!important}.legal-shell{max-width:900px;margin:auto;padding:60px 5%}.legal-shell h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.15}.legal-shell h2{font-size:1.5rem;letter-spacing:-.02em}.legal-shell section{padding-block:28px;border-top:1px solid var(--line)}.legal-shell a{color:var(--blue);overflow-wrap:anywhere}.legal-nav{display:flex;flex-wrap:wrap;gap:12px;margin-block:24px}.legal-nav a{padding:8px 12px;background:var(--pale);border-radius:8px}.legal-shell p,.legal-shell li{font-size:1rem}.legal-shell ul{padding-inline-start:24px}.legal-header{border-bottom:1px solid var(--line);background:var(--pale)}.legal-header>div{max-width:1100px;margin:auto;padding:16px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.legal-header a{color:var(--blue)}
html[dir=rtl] body{font-family:"Noto Sans Arabic",Tahoma,"Segoe UI",sans-serif}html[dir=rtl] h1,html[dir=rtl] h2{letter-spacing:0;line-height:1.4}html[dir=rtl] .proof-flow{direction:rtl}html[dir=rtl] input[type=email],html[dir=rtl] a[href^="mailto:"]{direction:ltr;unicode-bidi:isolate}html[dir=rtl] .step:before{padding-inline-end:10px}html[dir=rtl] .service ul{padding-left:0;padding-inline-start:18px}
@media(max-width:900px){nav .wrap{justify-content:space-between}.site-controls{width:100%;justify-content:flex-end}.links{flex-wrap:wrap}.legal-header .site-controls{justify-content:flex-start;width:auto}}
@media(max-width:600px){.wrap{padding-inline:5%}.site-controls{justify-content:space-between}.site-controls select{flex:1;max-width:180px}.theme-switch{min-width:110px}.links{width:100%;justify-content:space-between;gap:4px}.links a{min-height:44px;display:inline-flex;align-items:center}.links .button{font-size:12px}.buildora-hero{padding:24px}.hero h1{font-size:clamp(2rem,9vw,3rem)}.legal-shell{padding-top:32px}.legal-shell h1{letter-spacing:-.025em}footer .wrap{gap:16px}.about-nav .wrap{justify-content:space-between}.profile,.story{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}.profile-note{max-width:100%}nav .brand{min-height:44px}.legal-header>div{gap:14px}.legal-header .site-controls{width:100%}body{overflow-wrap:break-word}h1,h2,h3,p{max-width:100%}.fields>*,.split>*,.case>*{min-width:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:600px){nav .wrap{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 12px}.brand{grid-column:1;grid-row:1}.brand img{width:96px;height:auto}.site-controls{grid-column:2;grid-row:1;width:auto;gap:6px;justify-content:flex-end}.site-controls select{width:100px;min-width:0;max-width:115px;padding:8px;font-size:14px}.theme-switch{font-size:12px;padding:8px;min-width:70px}.links{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,1fr);width:100%}.links .button{grid-column:1/-1;min-height:38px;padding:5px;margin-top:4px}.links a{justify-content:center}.about-nav .links{grid-template-columns:repeat(3,1fr)}.legal-header .site-controls select{min-width:110px}.legal-header .theme-switch{min-width:90px}}
/* BENO type system: bundled fonts, no third-party font requests. */
@font-face{font-family:'BENO Inter';src:url('fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'BENO Arabic';src:url('fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'BENO Arabic';src:url('fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'BENO Arabic';src:url('fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'BENO Arabic';src:url('fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
body{font-family:'BENO Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-optical-sizing:auto;font-synthesis:none;font-weight:400}
button,input,textarea,select{font-family:inherit;font-optical-sizing:auto}
h1,h2,h3{font-family:inherit;font-weight:600;letter-spacing:-.035em;line-height:1.2}.hero h1{font-weight:650;letter-spacing:-.045em;line-height:1.12}
p,li{font-weight:400}b,strong,summary,.button{font-weight:600}.eyebrow{font-weight:600;letter-spacing:.12em}.aboutstatement{font-weight:400!important;font-size:clamp(1.125rem,1.8vw,1.4rem);line-height:1.7!important;letter-spacing:-.015em}
html[lang=ar] body{font-family:'BENO Arabic','BENO Inter',Tahoma,sans-serif;font-size:17px;line-height:1.9;font-weight:400}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{font-family:'BENO Arabic','BENO Inter',sans-serif;font-weight:600;letter-spacing:0!important;line-height:1.45}
html[lang=ar] .hero h1{font-size:clamp(2.4rem,4.5vw,3.9rem);font-weight:600;line-height:1.4;letter-spacing:0;text-wrap:balance}
html[lang=ar] p,html[lang=ar] li{line-height:1.95;letter-spacing:0!important}
html[lang=ar] .intro{font-size:1.125rem;line-height:1.95}
html[lang=ar] .eyebrow,html[lang=ar] .pill,html[lang=ar] .number,html[lang=ar] .name{letter-spacing:0!important;text-transform:none;font-size:.875rem;font-weight:500}
html[lang=ar] .aboutstatement{font-size:clamp(1.2rem,1.8vw,1.5rem);line-height:1.95!important;font-weight:400!important}
html[lang=ar] .language-fluency{font-size:1.0625rem;font-weight:500}
html[lang=ar] .button,html[lang=ar] summary,html[lang=ar] b,html[lang=ar] strong{font-weight:600}
html[lang=ar] input,html[lang=ar] textarea,html[lang=ar] select{font-size:17px;line-height:1.6}
html[lang=ar] .case p,html[lang=ar] .service p,html[lang=ar] .service ul,html[lang=ar] details p{font-size:1rem;line-height:1.95}
html[lang=ar] .legal-shell p,html[lang=ar] .legal-shell li{font-size:1.0625rem;line-height:1.95}
html[lang=ar] .links a{font-size:.9375rem}html[lang=ar] .textlink{font-size:1rem}
html[lang=ar] .site-controls select{font-size:15px}html[lang=ar] .theme-switch{font-size:14px}
html[lang=tr] .eyebrow,html[lang=tr] .pill{text-transform:none;letter-spacing:.055em}
html[lang=es] h1,html[lang=tr] h1{hyphens:none;overflow-wrap:normal}
@media(max-width:600px){html[lang=ar] .hero h1{font-size:clamp(2rem,8.4vw,2.8rem);line-height:1.45}html[lang=ar] h2{font-size:clamp(1.65rem,7vw,2.3rem)}html[lang=ar] .links a{font-size:14px}html[lang=ar] .links .button{font-size:14px}.legal-shell h1{line-height:1.25}html[lang=ar] .legal-shell h1{line-height:1.5}.site-controls select{font-family:'BENO Inter','BENO Arabic',sans-serif}.aboutstatement{font-size:1.125rem!important}html[lang=ar] .aboutstatement{font-size:1.2rem!important}}
/* Icon-only appearance switch: accessible name remains available to assistive tools. */
.theme-switch,html[lang=ar] .theme-switch{width:44px;min-width:44px!important;height:44px;min-height:44px;padding:10px!important;display:inline-grid;place-items:center;flex:none;line-height:1;border-radius:50%;font-size:0!important;box-shadow:0 2px 7px #101c3008}.theme-switch svg{display:block;width:21px;height:21px}.theme-switch:hover{border-color:var(--blue)}
@media(max-width:600px){.site-controls{gap:9px}.site-controls select{max-width:125px}.theme-switch{justify-self:end}}
/* Keep the enquiry introduction and complete form in exactly two grid cells. */
#contact>.wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:clamp(28px,5vw,70px)}
#contact .contact-intro{min-width:0}#contact .email-direct{display:inline-flex;min-height:44px;align-items:center;margin:12px 0 4px;font-size:1rem;overflow-wrap:anywhere}#contact .contact-intro>p:last-child{margin-top:8px}#contact form{margin-top:0;min-width:0}#contact input,#contact select{min-height:48px;margin-top:7px}#contact .fields{align-items:start}#contact .fields label{min-width:0}#contact textarea{min-height:120px}#contact .briefout textarea{min-height:240px}
@media(max-width:760px){#contact>.wrap{grid-template-columns:minmax(0,1fr);gap:24px}#contact .contact-intro>p:last-child{margin-bottom:0}#contact form{margin-top:0}#contact .fields{grid-template-columns:minmax(0,1fr);gap:0}}

/* Selected projects: consistent case-study cards with clear role and delivery labels. */
#experience .case{margin:18px 0;padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--surface);align-items:start;box-shadow:0 7px 24px #101c3005}#experience .case h3{font-size:clamp(1.35rem,2.2vw,1.7rem);letter-spacing:-.025em}#experience .case p{font-size:.9375rem;line-height:1.8}#experience .case p b,#experience .case p strong{color:var(--ink);display:block;margin-bottom:4px;font-weight:600}#experience .case .pill{line-height:1.6}html[data-theme=dark] #experience .case{background:var(--surface)}@media(max-width:760px){#experience .case{padding:22px;gap:16px;margin:18px 0;border-radius:14px}#experience .case .textlink{max-width:100%}}


/* Night palette: neutral surfaces, deliberate hierarchy, restrained BENO blue. */
html[data-theme=dark]{
 --surface:#101216;--pale:#171a20;--ink:#f0f2f6;--muted:#b0b7c5;
 --line:#303640;--blue:#9cb8ff;--night-card:#1c2028;--night-hover:#242a34;
 color-scheme:dark;background:var(--surface);
}
html[data-theme=dark] body{background:var(--surface);color:var(--ink)}
html[data-theme=dark] nav{background:rgba(16,18,22,.97);border-color:var(--line)}
html[data-theme=dark] nav.scrolled{box-shadow:0 8px 28px #0003}
html[data-theme=dark] .preview{background:#171a20;color:#b0b7c5;border-bottom:1px solid #272d36}
html[data-theme=dark] .buildora-hero{
 background:radial-gradient(ellipse at 95% 0%,#202b43 0%,transparent 60%),#151920;
 border:1px solid #303743;color:var(--ink);
}
html[data-theme=dark] .buildora-hero h1{color:#f0f2f6}
html[data-theme=dark] .buildora-hero .intro{color:#bdc5d3}
html[data-theme=dark] .buildora-hero .eyebrow{color:#a8bfff}
html[data-theme=dark] .workflow,html[data-theme=dark] .proof-panel{
 background:#1c2028;color:var(--ink);border:1px solid #3a424f;
 box-shadow:0 12px 32px #0002;transform:none;
}
html[data-theme=dark] .workflow:after{display:none}
html[data-theme=dark] .proof-panel p{color:#bdc5d3}
html[data-theme=dark] .proof-panel .eyebrow,html[data-theme=dark] .experience-link svg{color:var(--blue)}
html[data-theme=dark] .proof-flow{color:#d5dbe5;border-color:#3a424f}
html[data-theme=dark] .experience-index{background:var(--pale);border-color:var(--line)}
html[data-theme=dark] .service,html[data-theme=dark] .experience-link,
html[data-theme=dark] #experience .case,html[data-theme=dark] .profile-note{
 background:var(--night-card);color:var(--ink);border-color:var(--line);box-shadow:none;
}
html[data-theme=dark] .service{border-top-color:#638fff}
html[data-theme=dark] .experience-link small{color:var(--muted)}
html[data-theme=dark] .case:hover{background:var(--night-card);box-shadow:none}
html[data-theme=dark] .num{background:#26334d;color:#b8ccff}
html[data-theme=dark] .milestone{border-color:var(--line)}
html[data-theme=dark] .button{
 background:#2857d8;border-color:#4775ee;color:#fff;border-radius:7px;
 box-shadow:0 2px 5px #0003;transform:none;
}
html[data-theme=dark] .button.secondary{
 background:#242a34;color:#edf1f8;border-color:#718099;box-shadow:0 2px 5px #0002;
}
html[data-theme=dark] .contact{background:#151920;color:var(--ink)}
html[data-theme=dark] .contact p{color:#bdc5d3}
html[data-theme=dark] .contact .eyebrow{color:var(--blue)}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{
 background:#11151c;color:#edf1f8;border-color:#718099;border-radius:7px;
}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aab4c4;opacity:1}
html[data-theme=dark] input:focus,html[data-theme=dark] textarea:focus,html[data-theme=dark] select:focus{
 border-color:#9cb8ff;box-shadow:0 0 0 3px #9cb8ff26;
}
html[data-theme=dark] #output{background:#1c222d;color:#edf1f8}
html[data-theme=dark] .theme-switch,html[data-theme=dark] #backtop{
 background:#202630;color:#dce6ff;border-color:#718099;box-shadow:0 2px 8px #0002;
}
html[data-theme=dark] .brand img{background:#f5f7fb;filter:none;box-shadow:none}
html[data-theme=dark] .skip-link{background:#242a34;color:#fff}
html[data-theme=dark] :focus-visible{outline-color:#b8ccff}
html[data-theme=dark] ::selection{background:#355bb3;color:#fff}
html[data-theme=dark] footer{border-top:1px solid var(--line)}
@media(hover:hover) and (pointer:fine){
 html[data-theme=dark] .button:hover{background:#3363e5;border-color:#779bff;box-shadow:0 4px 12px #0003;transform:none}
 html[data-theme=dark] .button.secondary:hover{background:#303947;border-color:#91a2bd}
 html[data-theme=dark] .service:hover,html[data-theme=dark] .service:focus-within,
 html[data-theme=dark] .experience-link:hover{background:#242a34;border-color:#718099;box-shadow:none}
}
