/* Yousefzad Portfolio · Mobile-first · No external dependencies */
:root {
  color-scheme: light;
  --canvas:#f7f9fc; --surface:#ffffff; --surface-2:#edf3f8; --surface-3:#e7f4f3;
  --ink:#132640; --muted:#53647b; --border:#dbe5ee; --accent:#087e78;
  --accent-soft:#d9f2ed; --blue:#275a98; --hero:#10233c; --white:#ffffff;
  --shadow:0 13px 42px rgba(14,41,69,.055); --shadow-high:0 18px 44px rgba(12,34,56,.1);
  --r:20px; --r-sm:13px; --container:1190px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --canvas:#0b1627; --surface:#13243a; --surface-2:#1a3048; --surface-3:#123c41;
  --ink:#f2f6fc; --muted:#b5c4d4; --border:#2c435c; --accent:#55d3bf;
  --accent-soft:#153d42; --blue:#9abff3; --hero:#0c1c32; --white:#ffffff;
  --shadow:0 13px 42px rgba(0,0,0,.09); --shadow-high:0 18px 44px rgba(0,0,0,.18);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;background:var(--canvas);color:var(--ink);font:400 16px/1.85 'Vazirmatn','Noto Sans Arabic',Tahoma,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
html[lang="en"] body{font-family:'Inter','Segoe UI',Arial,sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex:none}
img{max-width:100%}
:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
::selection{background:#4dbaaa66;color:var(--ink)}
.container{width:min(var(--container),calc(100% - 42px));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:fixed;z-index:1000;top:-80px;inset-inline-start:20px;background:var(--ink);color:var(--surface);padding:10px 18px;border-radius:10px}
.skip-link:focus{top:12px}
.site-header{position:sticky;top:0;z-index:60;background:var(--surface);border-bottom:1px solid var(--border)}
@supports (backdrop-filter:blur(18px)){.site-header{background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(18px)}}
.nav-shell{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--hero);color:#fff;font-weight:850;font-size:18px;letter-spacing:-.07em;font-family:Arial,sans-serif;direction:ltr}
.brand-mark span{color:#4ad2c5}
.brand-name{font:800 13px/1.3 'Inter',Arial,sans-serif;letter-spacing:.065em;color:var(--ink)}
.brand-name strong{font-weight:900}
.brand-name small{display:block;margin-top:5px;letter-spacing:.16em;font-weight:600;font-size:8px;color:var(--muted)}
.site-nav{display:flex;align-items:center;gap:clamp(13px,2vw,28px);margin-inline-start:auto}
.site-nav a{font-size:13px;font-weight:650;color:var(--muted);transition:color .2s}
.site-nav a:hover,.site-nav a:focus-visible{color:var(--accent)}
.nav-actions{display:flex;align-items:center;gap:7px}
.icon-button{height:44px;min-width:44px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;transition:background .2s,border-color .2s}
.icon-button:hover{background:var(--surface-2);border-color:var(--accent)}
.language-button{font-weight:800;font-size:12px;direction:ltr}
.language-button svg{width:18px;height:18px}
.menu-toggle{display:none}
.hero{background:linear-gradient(165deg,var(--canvas) 0%,var(--canvas) 67%,var(--surface-2) 100%);position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:clamp(40px,6vw,98px);align-items:center;padding-block:100px 112px}
.hero-copy{position:relative;z-index:2}
.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.01em}
.eyebrow-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(48px,5.2vw,76px);line-height:1.35;letter-spacing:-.035em;font-weight:900;margin:23px 0 20px}
html[lang="en"] h1{line-height:1.12;letter-spacing:-.065em}
.name-emphasis{color:var(--blue)}
.hero-period{color:var(--accent)}
.hero-subtitle{color:var(--muted);font-size:clamp(16px,1.55vw,19px);line-height:2.05;max-width:640px;margin-bottom:30px}
html[lang="en"] .hero-subtitle{line-height:1.85}
.hero-actions,.contact-actions{display:flex;flex-wrap:wrap;gap:11px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:11px;min-height:48px;padding:11px 21px;border:1px solid transparent;border-radius:12px;font-weight:800;font-size:14px;transition:background .2s,transform .2s,border-color .2s;color:var(--ink)}
.button svg{width:18px;height:18px}
.button:hover{transform:translateY(-2px)}
.button-primary{background:#087e78;color:#fff}
.button-primary:hover{background:#076761}
.button-secondary{border-color:var(--border);background:var(--surface);color:var(--ink)}
.button-secondary:hover{background:var(--surface-2);border-color:var(--accent)}
.button-ghost{border-color:#ffffff56;color:#fff;background:#ffffff08}
.button-ghost:hover{background:#ffffff1a}
.hero-facts{margin-top:42px;padding-top:25px;border-top:1px solid var(--border);display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hero-facts [role=listitem]{display:flex;flex-direction:column;gap:1px}
.hero-facts strong{font:800 15px/1.4 'Inter',Arial,sans-serif;color:var(--ink);direction:ltr;unicode-bidi:isolate}
.hero-facts span{font-size:12px;color:var(--muted)}
.fact-divider{width:1px;height:34px;background:var(--border)}
.hero-art{height:405px;position:relative;border-radius:30px;background:radial-gradient(circle at 55% 39%,#224b67 0%,#122d49 47%,#0c1d34 100%);color:#fff;border:1px solid #233c53;box-shadow:0 40px 75px #11243e22;overflow:hidden;isolation:isolate;direction:ltr}
.hero-art:before{content:"";position:absolute;inset:0;opacity:.28;background-image:linear-gradient(#ffffff13 1px,transparent 1px),linear-gradient(90deg,#ffffff13 1px,transparent 1px);background-size:33px 33px;mask-image:radial-gradient(circle,#000 0%,transparent 77%)}
.art-corner{position:absolute;width:220px;height:220px;border-radius:50%;filter:blur(52px);opacity:.25}
.art-corner-a{top:-110px;left:-70px;background:#21b2a4}
.art-corner-b{bottom:-110px;right:-20px;background:#5d89eb}
.art-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:3;gap:11px}
.art-overline,.art-caption{font:700 10px/1.5 'Inter',Arial,sans-serif;letter-spacing:.25em;color:#bbd8e8}
.art-initials{font:900 clamp(85px,10vw,139px)/1 'Inter',Arial,sans-serif;letter-spacing:-.13em;margin-right:22px}
.art-initials span{color:#4ad2c5}
.art-caption{font-size:8px;letter-spacing:.18em;color:#87a9bf}
.art-orbit{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);border:1px solid #8edbcc36;border-radius:50%}
.orbit-a{width:290px;height:290px}.orbit-b{width:430px;height:430px;border-style:dashed;opacity:.42}
.art-mini{position:absolute;z-index:5;border:1px solid #739eaf55;background:#102c42b9;backdrop-filter:blur(8px);border-radius:9px;padding:9px 12px;font:750 9px 'Inter',Arial,sans-serif;letter-spacing:.08em;display:flex;align-items:center;gap:8px;color:#d6ebf5}
.mini-square{width:8px;height:8px;background:#3cc9bb;border-radius:2px}
.art-mini-1{top:55px;left:29px}.art-mini-2{bottom:73px;right:25px}.art-mini-3{top:94px;right:17px}
.section{padding-block:93px;scroll-margin-top:80px}
.section-soft{background:var(--surface)}
.section-kicker{font-size:12px;letter-spacing:.02em;font-weight:850;color:var(--accent);margin-bottom:14px}
h2{font-size:clamp(28px,3.5vw,44px);font-weight:850;line-height:1.5;letter-spacing:-.02em;margin-bottom:18px}
html[lang="en"] h2{line-height:1.24;letter-spacing:-.04em}
.section-description{color:var(--muted);max-width:410px;font-size:14px;margin:0}
.section-header{display:flex;justify-content:space-between;align-items:end;gap:36px;margin-bottom:34px}
.about-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(36px,7vw,110px)}
.about-copy p{font-size:16px;color:var(--muted);line-height:2.05;margin-bottom:17px}
html[lang="en"] .about-copy p{line-height:1.8}
.text-link{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-weight:800;font-size:14px;margin-top:9px}
.text-link svg{width:17px;height:17px}
.skills-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.skill-card{border:1px solid var(--border);background:var(--surface);border-radius:var(--r);padding:27px;transition:transform .2s,border-color .2s,box-shadow .2s;min-width:0}
.skill-card:hover{transform:translateY(-4px);border-color:var(--accent);box-shadow:var(--shadow)}
.skill-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--accent-soft);color:var(--accent);font:800 15px/1 'Inter',Arial,sans-serif;margin-bottom:22px;direction:ltr}
h3{font-size:17px;font-weight:800;margin-bottom:9px;line-height:1.55}
.skill-card p{font-size:14px;color:var(--muted);margin-bottom:0}
.experience-grid{display:grid;grid-template-columns:minmax(0,1.34fr) minmax(0,.66fr);gap:38px;align-items:start}
.timeline{border-inline-start:1px solid var(--border);margin-inline-start:7px;padding-inline-start:31px}
.timeline-item{position:relative;padding:0 0 29px}
.timeline-item:last-child{padding-bottom:0}
.timeline-item:before{content:"";position:absolute;top:11px;inset-inline-start:-39px;width:15px;height:15px;background:var(--surface);border:4px solid var(--accent);border-radius:50%}
.timeline-date{color:var(--accent);font-size:12px;font-weight:800}
.timeline-item h3{margin-top:5px;margin-bottom:8px}
.timeline-item p{font-size:14px;color:var(--muted);margin:0}
.education-card{background:var(--hero);color:#fff;border-radius:var(--r);padding:33px;position:relative;overflow:hidden}
.education-card:after{content:"";position:absolute;inset:auto -75px -110px auto;width:250px;height:250px;border-radius:50%;border:1px solid #8ebedb33;box-shadow:0 0 0 35px #ffffff04,0 0 0 70px #ffffff03;pointer-events:none}
.education-icon{font:700 32px 'Inter',Arial,sans-serif;color:#5bd4c7}
.education-kicker{display:block;font-size:12px;color:#7fe4d5;font-weight:800;margin-top:18px;margin-bottom:11px}
.education-card h3{font-size:20px}
.education-card p{font-size:13px;color:#c3d2e2}
.education-line{height:1px;background:#ffffff30;margin:23px 0}
.education-card .education-note{margin-bottom:0}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;margin-bottom:13px}
.filter-scroll{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filter-chip{min-height:42px;padding:8px 17px;border:1px solid var(--border);border-radius:100px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:800;transition:background .2s,border-color .2s}
.filter-chip:hover{border-color:var(--accent);color:var(--ink)}
.filter-chip.is-active{background:var(--hero);border-color:var(--hero);color:#fff}
.search-field{position:relative;display:flex;align-items:center;max-width:300px;min-width:230px;flex:0 1 300px}
.search-field svg{position:absolute;inset-inline-start:14px;width:19px;height:19px;color:var(--muted);pointer-events:none}
.search-field input{width:100%;min-height:45px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--ink);font-size:13px;padding:10px 43px 10px 15px;direction:inherit}
html[dir="ltr"] .search-field input{padding:10px 15px 10px 43px}
.search-field input::placeholder{color:var(--muted);opacity:.95}
.result-count{min-height:27px;font-size:12px;color:var(--muted);margin:0 0 16px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.project-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:250px;padding:25px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);transition:border-color .2s,box-shadow .2s,transform .2s}
.project-card:hover{border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-3px)}
.project-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.project-kind{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:800;color:var(--accent)}
.project-kind:before{content:"";height:7px;width:7px;border-radius:50%;background:var(--accent)}
.project-no{font:700 12px 'Inter',Arial,sans-serif;color:var(--muted);direction:ltr}
.project-card h3{font-size:17px;margin:0 0 10px}
.project-card p{font-size:13px;color:var(--muted);line-height:1.85;margin:0 0 20px;flex:1}
.project-bottom{padding-top:15px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:6px;align-items:center}
.project-tech{font:600 11px/1.5 'Inter',Arial,sans-serif;color:var(--muted);direction:ltr;unicode-bidi:isolate;text-align:start}
.project-status{font-size:10px;padding:5px 9px;border-radius:50px;color:var(--blue);background:var(--surface-2);font-weight:750;white-space:nowrap}
.project-footer{text-align:center;margin-top:24px}
.project-disclaimer{max-width:850px;margin:24px auto 0;color:var(--muted);font-size:12px;text-align:center}
.empty-state{grid-column:1/-1;text-align:center;border:1px dashed var(--border);border-radius:var(--r);padding:42px 18px;color:var(--muted)}
.section-contact{padding-bottom:110px}
.contact-panel{border-radius:26px;background:linear-gradient(135deg,#10233c,#17334f 72%,#154c52);display:grid;grid-template-columns:1.3fr .7fr;gap:50px;padding:clamp(30px,5vw,65px);color:#fff;box-shadow:var(--shadow-high)}
.contact-panel .section-kicker{color:#7fe4d5}
.contact-panel h2{font-size:clamp(28px,3vw,42px);max-width:550px}
.contact-panel p:not(.section-kicker){color:#c4d5e4;max-width:610px;font-size:14px}
.contact-actions{margin-top:26px}
.contact-links{border-inline-start:1px solid #ffffff30;padding-inline-start:29px;display:flex;flex-direction:column;gap:14px;justify-content:center;min-width:0}
.contact-links a{font:650 14px/1.5 'Inter',Arial,sans-serif;overflow-wrap:anywhere;color:#fff;align-self:flex-start}
.contact-links a:hover{text-decoration:underline;text-underline-offset:4px}
.contact-label{font-size:12px;color:#83e2d6;font-weight:850;margin-bottom:5px}
.contact-panel .contact-location{margin-top:9px;font-size:12px}
.site-footer{border-top:1px solid var(--border);background:var(--surface);padding:26px 0;font-size:12px;color:var(--muted)}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.back-to-top{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font-weight:700}
.back-to-top svg{width:16px;height:16px}
@media(max-width:1070px){
  .site-nav{gap:14px}.site-nav a{font-size:12px}
  .brand-name{font-size:11px}
  .hero-grid{gap:36px;padding-block:75px 88px}
  .hero-art{height:355px}.hero-facts{gap:15px}
  .contact-panel{gap:28px}
}
@media(max-width:900px){
  .nav-shell{min-height:72px}
  .site-nav{display:none;position:absolute;top:calc(100% + 1px);left:0;right:0;background:var(--surface);padding:15px 21px 23px;border-bottom:1px solid var(--border);box-shadow:var(--shadow-high);flex-direction:column;align-items:stretch;gap:4px;max-height:calc(100dvh - 72px);overflow-y:auto}
  .site-nav.is-open{display:flex}
  .site-nav a{font-size:15px;padding:11px 12px;border-radius:8px}
  .site-nav a:hover{background:var(--surface-2)}
  .menu-toggle{display:inline-flex}
  .hero-grid{grid-template-columns:1fr 0.85fr;gap:30px}
  h1{font-size:clamp(40px,5.8vw,58px)}
  .hero-art{height:330px}.art-initials{font-size:86px}.art-caption{font-size:7px}
  .section{padding-block:74px}
  .skills-grid,.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-layout{gap:35px}
}
@media(max-width:700px){
  .container{width:min(var(--container),calc(100% - 34px))}
  .brand-name{font-size:10px}
  .nav-actions{gap:5px}.icon-button{min-width:42px;height:42px}
  .hero-grid{grid-template-columns:1fr;padding-top:56px;padding-bottom:65px;gap:35px}
  .hero-subtitle{max-width:600px}
  .hero-art{height:290px;max-width:510px;width:100%;margin-inline:auto}
  .art-initials{font-size:104px}.art-mini-1{top:27px}.art-mini-2{bottom:26px}
  .section{padding-block:65px}
  .about-layout,.experience-grid,.contact-panel{grid-template-columns:1fr;gap:25px}
  .section-header{align-items:start;flex-direction:column;gap:0;margin-bottom:25px}
  .section-description{max-width:680px}
  .project-toolbar{flex-direction:column;align-items:stretch;gap:14px}
  .filter-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;max-width:100%}
  .filter-chip{flex-shrink:0}
  .search-field{max-width:100%;width:100%;flex-basis:auto}
  .contact-panel{padding:32px;gap:35px}
  .contact-links{border-inline-start:0;padding-inline-start:0;border-top:1px solid #ffffff30;padding-top:24px}
}
@media(max-width:480px){
  body{font-size:15px}
  .brand{gap:8px}.brand-mark{width:43px;height:43px;font-size:17px}
  .brand-name{font-size:9px;letter-spacing:.03em}.brand-name small{font-size:7px}
  .language-button{gap:4px}.language-button svg{width:16px;height:16px}
  .icon-button{width:40px;min-width:40px;padding:0 6px}
  .nav-shell{gap:7px}
  .hero-grid{padding-top:45px}
  h1{font-size:clamp(38px,10vw,49px)}
  .hero-subtitle{font-size:15px;margin-bottom:24px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .button{width:100%}
  .hero-facts{gap:12px;margin-top:30px}
  .hero-facts [role=listitem]{flex:1;min-width:90px}
  .hero-facts strong{font-size:12px}
  .hero-facts span{font-size:10px}
  .fact-divider{display:none}
  .hero-art{height:230px;border-radius:20px}
  .art-initials{font-size:78px}.art-overline{font-size:8px}.art-caption{font-size:6px}
  .art-mini{font-size:7px;padding:7px 9px}.art-mini-1{top:15px;left:11px}.art-mini-2{bottom:15px;right:10px}.art-mini-3{right:10px;top:52px}
  .section{padding-block:56px}
  h2{font-size:clamp(26px,7vw,34px)}
  .skills-grid,.project-grid{grid-template-columns:1fr;gap:12px}
  .skill-card,.project-card{padding:22px;border-radius:16px}
  .project-card{min-height:0}
  .contact-panel{padding:24px;border-radius:19px}
  .contact-actions{flex-direction:column}.contact-actions .button{width:100%}
  .footer-inner{justify-content:center;text-align:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Portfolio v3: executive CV-first layout; use natural type scale and gentle accents */
body{font-size:15px;line-height:1.9}
html[lang="en"] body{line-height:1.7}
.nav-shell{min-height:74px}
.brand-mark-image{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px var(--border);overflow:hidden}
.brand-mark-image img{width:100%;height:100%;object-fit:contain}
.brand-name{font-family:inherit;letter-spacing:0;font-size:15px}
.brand-name small{font-size:10px;letter-spacing:0;margin-top:2px}
html[lang="en"] .brand-name{font-family:Inter,'Segoe UI',Arial,sans-serif}
.hero-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(26px,4vw,55px);padding-block:58px 68px}
.hero-hello{display:block;font-size:clamp(20px,2.2vw,27px);line-height:1.4;font-weight:600;color:var(--muted);letter-spacing:0;margin-bottom:12px}
h1{font-size:clamp(37px,4.3vw,64px);line-height:1.3;margin:16px 0 12px;letter-spacing:-.04em}
html[lang="en"] h1{font-size:clamp(37px,4.15vw,63px);letter-spacing:-.055em}
.hero-role{font-size:clamp(14px,1.5vw,17px);font-weight:800;color:var(--accent);margin:0 0 16px}
.hero-subtitle{font-size:clamp(14px,1.35vw,17px);line-height:1.95;margin-bottom:26px;max-width:625px}
.hero-facts{margin-top:34px;padding-top:21px;gap:16px}
.hero-showcase{position:relative;min-height:340px;border-radius:27px;background:linear-gradient(135deg,#112b45,#11263e 58%,#0e4a53);padding:25px;color:#fff;box-shadow:0 24px 48px #142b3d22;overflow:hidden;isolation:isolate}
.hero-showcase:before{content:"";position:absolute;width:280px;height:280px;border:1px solid #51d3c040;border-radius:50%;top:-125px;left:-110px;box-shadow:0 0 0 50px #ffffff06,0 0 0 100px #ffffff04;z-index:-1}
.showcase-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.07em;color:#b4cedb}
.showcase-top>span:nth-child(2){flex:1}
.showcase-orb{height:10px;width:10px;background:#42d8c3;border-radius:50%;box-shadow:0 0 0 5px #42d8c31f}
.showcase-status{font-size:9px;color:#86e1d7}
.showcase-main{padding:37px 0 31px}
.showcase-kicker{font-size:12px;color:#76e5d4;font-weight:800;margin-bottom:11px}
.showcase-main h2{font-size:clamp(23px,2.5vw,34px);line-height:1.45;color:#fff;margin:0 0 9px}
.showcase-main p:last-child{font-size:13px;color:#cad8e5;margin:0}
.showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.showcase-tile{background:#ffffff10;border:1px solid #ffffff26;border-radius:13px;padding:12px 10px;min-width:0;display:flex;flex-direction:column;gap:5px}
.showcase-tile>span{font:700 8px Inter,Arial,sans-serif;color:#88dbd0;letter-spacing:.03em;direction:ltr;text-align:start}
.showcase-tile strong{font-size:12px;color:#fff;line-height:1.55}
.showcase-tile small{font:500 9px/1.5 Inter,Arial,sans-serif;color:#c8dce6;overflow-wrap:anywhere;direction:ltr;text-align:start}
.highlights-bar{background:var(--surface);border-block:1px solid var(--border)}
.highlights-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.highlight{padding:19px 18px;display:flex;gap:7px;align-items:center;flex-direction:column;text-align:center;min-width:0}
.highlight:not(:last-child){border-inline-end:1px solid var(--border)}
.highlight strong{font:800 17px/1.5 Inter,Arial,sans-serif;color:var(--blue);direction:ltr}
.highlight span{font-size:12px;color:var(--muted)}
.section{padding-block:70px}
h2{font-size:clamp(25px,3vw,37px);line-height:1.5}
.section-header{margin-bottom:26px}
.founder-section{padding:28px 0;background:var(--canvas)}
.founder-inner{border:1px solid var(--border);background:var(--surface);border-radius:22px;display:grid;grid-template-columns:220px 1fr;gap:34px;padding:26px 32px;align-items:center;box-shadow:var(--shadow)}
.founder-identity{min-height:195px;background:linear-gradient(135deg,#142b45,#0f5053);border-radius:17px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}
.founder-symbol{display:grid;place-items:center;width:82px;height:82px;border-radius:22px;background:#fff;overflow:hidden}
.founder-symbol img{width:76px;height:76px;object-fit:contain}
.founder-label{font:750 11px Inter,Arial,sans-serif;color:#d5e9e9;letter-spacing:.14em}
.founder-copy h2{margin:0 0 8px}
.founder-copy p:not(.section-kicker){font-size:14px;color:var(--muted);margin:0 0 10px}
.experience-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.timeline-item{padding-bottom:25px}
.education-card{padding:26px}
.project-card{min-height:240px;padding:22px}
.project-card p{font-size:13px}
.project-bottom{margin-top:auto}
.project-tech{font-size:10px}
.site-footer .footer-inner{flex-wrap:wrap;gap:12px}
@media (max-width:1050px){.hero-grid{gap:24px}.hero-showcase{padding:20px}.showcase-grid{grid-template-columns:1fr}.showcase-tile{padding:8px 11px;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:7px}.showcase-tile small{margin-inline-start:auto}.showcase-main{padding:20px 0}.hero-showcase{min-height:325px}}
@media (max-width:850px){.hero-grid{grid-template-columns:1fr;padding-block:44px 48px;gap:28px}.hero-showcase{min-height:280px}.showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.showcase-tile{flex-direction:column;align-items:flex-start;gap:4px}.showcase-tile small{margin-inline-start:0}.highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.highlight:nth-child(2){border-inline-end:0}.highlight:nth-child(-n+2){border-bottom:1px solid var(--border)}.founder-inner{grid-template-columns:165px 1fr;gap:21px;padding:20px}.founder-identity{min-height:180px}}
@media (max-width:650px){.container{width:min(var(--container),calc(100% - 32px))}.hero-grid{padding-block:32px 38px}.hero-subtitle{line-height:1.95}.hero-showcase{min-height:300px;padding:17px;border-radius:22px}.showcase-main{padding:30px 0 22px}.showcase-grid{grid-template-columns:1fr}.showcase-tile{flex-direction:row;justify-content:space-between}.showcase-tile small{display:none}.highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.highlight{padding:15px 9px}.highlight strong{font-size:14px}.highlight span{font-size:11px}.founder-inner{grid-template-columns:1fr;padding:16px}.founder-identity{min-height:105px;flex-direction:row;gap:18px}.founder-symbol{width:58px;height:58px;border-radius:14px}.founder-symbol img{width:56px;height:56px}.founder-copy{padding:0 4px 6px}.section{padding-block:55px}.hero-facts{margin-top:26px}.hero-facts strong{font-size:12px}.hero-facts span{font-size:11px}.brand-name{font-size:13px}.brand-name small{font-size:9px}.brand-mark-image{width:43px;height:43px}.nav-shell{gap:9px;min-height:68px}.button{font-size:13px}.project-card{min-height:unset}}
@media (max-width:350px){.brand-name small{display:none}.brand-mark-image{width:38px;height:38px}.nav-actions{gap:3px}.icon-button{min-width:40px;width:40px;height:42px}.hero-facts{gap:10px}.fact-divider{display:none}.showcase-top{font-size:8px}.showcase-status{font-size:7px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Portfolio revision 2026: professional CV-first layout, compact hero, readable sections. */
html{scroll-padding-top:84px}
body{font-family:'Noto Sans Arabic','Tahoma','Segoe UI',Arial,sans-serif;line-height:1.85}
html[lang="en"] body{font-family:'Inter','Segoe UI',Arial,sans-serif;line-height:1.65}
.hero{padding-block:clamp(38px,5vw,74px) !important}
.hero-grid{align-items:center;gap:clamp(28px,5vw,70px) !important}
.hero-copy h1{font-size:clamp(36px,4.1vw,59px);margin:13px 0 12px;line-height:1.35;letter-spacing:-.022em}
.hero-hello{font-size:clamp(20px,2.4vw,30px)}
.hero-role{font-size:clamp(14px,1.4vw,18px) !important;margin-bottom:17px !important}
.hero-subtitle{font-size:clamp(14px,1.2vw,17px);line-height:1.9;max-width:580px;margin-bottom:21px}
.hero-facts{margin-top:27px;padding-top:20px}
.name-emphasis{display:block;color:var(--blue)}
.hero-showcase.career-summary{min-height:360px;height:auto;display:flex;flex-direction:column;background:#102640;border:1px solid #275170;border-radius:24px;color:#fff;padding:clamp(22px,2.5vw,34px);box-shadow:0 22px 53px rgba(15,37,58,.16);position:relative;overflow:hidden;isolation:isolate}
.hero-showcase.career-summary::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 0 0,#0eaaa333,transparent 45%);pointer-events:none;z-index:-1}
.summary-header,.summary-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;font:700 11px/1.5 'Inter',sans-serif;letter-spacing:.09em;color:#c1d3e4}
.summary-dot{width:9px;height:9px;background:#50d6c8;border-radius:50%;box-shadow:0 0 0 5px #50d6c828}
.summary-identity{display:flex;align-items:center;gap:19px;margin-block:19px 17px;direction:inherit}
.summary-margo-logo{width:91px;height:91px;object-fit:contain;border-radius:19px;background:white;padding:6px;flex:none}
.summary-identity>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.summary-label{font-size:12px;color:#8dd9d2;font-weight:800}
.summary-identity strong{font-size:clamp(17px,1.45vw,22px);font-weight:850;line-height:1.55}
.summary-identity small{font-size:11px;color:#bad1e1}
.summary-lines{display:flex;flex-direction:column;gap:0;border-top:1px solid #ffffff26}
.summary-lines>div{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:1px 10px;border-bottom:1px solid #ffffff1e;padding:10px 0}
.summary-lines b{grid-row:1/3;color:#5cdbce;font:800 12px 'Inter',sans-serif}
.summary-lines span{font-weight:700;font-size:13px}
.summary-lines small{grid-column:2;color:#b4c9d9;font:500 10px 'Inter',sans-serif;direction:ltr;text-align:start}
.summary-foot{margin-top:auto;padding-top:15px;font-size:10px;letter-spacing:0}
.button-outline{background:transparent;border-color:var(--border);color:var(--ink)}
.button-outline:hover{border-color:var(--accent);background:var(--surface-2)}
.section{padding-block:clamp(50px,6vw,82px)}
h2{font-size:clamp(25px,2.9vw,36px);line-height:1.5}
.section-header{margin-bottom:27px}
.founder-inner{gap:clamp(18px,3vw,45px)}
.timeline-bullets{margin:11px 0 0;padding-inline-start:22px;color:var(--muted);font-size:12.5px;line-height:1.9}
.timeline-bullets li::marker{color:var(--accent)}
.project-card{min-height:unset;padding:clamp(17px,2vw,23px)}
.project-card p{font-size:13px;line-height:1.9;margin-bottom:16px}
.project-details{border-top:1px solid var(--border);margin-top:16px;padding-top:11px;font-size:12px}
.project-details>summary{list-style:none;cursor:pointer;font-weight:800;color:var(--accent);padding:4px 0}
.project-details>summary:after{content:'+';font:700 17px 'Inter',sans-serif;margin-inline-start:8px}
.project-details[open]>summary:after{content:'−'}
.project-details>summary::-webkit-details-marker{display:none}
.project-features{padding-inline-start:20px;margin:11px 0 0;color:var(--muted);line-height:1.9}
.project-features li::marker{color:var(--accent)}
.services-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.service-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:clamp(18px,2vw,26px);min-width:0}
.service-number{font:800 12px 'Inter',sans-serif;color:var(--accent)}
.service-card h3{font-size:16px;margin:16px 0 10px}
.service-card p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.8}
html[lang='en'] .hero-copy h1{line-height:1.13;letter-spacing:-.04em}
html[lang='en'] .summary-lines span{font-size:12px}
@media (max-width:990px){.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-showcase.career-summary{min-height:310px}}
@media (max-width:720px){.hero{padding-block:30px 42px !important}.hero-showcase.career-summary{min-height:0}.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy h1{font-size:clamp(34px,9vw,47px)}.summary-margo-logo{width:70px;height:70px}.hero-facts{gap:14px}}
@media (max-width:430px){.services-grid{grid-template-columns:1fr}.hero-actions .button{width:100%;justify-content:center}.hero-facts{gap:10px}.hero-facts strong{font-size:12px}.hero-facts span{font-size:11px}.summary-identity{gap:12px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto !important}.button,.project-card,.skill-card{transition:none !important;transform:none !important}}
/* Final mobile correction: stack experience and education below 700 px. */
@media (max-width:700px){
  .experience-grid{grid-template-columns:minmax(0,1fr);gap:25px}
  .timeline,.education-card{width:100%;min-width:0}
  .education-card{grid-row:2;padding:25px}
  .summary-identity{align-items:center}
}
/* Brand image: readable text fallback if the official asset is unavailable. */
.brand-mark-image,.founder-symbol{position:relative}
.brand-mark-image.image-unavailable::after,.founder-symbol.image-unavailable::after{content:'MARGO';font:800 10px/1.1 'Inter',Arial,sans-serif;color:#084b72;letter-spacing:-.02em}
.summary-margo-logo{color:#15445c}
.summary-identity .summary-brand-fallback{display:none}
.summary-identity.image-unavailable .summary-brand-fallback{display:grid;place-items:center;width:91px;min-width:91px;height:91px;border-radius:17px;background:white;font:800 14px/1 'Inter',Arial,sans-serif;color:#084b72}
@media(max-width:720px){.summary-identity.image-unavailable .summary-brand-fallback{width:70px;min-width:70px;height:70px}}
