:root{--accent:#765cff;--bg:#0b0b11;--surface:#15151e;--text:#f6f3ff;--muted:#94909f}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Alexandria,sans-serif}
#loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}
main{max-width:1500px;margin:auto;padding:0 5vw}
header{height:90px;border-bottom:1px solid #ffffff18;display:flex;justify-content:space-between;align-items:center;font-size:11px}
.powered{color:var(--text);text-decoration:none}
.viewer-actions{display:flex;align-items:center;gap:18px}.visitor-auth{padding:11px 17px;border:1px solid #ffffff24;border-radius:999px;background:#ffffff0b;color:var(--text);text-decoration:none;font-weight:600;transition:.25s}.visitor-auth:hover{border-color:var(--accent);background:var(--accent);color:#fff;transform:translateY(-1px)}
.hero{min-height:660px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.avatar{width:70px;height:70px;border-radius:22px;background:var(--accent);display:grid;place-items:center;font-size:30px;font-weight:800;transform:rotate(-4deg)}
.hero>p:first-of-type{color:var(--accent);margin:28px 0 10px}
.name-line{display:flex;align-items:center;gap:14px}
.hero h1{font-size:clamp(42px,4.2vw,64px);line-height:1.15;letter-spacing:-.035em;margin:0;max-width:900px;text-wrap:balance}
#verifiedBadge{flex:none;width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:16px}#verifiedBadge[hidden]{display:none}
.hero #about{max-width:650px;color:var(--muted);line-height:2;margin:30px 0}
.hero>a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--accent);padding-bottom:8px}
.work{padding:100px 0}
.section-title small{color:var(--accent)}
.section-title h2{font-size:clamp(30px,3.2vw,46px);line-height:1.25;margin:12px 0 50px;text-wrap:balance}
.projects{display:grid;grid-template-columns:repeat(12,1fr);gap:22px}
.card{grid-column:span 6;width:100%;min-height:480px;border:0;padding:0;color:inherit;text-align:inherit;font:inherit;border-radius:28px;overflow:hidden;position:relative;background:var(--surface);cursor:pointer;isolation:isolate}
.card:nth-child(3n){grid-column:span 12}
.card img{width:100%;height:100%;object-fit:cover;transition:.7s}
.card:hover img{transform:scale(1.035)}
.card::after{content:'عرض المشروع';position:absolute;top:22px;left:22px;padding:10px 14px;border:1px solid #ffffff2e;border-radius:999px;background:#09090db8;color:#fff;font-size:11px;opacity:0;transform:translateY(-5px);transition:.25s;backdrop-filter:blur(10px)}
.card:hover::after,.card:focus-visible::after{opacity:1;transform:none}
.card:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.card .meta{position:absolute;inset:auto 0 0;padding:55px 25px 25px;background:linear-gradient(transparent,#000d)}
.meta b{font-size:20px}.meta small{display:block;color:#bbb;margin-top:7px}
footer{border-top:1px solid #ffffff18;min-height:170px;display:flex;align-items:center;justify-content:space-between}
footer a{color:var(--muted)}
.project-dialog{width:min(980px,calc(100vw - 32px));max-height:90vh;padding:0;border:1px solid #ffffff20;border-radius:28px;background:#111119;color:#fff;overflow:hidden;box-shadow:0 30px 100px #000a}
.project-dialog::backdrop{background:#050509d9;backdrop-filter:blur(14px)}
.dialog-close{position:absolute;z-index:2;top:16px;left:16px;width:42px;height:42px;border:1px solid #ffffff2b;border-radius:50%;background:#09090dbd;color:#fff;font-size:24px;cursor:pointer}
.dialog-media{height:min(62vh,650px);background:#08080d}
.dialog-media img{width:100%;height:100%;display:block;object-fit:contain}
.dialog-copy{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px}
.dialog-copy h3{margin:0 0 6px;font-size:22px}.dialog-copy p{margin:0;color:#aaa}
.dialog-link{flex:none;padding:12px 18px;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;font-size:13px}
body.editorial{--bg:#f7f3ea;--surface:#fff;--text:#1b1710;--muted:#7a7266}
body.editorial header{border-bottom-color:#00000014}
body.editorial .visitor-auth{border-color:#00000022;background:transparent}
body.editorial .visitor-auth:hover{background:var(--text);color:var(--bg);border-color:var(--text)}
body.editorial .hero{align-items:center;text-align:center;min-height:auto;padding:90px 0 100px;border-bottom:1px solid #00000014}
body.editorial .avatar{margin:0 auto 30px;border-radius:50%;transform:none}
body.editorial .hero>p:first-of-type{margin:0 0 14px}
body.editorial .hero h1{font-family:'Amiri','Playfair Display',Georgia,serif;font-weight:600;font-size:clamp(46px,6vw,84px);letter-spacing:-.02em;max-width:100%}
body.editorial .hero #about{margin:26px auto;max-width:560px;text-align:center}
body.editorial .hero>a{margin:0 auto;border-bottom-color:var(--text)}
body.editorial .section-title{text-align:center}
body.editorial .section-title h2{font-family:'Amiri','Playfair Display',Georgia,serif;font-weight:600}
body.editorial .projects{display:block;max-width:820px;margin:0 auto}
body.editorial .card{display:flex;align-items:center;gap:26px;min-height:auto;grid-column:auto;width:100%;border-radius:0;border-bottom:1px solid #00000014;background:transparent;padding:26px 0}
body.editorial .card img{width:120px;height:120px;border-radius:14px;flex:none;object-fit:cover}
body.editorial .card::after{content:none}
body.editorial .card .meta{position:static;background:none;padding:0;flex:1;text-align:right}
body.editorial .meta b{font-family:'Amiri','Playfair Display',Georgia,serif;font-size:24px;font-weight:600}
body.editorial .meta small{color:var(--muted)}
body.editorial footer{border-top-color:#00000014}
body.grid{--bg:#0a0a0c;--surface:#161618;--text:#f5f5f7;--muted:#8d8d93}
body.grid .avatar{border-radius:14px;transform:none}
body.grid .hero h1{font-weight:800;letter-spacing:-.04em}
body.grid .section-title h2{font-weight:800}
body.grid .projects{grid-template-columns:repeat(3,1fr);gap:3px}
body.grid .card{grid-column:span 1!important;min-height:300px;border-radius:0}
body.grid .card .meta{padding:20px;background:linear-gradient(transparent 40%,#000d)}
body.grid .card::after{content:none}
@media(max-width:700px){main{padding:0 20px}header{height:72px}.viewer-actions{gap:8px}.viewer-actions #category{display:none}.visitor-auth{padding:9px 12px;font-size:10px}.hero{min-height:520px}.hero h1{font-size:clamp(36px,11vw,48px);letter-spacing:-.025em}.section-title h2{font-size:32px}.work{padding:75px 0}.projects{display:block}.card{min-height:340px;margin-bottom:18px}.card::after{opacity:1;transform:none;top:14px;left:14px}.hero #about{font-size:13px}.dialog-copy{align-items:flex-start;flex-direction:column}.dialog-link{width:100%;text-align:center}footer{align-items:flex-start;justify-content:center;flex-direction:column;gap:15px}.powered{font-size:9px}body.editorial .hero{padding:60px 0 70px}}
