/* Fahad Qureshi portfolio — shared styles. Colours match the original design. */
[hidden]{display:none!important}
:root{
  --bg:#F6F7FA; --surface:#FFFFFF; --soft:#F1F3F8; --ink:#141A24; --text:#374151; --text2:#4B5563;
  --muted:#5E6878; --line:#E3E7EE; --line2:#D3D9E3; --grey:#C9D1DE;
  --accent:#FF6A2B; --accent-text:#A8461C; --accent-soft:#FDEBE3; --on-accent:#0B0F17;
  --erp:#2F64E0; --erp-bg:#E6EEFD; --erp-fg:#1E4FC2;
  --both:#12A383; --both-bg:#DDF5EE; --both-fg:#0B7A62;
  --man:#D99A00; --man-bg:#FDF1D3; --man-fg:#7A5000;
  --sans:'Inter Tight',system-ui,-apple-system,'Segoe UI',sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 var(--sans)}
a{color:var(--accent-text)}a:hover{color:#8F2F08}
img{max-width:100%;display:block}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1440px;margin:0 auto;padding:0 24px}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.18em;color:var(--accent-text);text-transform:uppercase}

/* nav */
.top{background:var(--surface);border-bottom:1px solid var(--line)}
.top nav{max-width:1440px;margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 28px;font-size:15px}
.top nav a{color:var(--text);text-decoration:none}
.top nav a[aria-current=page]{color:var(--ink);font-weight:600;border-bottom:2px solid var(--accent);padding-bottom:2px}
.top nav a.cta,.btn-dark{background:var(--ink);color:#fff;font-weight:600;padding:12px 18px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0}
.top nav a.cta:hover,.btn-dark:hover{color:#fff;background:#222b3a}

/* hero */
.hero{max-width:1100px;margin:0 auto;padding:72px 24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px}
.hero h1{margin:0;font-size:clamp(36px,5.4vw,68px);line-height:1.03;letter-spacing:-.035em;font-weight:800;max-width:980px;text-wrap:balance}
.hero p{margin:0;font-size:18px;line-height:1.55;color:var(--text2);max-width:720px}
.checks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;font-size:14px;color:var(--text)}
.checks span{display:inline-flex;align-items:center;gap:8px}
.statrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));max-width:860px;margin:8px auto 40px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.statrow div{padding:20px 12px;display:flex;flex-direction:column;align-items:center;gap:4px}
.statrow b{font-size:32px;font-weight:800;letter-spacing:-.02em}
.statrow span{font-size:13px;color:var(--muted)}

/* gallery layout */
.gallery{max-width:1440px;margin:0 auto;padding:16px 24px 72px;display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.filters{flex:1 1 240px;max-width:100%;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:22px}
.filters .head{display:flex;justify-content:space-between;align-items:center}
.filters .head b{font-size:17px}
.linkbtn{background:none;border:0;color:var(--accent-text);cursor:pointer;min-height:44px;padding:0 4px;font-size:14px}
.filters fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.filters legend{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--muted);margin-bottom:10px;padding:0}
.filters label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;color:var(--text);cursor:pointer;min-height:36px}
.filters label span{display:flex;align-items:center;gap:10px}
.filters input{width:18px;height:18px;accent-color:var(--accent);margin:0}
.filters small{font-family:var(--mono);font-size:12px;color:var(--muted)}
.divider{height:1px;background:var(--line)}
.main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:18px}
.tabsrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.tabsrow>b{font-weight:600;font-size:15px;color:var(--text)}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{cursor:pointer;font-size:14px;font-weight:600;padding:0 16px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;gap:8px;background:var(--surface);color:var(--text);border:1px solid var(--line2)}
.tab[aria-selected=true]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.tab small{font-family:var(--mono);font-size:11px;opacity:.75}
.searchrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.search{flex:1 1 320px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 14px;min-height:48px}
.search input{flex:1 1 auto;min-width:0;background:transparent;border:0;outline:none;font-size:15px;min-height:46px}
.sort{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.sort select{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 12px;min-height:48px;font-size:14px;color:var(--ink)}
.showing{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--muted)}
.showing b{color:var(--ink);font-weight:600;border:1px solid var(--line2);padding:6px 12px;border-radius:999px;margin-left:6px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}

