/* MBZ — Personal portfolio, 2026. Light, editorial, bilingual. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root{--ink:#14253a;--muted:#5c6e80;--paper:#f7fafc;--white:#fff;--blue:#2364d9;--green:#0aaf92;--line:#dfebef;--dark:#122a3c;--grad:linear-gradient(112deg,#2461da 5%,#08b49a 95%);--shadow:0 25px 70px rgba(23,66,91,.075);--radius:24px;--container:1170px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Manrope',sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}button,a{font-family:inherit}html[lang=fa] body,html[lang=fa] button{font-family:'Vazirmatn',sans-serif}button,a{tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}img{max-width:100%;display:block}::selection{background:#b4e9dd;color:#0b3441}:focus-visible{outline:3px solid var(--green);outline-offset:4px}.skip{position:fixed;top:-100px;inset-inline-start:16px;z-index:9999;padding:10px 16px;background:#fff;border-radius:8px}.skip:focus{top:12px}.container{max-width:var(--container);padding:0 28px;margin:auto}.progress{position:fixed;inset-block-start:0;inset-inline-start:0;height:3px;width:0;background:var(--grad);z-index:2000}
header{position:sticky;top:0;z-index:100;background:rgba(247,250,252,.9);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-bottom:1px solid rgba(217,232,236,.7)}.header-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:inline-flex;align-items:center;gap:11px;font:800 23px 'Manrope',sans-serif;letter-spacing:-1px;white-space:nowrap}.brand-mark{width:39px;height:39px;background:var(--grad);border-radius:13px;display:grid;place-items:center;color:white;font-size:15px;letter-spacing:-1px;box-shadow:0 7px 17px #0caf911e}.brand .dot{color:var(--green)}.nav{display:flex;align-items:center;gap:28px}.nav a{font-size:13px;font-weight:700;color:#526678;transition:color .2s;white-space:nowrap}.nav a:hover,.nav a.active{color:var(--blue)}.nav-controls{display:flex;align-items:center;gap:13px}.lang{min-width:63px;height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:white;border:1px solid var(--line);border-radius:30px;color:var(--ink);font-size:12px;font-weight:800}.lang svg{width:15px;height:15px}.menu-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:12px}.menu-toggle svg{width:22px;height:22px}.nav-cta{background:var(--dark);color:#fff!important;padding:12px 17px;border-radius:11px}.nav-cta:hover{background:var(--blue)}
main{overflow:clip}.hero{position:relative;padding:103px 0 86px;isolation:isolate}.hero:before{content:"";position:absolute;z-index:-1;top:-300px;right:-220px;width:850px;height:750px;border-radius:50%;background:radial-gradient(circle,#deecff 0%,#e1f7ef91 44%,transparent 71%);pointer-events:none}.hero-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);align-items:center;gap:66px}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:#1a767b;font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:800}.eyebrow:before{content:"";height:7px;width:7px;background:var(--green);border-radius:50%;box-shadow:0 0 0 5px #0ab6981b}.hero h1{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-3.8px;line-height:1.11;font-size:clamp(43px,5vw,74px);margin:26px 0 12px;text-wrap:balance}.hero h1 span{background:var(--grad);background-clip:text;-webkit-background-clip:text;color:transparent}.hero-role{font-size:clamp(17px,2vw,23px);font-weight:700;line-height:1.5;color:#34536a;margin:0 0 19px}.hero-description{color:var(--muted);font-size:16px;line-height:1.95;max-width:640px;margin:0}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:30px 0 31px}.btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:800;border:1px solid transparent;border-radius:12px;padding:0 21px;transition:transform .2s,box-shadow .2s,background .2s}.btn:hover{transform:translateY(-3px)}.btn svg{width:16px;height:16px}.btn-primary{background:var(--grad);color:white;box-shadow:0 15px 28px #2364d921}.btn-primary:hover{box-shadow:0 18px 35px #0baf9240}.btn-outline{color:var(--ink);background:white;border-color:#d9e6ea}.btn-outline:hover{border-color:var(--green)}.hero-points{display:flex;flex-wrap:wrap;gap:12px 21px;color:#567082;font-size:12px;font-weight:700}.hero-points span{display:inline-flex;gap:7px;align-items:center}.hero-points svg{width:15px;height:15px;color:var(--green)}.portrait-wrap{position:relative;max-width:420px;width:100%;margin-inline:auto;aspect-ratio: .95}.portrait-backdrop{position:absolute;inset:5% 5% 0;border-radius:44% 44% 33% 33%;background:linear-gradient(145deg,#d6e5ff,#d4f5e8);transform:rotate(-5deg)}.portrait-frame{position:absolute;inset:3% 8% 5%;border-radius:43% 43% 32% 32%;overflow:hidden;border:8px solid rgba(255,255,255,.9);background:linear-gradient(165deg,#eaf4ff,#d6f4e9);box-shadow:0 34px 65px #356b8330}.portrait-frame img{width:100%;height:100%;object-fit:cover;object-position:center 17%;filter:saturate(.9)}.portrait-stamp{position:absolute;background:#fff;box-shadow:0 16px 42px #1c405b19;border:1px solid #e6eff1;border-radius:15px;padding:12px 16px;display:flex;align-items:center;gap:11px;max-width:210px}.portrait-stamp svg{width:25px;height:25px;color:var(--green);flex:0 0 auto}.portrait-stamp b{display:block;font-size:12px}.portrait-stamp small{color:var(--muted);font-size:10px}.stamp-left{inset-inline-start:-15%;bottom:12%}.stamp-right{inset-inline-end:-13%;top:13%}.decor-ring{position:absolute;width:65px;height:65px;border:9px solid #c6eadd;border-radius:50%;right:2%;bottom:-3%;z-index:-1}
.trustline{border-block:1px solid var(--line);background:#fff}.trust-inner{display:flex;align-items:center;justify-content:space-between;gap:25px;padding-top:22px;padding-bottom:22px}.trust-inner p{font-size:11px;color:#738595;text-transform:uppercase;letter-spacing:1.7px;font-weight:800;margin:0}.trust-topics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:13px 23px}.trust-topics span{font-size:13px;font-weight:800;color:#36566b}
section.content-section{padding:112px 0}.section-intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:38px}.kicker{color:var(--green);font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:800}.section-title{font-family:'Manrope',sans-serif;font-size:clamp(30px,3.7vw,48px);font-weight:800;letter-spacing:-1.9px;line-height:1.25;margin:13px 0}.section-summary{color:var(--muted);font-size:14px;line-height:1.9;max-width:480px;margin:0}.section-index{font-family:'Manrope',sans-serif;font-weight:800;font-size:65px;color:#e1ebee;line-height:1}
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:35px}.about-panel,.capabilities{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:38px;box-shadow:0 16px 45px #174c7410}.about-panel p{font-size:15px;line-height:2.05;color:#516779;margin:0 0 18px}.about-panel p:last-child{margin:0}.capabilities{display:grid;gap:20px;background:linear-gradient(156deg,#ecf7fb,#e7f8f0)}.capability{display:flex;align-items:flex-start;gap:16px}.capability-icon{height:43px;width:43px;border:1px solid white;background:#fff;box-shadow:0 8px 16px #1249620c;display:grid;place-items:center;color:var(--blue);border-radius:12px;flex:0 0 43px}.capability-icon svg{width:20px;height:20px}.capability h3{font-size:15px;margin:0 0 5px}.capability p{color:var(--muted);font-size:13px;line-height:1.8;margin:0}
.work-section{background:#eef5f7}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.project-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;overflow:hidden;display:flex;flex-direction:column;min-height:360px;transition:transform .25s,box-shadow .25s,border-color .25s}.project-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#bdd8d8}.project-top{display:flex;align-items:center;justify-content:space-between}.project-number{font:800 13px 'Manrope',sans-serif;color:#89a3af}.project-type{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#176a6e;font-weight:800;background:#e3f6f1;border-radius:20px;padding:8px 12px}.project-visual{height:112px;display:flex;align-items:center;position:relative;margin-block:20px}.project-art{width:140px;height:100px;border-radius:20px;display:grid;place-items:center;transform:rotate(-7deg);box-shadow:0 14px 25px #18477215}.project-art svg{width:50px;height:50px;stroke-width:1.45}.project-card:nth-child(1) .project-art{background:linear-gradient(135deg,#dce8ff,#eff7ff);color:#3269dc}.project-card:nth-child(2) .project-art{background:linear-gradient(135deg,#d8f5e7,#ebfaf3);color:#08a986}.project-card:nth-child(3) .project-art{background:linear-gradient(135deg,#e5e1ff,#f6f2ff);color:#7c61c5}.project-card:nth-child(4) .project-art{background:linear-gradient(135deg,#ffe9d7,#fffae9);color:#d48b48}.project-art:after{content:"";position:absolute;width:58px;height:58px;border-radius:15px;border:1px solid currentColor;opacity:.2;right:-37px;bottom:-16px;transform:rotate(20deg)}.project-card h3{font-size:22px;line-height:1.4;letter-spacing:-.6px;margin:0 0 12px}.project-card p{color:var(--muted);font-size:13px;line-height:1.9;margin:0 0 22px;flex:1}.tag-row{display:flex;flex-wrap:wrap;gap:7px}.tag{font-size:10px;letter-spacing:.3px;color:#567082;border:1px solid #e3ecee;background:#f6fafb;border-radius:20px;padding:7px 11px;font-weight:700}
.timeline{position:relative;display:grid;gap:17px}.timeline:before{content:"";position:absolute;inset-block:34px;inset-inline-start:18px;width:1px;background:linear-gradient(var(--green),#c9dede)}.timeline-entry{display:grid;grid-template-columns:38px 1fr;gap:23px;position:relative}.timeline-dot{width:37px;height:37px;display:grid;place-items:center;background:#fff;border:1px solid #cee8e0;border-radius:50%;z-index:1;color:var(--green)}.timeline-dot svg{width:18px;height:18px}.job{background:#fff;border:1px solid var(--line);border-radius:18px;padding:27px 32px}.job-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.job h3{margin:0 0 7px;font-size:19px;letter-spacing:-.3px}.job .company{font-size:13px;color:var(--blue);font-weight:800}.job .job-note{font-size:11px;color:#657d8c;border:1px solid var(--line);padding:7px 11px;border-radius:30px;white-space:nowrap}.job p{color:var(--muted);font-size:13px;line-height:1.95;margin:15px 0 0;max-width:830px}
.education{display:grid;grid-template-columns:.93fr 1.07fr;gap:25px}.edu-card{border-radius:var(--radius);background:var(--dark);color:white;padding:35px;position:relative;overflow:hidden}.edu-card:after{content:"";position:absolute;width:220px;height:220px;background:radial-gradient(circle,#1a9a9840,transparent 70%);right:-50px;bottom:-100px}.edu-card .edu-icon{width:49px;height:49px;border-radius:15px;background:#ffffff17;display:grid;place-items:center;margin-bottom:23px}.edu-card .edu-icon svg{width:27px;height:27px}.edu-card h3{font-size:22px;line-height:1.5;margin:0 0 14px}.edu-card p{font-size:13px;line-height:1.9;color:#c6d8e2;margin:0}.principles{display:grid;gap:12px}.principle{background:#fff;border:1px solid var(--line);padding:20px 23px;border-radius:15px;display:flex;align-items:flex-start;gap:13px}.principle svg{width:20px;height:20px;color:var(--green);flex:0 0 auto;margin-top:3px}.principle b{font-size:14px}.principle p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.75}
.contact-section{background:linear-gradient(145deg,#11283e,#173e4c);color:#fff;position:relative;overflow:hidden}.contact-section:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 15%,#2cc99d30,transparent 35%),radial-gradient(circle at 8% 100%,#357af22d,transparent 40%);pointer-events:none}.contact-box{position:relative;text-align:center;padding:12px 0}.contact-box .kicker{color:#67e6b5}.contact-box .section-title{font-size:clamp(32px,4.6vw,56px);margin-bottom:19px}.contact-box p{color:#c7d8e1;max-width:620px;font-size:15px;line-height:1.95;margin:0 auto 27px}.contact-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.contact-actions .btn-outline{background:#ffffff10;color:#fff;border-color:#ffffff40}.contact-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 26px;margin-top:26px;color:#bbd5dc;font-size:12px}.contact-meta span{display:flex;align-items:center;gap:8px}.contact-meta svg{width:15px;height:15px;color:#75dabc}
footer{background:#0f2639;color:#c3d3dc;padding:25px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12px}.footer-inner strong{color:#fff}.footer-links{display:flex;gap:22px}.footer-links a:hover{color:#61dcb6}html[lang=fa] .section-title,html[lang=fa] .hero h1,html[lang=fa] .brand,html[lang=fa] .job h3{letter-spacing:normal}html[lang=fa] .hero h1{line-height:1.35}html[lang=fa] .section-title{line-height:1.5}html[lang=fa] .hero-description,html[lang=fa] .job p,html[lang=fa] .about-panel p,html[lang=fa] .project-card p{line-height:2.1}html[lang=fa] .brand{font-family:'Manrope',sans-serif;direction:ltr}html[lang=fa] .eyebrow,html[lang=fa] .kicker{text-transform:none;letter-spacing:0}html[lang=fa] .hero-grid{direction:rtl}html[lang=fa] .hero-description{text-align:start}html[lang=fa] .trust-topics{justify-content:flex-start}html[lang=fa] .portrait-backdrop{transform:rotate(5deg)}html[lang=fa] .project-art{transform:rotate(7deg)}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:1050px){.nav{gap:16px}.hero-grid{gap:35px}.portrait-stamp{max-width:175px}.stamp-left{inset-inline-start:-8%}.stamp-right{inset-inline-end:-6%}.hero h1{font-size:clamp(42px,5vw,64px)}}
@media(max-width:850px){.nav{position:absolute;inset-inline:20px;top:calc(100% + 8px);display:flex;flex-direction:column;align-items:stretch;gap:3px;background:white;padding:15px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s,transform .2s,visibility .2s}.nav.open{opacity:1;visibility:visible;transform:translateY(0)}.nav a{font-size:14px;padding:12px 13px}.nav-cta{text-align:center}.menu-toggle{display:flex}.header-inner{min-height:70px}.hero{padding-top:72px}.hero-grid{gap:24px;grid-template-columns:1.15fr .85fr}.portrait-stamp{display:none}.project-card{padding:25px}.section-index{display:none}}
@media(max-width:700px){.container{padding:0 20px}.hero{padding:60px 0 67px}.hero-grid{grid-template-columns:1fr;gap:45px}.hero-copy{text-align:center}.hero-description{margin-inline:auto;text-align:center!important;font-size:14px}.hero h1{font-size:clamp(38px,8.5vw,58px);letter-spacing:-2.4px;margin-top:18px}.hero-role{font-size:17px}.hero-actions,.hero-points{justify-content:center}.portrait-wrap{max-width:310px}.portrait-stamp{display:flex;max-width:150px;padding:9px 11px}.portrait-stamp b{font-size:10px}.portrait-stamp small{font-size:9px}.portrait-stamp svg{width:18px}.stamp-left{inset-inline-start:-4%}.stamp-right{inset-inline-end:-5%}.trust-inner{flex-direction:column;align-items:center;text-align:center;gap:15px}.trust-topics{justify-content:center!important}section.content-section{padding:75px 0}.section-intro{align-items:start}.about-grid,.education,.project-grid{grid-template-columns:1fr}.about-panel,.capabilities{padding:25px}.job{padding:24px}.project-card{min-height:330px}.section-title{letter-spacing:-1.3px}.footer-inner{flex-direction:column;text-align:center}.job-head{flex-direction:column}}
@media(max-width:420px){.container{padding:0 16px}.hero h1{font-size:clamp(35px,10vw,46px)}html[lang=fa] .hero h1{font-size:clamp(34px,9vw,43px)}.hero-points{gap:9px}.hero-points span{font-size:10px}.btn{padding:0 15px}.section-title{font-size:29px}.portrait-wrap{max-width:265px}.stamp-left{inset-inline-start:-2%}.stamp-right{inset-inline-end:-3%}.project-card{padding:24px}.job{padding:21px}.timeline-entry{gap:10px;grid-template-columns:30px 1fr}.timeline-dot{width:30px;height:30px}.timeline:before{inset-inline-start:14px}.contact-actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.reveal{opacity:1;transform:none}}

/* Meaningful, keyboard accessible project disclosures. */
.project-detail{margin:0 0 19px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px}
.project-detail summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;font-weight:800;color:var(--blue);padding:13px 1px;cursor:pointer}
.project-detail summary::-webkit-details-marker{display:none}
.project-detail summary span:last-child{font-size:20px;font-weight:400;line-height:1;transition:transform .2s}
.project-detail[open] summary span:last-child{transform:rotate(45deg)}
.detail-inside{padding:1px 0 15px}
.detail-inside strong{display:block;font-size:12px;color:var(--ink);margin-top:9px}
.project-card .detail-inside p{font-size:12px;margin:7px 0 9px;line-height:1.85;color:var(--muted)}
html[lang=fa] .project-card .detail-inside p{line-height:2}

