:root{--paper:#F7F8F6;--ink:#14201B;--muted:#5B6B66;--line:#DCE3DF;--accent:#0F5C55}
*{box-sizing:border-box}
html{scroll-padding-top:4.5rem}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.9 "IBM Plex Sans Arabic",Tahoma,sans-serif}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.wrap{max-width:46rem;margin:0 auto;padding:0 1.5rem}
header{position:sticky;top:0;background:var(--paper);border-bottom:1px solid var(--line);z-index:5}
header .wrap{display:flex;justify-content:space-between;align-items:center;min-height:3.5rem}
.logo{font-weight:700;text-decoration:none}
nav{display:flex;gap:1.4rem;font-size:.95rem}
nav a{text-decoration:none;color:var(--muted)}
nav a:hover{color:var(--accent)}
.hero{padding:5rem 0 3rem}
.hero small{color:var(--muted);font-size:1rem}
h1{font-size:clamp(2.8rem,10vw,5.5rem);line-height:1.15;font-weight:700;margin:.4rem 0 1.2rem;border-inline-start:.4rem solid var(--accent);padding-inline-start:1.2rem}
.tags{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 1.5rem;padding:0;list-style:none}
.tags li{border:1px solid var(--line);border-radius:2rem;padding:.1rem 1rem;font-size:.9rem;background:#fff}
.lead{max-width:38rem;color:var(--muted)}
section{padding:3rem 0;border-top:1px solid var(--line)}
h2{font-size:1.7rem;margin:0 0 .5rem}
.sub{color:var(--muted);margin:0 0 1.5rem}
.post{display:block;text-decoration:none;padding:1.1rem 0;border-bottom:1px solid var(--line)}
.post:hover h3{color:var(--accent)}
.post h3{margin:.2rem 0;font-size:1.25rem}
.meta{display:flex;gap:1rem;font-size:.85rem;color:var(--muted)}
form{display:grid;gap:1rem;max-width:34rem}
label{font-size:.9rem;color:var(--muted)}
input,textarea{width:100%;font:inherit;padding:.7rem .9rem;border:1px solid var(--line);border-radius:.5rem;background:#fff;color:var(--ink)}
textarea{min-height:8rem;resize:vertical}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
html,body{overflow-x:hidden}
button{font:inherit;font-weight:600;background:var(--accent);color:#fff;border:0;border-radius:.5rem;padding:.8rem 1.6rem;cursor:pointer;justify-self:start}
button:hover{background:#0b4a45}
.note{padding:.8rem 1rem;border-radius:.5rem;margin:0 0 1rem;max-width:34rem}
.ok{background:#E3F1EE;color:#0b4a45}.err{background:#FBE9E7;color:#8a2a1f}
footer{padding:2rem 0 3rem;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem}
footer a{margin-inline-end:1rem}
article{padding:4rem 0}
article h1{font-size:clamp(2rem,6vw,3rem);border:0;padding:0}
article p{max-width:38rem}
@media(max-width:520px){nav{gap:.9rem;font-size:.85rem}}
nav a[aria-current]{color:var(--accent);font-weight:600}
.job{display:grid;grid-template-columns:9.5rem 1fr;gap:1rem;padding:1.3rem 0;border-bottom:1px solid var(--line)}
.job .when{color:var(--muted);font-size:.9rem}
.job h3{margin:0;font-size:1.15rem;line-height:1.6}
.job .org{color:var(--accent);font-size:.95rem}
.job ul{margin:.5rem 0 0;padding-inline-start:1.2rem;color:var(--muted);font-size:.98rem;line-height:1.8}
.list{padding:0;margin:0;list-style:none}
.list li{padding:.6rem 0;border-bottom:1px solid var(--line)}
.list small{display:block;color:var(--muted)}
.empty{padding:1.5rem 0;color:var(--muted)}
.more{display:inline-block;margin-top:.5rem;color:var(--accent);font-weight:600}
@media(max-width:560px){.job{grid-template-columns:1fr;gap:.2rem}}
.statement{font-size:clamp(1.4rem,4vw,2rem);font-weight:600;line-height:1.6;margin:0 0 1.2rem;max-width:36rem}
.flow{list-style:none;margin:2.8rem 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:.9rem}
.flow li{position:relative;padding-top:1.7rem}
.flow li::before{content:"";position:absolute;top:0;right:0;width:.85rem;height:.85rem;border-radius:50%;background:var(--accent)}
.flow li::after{content:"";position:absolute;top:.4rem;right:1rem;left:-.9rem;height:2px;background:var(--line)}
.flow li:last-child::after{display:none}
.flow b{display:block;font-size:1rem}
.flow span{display:block;font-size:.82rem;line-height:1.7;color:var(--muted)}
@media(max-width:600px){
.flow{grid-template-columns:1fr;gap:1.3rem}
.flow li{padding-top:0;padding-right:1.7rem}
.flow li::before{top:.55rem}
.flow li::after{top:1.4rem;bottom:-1.3rem;left:auto;right:.4rem;width:2px;height:auto}
}

.statement{text-wrap:balance}
.flow span{font-size:.9rem}

.steps{margin:.5rem 0 0;color:var(--muted);font-size:.95rem;line-height:1.8}

.hero-grid{display:grid;grid-template-columns:1fr 14rem;gap:2rem;align-items:center}
.hero-grid h1{font-size:clamp(2.6rem,7vw,4.4rem)}
.hero-photo{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:top;border-radius:1rem;display:block;background:#E9EEEC}
.about-photo{float:left;width:9.5rem;height:9.5rem;object-fit:cover;object-position:top;border-radius:1rem;margin:.4rem 1.5rem 1rem 0}
@media(max-width:600px){
.hero-grid{grid-template-columns:1fr;gap:1.2rem}
.hero-photo{order:-1;width:9rem}
.about-photo{float:none;display:block;margin:0 0 1.2rem}
}