/* card */
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.thumb{position:relative;height:196px;background:var(--soft);border-bottom:1px solid var(--line);padding:12px 12px 26px}
.thumb.has-img{padding:0}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .counter{position:absolute;top:10px;right:10px;z-index:2;font-family:var(--mono);font-size:10px;color:#fff;background:rgba(20,26,36,.72);padding:3px 7px;border-radius:999px}
.thumb .nav{position:absolute;top:50%;margin-top:-26px;z-index:2;width:32px;height:32px;border-radius:50%;border:1px solid var(--line2);background:rgba(255,255,255,.92);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.thumb .prev{left:6px}.thumb .next{right:6px}
.thumb .dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px}
.thumb .dots button{width:7px;height:7px;border-radius:4px;border:0;padding:0;cursor:pointer;background:var(--grey)}
.thumb .dots button[aria-current=true]{width:18px;background:var(--accent)}
.mock{height:100%;display:flex;flex-direction:column;gap:8px}
.mock .bar{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:600;color:var(--text)}
.mock .bar i{width:34px;height:6px;border-radius:3px;background:var(--accent)}
.mock .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mock .kpis div{background:#fff;border-radius:6px;padding:5px 6px;display:flex;flex-direction:column;gap:2px}
.mock .kpis span{font-size:7px;color:var(--muted);letter-spacing:.04em}
.mock .kpis b{font-size:12px}
.mock .kpis div:first-child b{color:var(--accent)}
.mock .charts{flex:1 1 auto;display:flex;gap:8px;min-height:0}
.mock .bars{flex:2 1 0;background:#fff;border-radius:6px;padding:8px 8px 0;display:flex;align-items:flex-end;gap:4px}
.mock .bars i{flex:1 1 0;background:var(--grey);border-radius:2px 2px 0 0}
.mock .bars i:nth-child(3n){background:var(--accent)}
.mock .donutbox{flex:1 1 0;background:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center}
.mock .donut{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.mock .donut span{width:32px;height:32px;border-radius:50%;background:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center}
.flowmock{height:100%;display:flex;align-items:center;background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:14px 14px;border-radius:8px;padding:0 8px}
.flowmock .node{display:flex;align-items:center;flex:1 1 0;min-width:0}
.flowmock .node:last-child{flex:0 0 auto}
.flowmock .box{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px}
.flowmock .box i{width:40px;height:40px;border-radius:10px;border:1.5px solid #AEB8C8;background:#fff;display:flex;align-items:center;justify-content:center}
.flowmock .box i::after{content:"";width:12px;height:12px;border-radius:3px;background:#AEB8C8}
.flowmock .node:last-child .box i{border-color:var(--accent)}.flowmock .node:last-child .box i::after{background:var(--accent)}
.flowmock .box span{font-size:9px;font-family:var(--mono);color:var(--text);white-space:nowrap}
.flowmock .line{flex:1 1 auto;height:1.5px;background:var(--grey);min-width:6px;margin-bottom:16px}
.erpmock{display:flex;flex-direction:column;gap:9px;height:100%;padding:12px;background:#fff;border-radius:8px;color:var(--ink);text-decoration:none}
.erpmock .r{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}
.erpmock .r .eyebrow{font-size:10px;letter-spacing:.12em}
.erpmock .hub{align-self:center;background:var(--ink);color:#fff;font-size:10px;font-weight:700;padding:3px 14px;border-radius:6px}
.erpmock .depts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border-top:1.5px solid var(--grey);padding-top:8px}
.erpmock .depts span{background:var(--soft);border-radius:5px;padding:5px 3px;font-size:9px;text-align:center;color:var(--text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mix{display:flex;height:7px;border-radius:99px;overflow:hidden;gap:2px}
.mix i{display:block}.mix .e{background:var(--erp)}.mix .b{background:var(--both)}.mix .m{background:var(--man)}
.erpmock .mix{margin-top:auto}
.card .body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1 1 auto}
.card h3{margin:0;font-size:16px;line-height:1.3}
.card .sub{font-size:13px;color:var(--muted)}
.card p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--text2);flex:1 1 auto}
.card .foot{display:flex;justify-content:space-between;align-items:center;padding-top:10px;margin-top:6px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);gap:8px}
.card .foot .meta{display:flex;flex-direction:column;gap:2px}
.card .foot .meta small{font-family:var(--mono);font-size:11px}
.card .actions{display:flex;align-items:center;gap:8px}
.card .open{font-weight:600;color:var(--ink);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:0 6px;background:none;border:0;cursor:pointer;font-size:13px}
.card .dl{background:var(--accent);color:var(--on-accent);text-decoration:none;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px}
.soon,.empty{border-radius:16px;padding:72px 24px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}
.soon{background:var(--surface);border:1px solid var(--line)}
.soon b{font-size:clamp(32px,4vw,48px);font-weight:800;letter-spacing:-.03em;line-height:1}
.empty{border:1px dashed var(--line2);color:var(--muted);padding:40px}
.empty b{font-size:17px;color:var(--ink)}
.btn-accent{background:var(--accent);color:var(--on-accent);border:0;border-radius:999px;padding:0 18px;min-height:44px;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}

/* contact band + footer */
.band{max-width:1440px;margin:0 auto;padding:0 24px 64px}
.band>div{background:var(--accent);color:var(--on-accent);border-radius:24px;padding:clamp(32px,5vw,56px);display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between}
.band .txt{flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:12px}
.band h2{margin:0;font-size:clamp(30px,4vw,48px);line-height:1;letter-spacing:-.035em;font-weight:800}
.band p{margin:0;font-size:18px;line-height:1.5;color:#2B1A10}
.band .act{display:flex;flex-direction:column;gap:10px;flex:0 1 320px}
.band .act a{font-size:16px;padding:16px 22px;min-height:52px}
.band .act .outline{border:1.5px solid var(--on-accent);color:var(--on-accent);text-decoration:none;font-weight:600;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}
.band .mail{font-family:var(--mono);font-size:13px;text-align:center;color:#2B1A10}
footer{border-top:1px solid var(--line)}
footer div{max-width:1440px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
footer a{color:var(--text);text-decoration:none}

/* about */
.about-hero{max-width:1240px;margin:0 auto;padding:80px 24px 56px;display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}
.photo{width:200px;height:240px;border-radius:20px;background:#fff;border:1px dashed var(--grey);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-family:var(--mono);font-size:12px;letter-spacing:.08em;padding:16px;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover}
.about-hero .side{display:flex;flex-direction:column;gap:14px}
.place{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text2)}
.about-hero .txt{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:20px}
.about-hero h1{margin:0;font-size:clamp(42px,6vw,72px);line-height:.98;letter-spacing:-.035em;font-weight:800}
.lead{margin:0;font-size:21px;line-height:1.45;font-weight:500}
.about-hero p.more{margin:0;font-size:17px;line-height:1.65;color:var(--text2);max-width:720px}
.mini{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding-top:8px}
.mini div{border:1px solid var(--line);border-radius:14px;padding:16px}
.mini b{display:block;font-size:30px;font-weight:800;letter-spacing:-.02em}
.mini span{font-size:13px;color:var(--muted)}
.creds{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.creds>div{max-width:1240px;margin:0 auto;padding:28px 24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.cred{display:flex;gap:14px;align-items:flex-start}
.cred .ic{flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent-text);display:flex;align-items:center;justify-content:center}
.cred b{font-size:18px;display:block}
.cred span{font-size:14px;color:var(--text2);line-height:1.4;display:block}
.cred small{font-family:var(--mono);font-size:11px;color:var(--muted);letter-spacing:.08em}
.section{max-width:1240px;margin:0 auto;padding:80px 24px 40px;display:flex;flex-direction:column;gap:36px}
.section h2{margin:0;font-size:clamp(32px,4vw,48px);line-height:1.05;letter-spacing:-.03em;font-weight:800}
.jobs{list-style:none;margin:0;padding:0}
.jobs li{display:flex;flex-wrap:wrap;gap:16px 40px;padding:32px 0;border-top:1px solid var(--line)}
.jobs .when{flex:0 1 260px;min-width:200px;display:flex;flex-direction:column;gap:6px}
.jobs .when b{font-family:var(--mono);font-size:12px;letter-spacing:.08em;color:var(--muted);font-weight:400}
.jobs li:first-child .when b{color:var(--accent)}
.jobs .when span{font-size:14px;color:var(--muted)}
.jobs .what{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:12px}
.jobs h3{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.015em}
.jobs .co{font-size:16px;color:var(--accent-text);font-weight:600}
.jobs ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.5;color:var(--text)}
.split{max-width:1240px;margin:0 auto;padding:0 24px 80px;display:flex;flex-wrap:wrap;gap:48px}
.split>div{min-width:0;display:flex;flex-direction:column;gap:20px}
.areas{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.areas div{border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:6px}
.areas b{font-size:17px}.areas span{font-size:14px;line-height:1.5;color:var(--text2)}
.toolgrp{display:flex;flex-direction:column;gap:8px}
.toolgrp>span{font-size:13px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{font-size:14px;font-weight:500;background:#EEF1F6;padding:8px 12px;border-radius:8px}

/* animated n8n workflows */
.flowbtn{display:block;width:100%;height:158px;padding:0;border:0;border-radius:10px;background:#0b1020;cursor:pointer;text-align:left;overflow:hidden}
.flowdlg{position:fixed;inset:0;z-index:100;background:rgba(11,15,23,.8);overflow-y:auto;padding:24px 16px}
.flowdlg[hidden]{display:none}
.flowin{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.flowhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:#fff;font-size:15px;font-weight:600}
.flowhead button{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