/* Persian headings must use the Persian typeface instead of a Latin fallback. */
html[lang=fa] .hero h1,
html[lang=fa] .section-title,
html[lang=fa] .job h3,
html[lang=fa] .project-card h3,
html[lang=fa] .capability h3 {font-family:'Vazirmatn',sans-serif}
.project-type,.tag{font-size:11px}
@media(max-width:420px){.project-type,.tag{font-size:10.5px}}

/* QA 2026-10-09: fixes verified in real Chromium screenshots and scroll metrics. */
.nav-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;line-height:1.25;white-space:nowrap;flex:0 0 auto}
.nav-cta svg{width:15px;height:15px;flex:0 0 15px}
.trust-topics{min-width:0;max-width:100%}
.footer-links a{min-height:42px;display:inline-flex;align-items:center}
@media(max-width:700px){
 .trust-inner{min-width:0}
 .trust-topics{width:100%;flex-wrap:wrap;gap:8px;justify-content:center!important}
 .trust-topics span{font-size:11px;line-height:1.5;white-space:nowrap;padding:8px 12px;background:#f1faf8;border:1px solid #dfefe9;border-radius:999px}
}
@media(max-width:420px){
 .trust-topics{gap:7px}
 .trust-topics span{font-size:10.5px;padding:7px 10px}
}

/* WCAG AA contrast refinement: retain the blue/teal palette with readable ink. */
:root{--green-ink:#087866}
.kicker,.brand .dot{color:var(--green-ink)}
.trust-inner p,.project-number{color:#526e7c}
.job .job-note{color:#4e6574}
.hero h1 span{background:linear-gradient(112deg,#2461da 5%,#087b70 95%);background-clip:text;-webkit-background-clip:text;color:transparent}
.brand-mark,.btn-primary{background:linear-gradient(112deg,#255fce 5%,#087b70 95%)}

/* Editorial section numerals: decorative but still legible at WCAG large-text contrast. */
.section-index{color:#778d99}
