/* =====================================================================
   Adel Asiri — Portfolio · design system
   RTL/LTR via logical properties · mobile-first breakpoints
   ===================================================================== */
@font-face{font-family:Plex;font-weight:400;font-display:swap;src:url(../fonts/plex-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:Plex;font-weight:500;font-display:swap;src:url(../fonts/plex-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:Plex;font-weight:600;font-display:swap;src:url(../fonts/plex-arabic-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:Plex;font-weight:700;font-display:swap;src:url(../fonts/plex-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:Plex;font-weight:400;font-display:swap;src:url(../fonts/plex-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:Plex;font-weight:500;font-display:swap;src:url(../fonts/plex-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:Plex;font-weight:600;font-display:swap;src:url(../fonts/plex-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:Plex;font-weight:700;font-display:swap;src:url(../fonts/plex-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}

:root{
  --ink:#0B2E3A;--ink-2:#123F4E;--teal:#0E7C7B;--teal-2:#12A39E;--teal-soft:#E4F2F1;
  --gold:#C8A24A;--gold-2:#E2C17A;--gold-soft:#FBF4E4;--red:#C2410C;--green:#0F8A5F;
  --bg:#F5F7F8;--card:#FFFFFF;--line:#E3E8EA;--line-2:#EEF2F3;--muted:#5B6B73;--text:#16262D;
  --r-lg:22px;--r:16px;--r-sm:10px;
  --sh-1:0 1px 2px rgba(11,46,58,.05),0 4px 14px rgba(11,46,58,.06);
  --sh-2:0 2px 6px rgba(11,46,58,.06),0 18px 40px rgba(11,46,58,.10);
  --container:1200px;--nav-h:70px;
  --font:Plex,"IBM Plex Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 12px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
[dir=ltr] body{line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--teal);text-decoration:none}
a:hover{color:var(--ink)}
button{font:inherit;cursor:pointer}
h1,h2,h3,h4{color:var(--ink);line-height:1.3;margin:0 0 .5em;font-weight:700}
p{margin:0 0 1em}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;background:var(--line-2);color:var(--ink-2);padding:.1em .45em;border-radius:6px;direction:ltr;unicode-bidi:isolate}
small{font-size:.82em}
.ic{flex:none;vertical-align:middle}
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:20px}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;border-radius:8px;z-index:100}
.skip:focus{inset-inline-start:12px}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
.muted{color:var(--muted)}

/* ---------------------------------------------------------- buttons & chips */
.btn{display:inline-flex;align-items:center;gap:.55em;padding:.78em 1.25em;border-radius:999px;font-weight:600;font-size:.95rem;border:1.5px solid transparent;transition:transform .15s,box-shadow .2s,background .2s,color .2s;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:var(--gold);color:#1E1604;box-shadow:0 8px 22px rgba(200,162,74,.35)}
.btn-gold:hover{background:var(--gold-2);color:#1E1604}
.btn-ghost{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.06)}
.btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:var(--teal);color:#fff}
[dir=rtl] .btn .ic:last-child:not(:first-child),[dir=rtl] .link-ext .ic,[dir=rtl] .link-int .ic,[dir=rtl] .pc-more .ic{transform:scaleX(-1)}
.pill{display:inline-flex;align-items:center;gap:.6em;padding:.4em 1em;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#D6E6E8;font-size:.86rem;font-weight:500}
.dot{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(200,162,74,.25)}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.04em;color:var(--teal);text-transform:uppercase;margin-bottom:.6rem}
.eyebrow.light{color:var(--gold-2)}
.tool-badge{align-self:flex-start;width:fit-content;display:inline-flex;align-items:center;gap:.4em;font-size:.78rem;font-weight:700;padding:.3em .8em;border-radius:999px;margin-bottom:.8rem}
.tb-pbi{background:#FFF6DB;color:#8A6A00}
.tb-php{background:#ECEBFA;color:#4B3F9E}
.tb-py{background:#E3F0FA;color:#1F5B87}
.tb-py.on-dark{background:rgba(255,255,255,.1);color:#CFE6F7}
.kpi-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 0 1rem}
.kpi-chips li{font-size:.78rem;padding:.25em .7em;border-radius:8px;background:var(--teal-soft);color:var(--teal);font-weight:600}
.stack{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1rem}
.stack span{font-size:.74rem;padding:.2em .6em;border-radius:6px;border:1px solid var(--line);color:var(--muted);direction:ltr;unicode-bidi:isolate}
.stack.light span{border-color:rgba(255,255,255,.22);color:#D6E6E8}
.link-ext,.link-int{display:inline-flex;align-items:center;gap:.35em;font-weight:600;font-size:.9rem;white-space:nowrap}
.note{display:flex;gap:.5em;align-items:flex-start;background:var(--gold-soft);border:1px solid #F0E2BD;color:#6B5418;padding:.8em 1em;border-radius:var(--r-sm);font-size:.9rem;margin:1rem 0 0}

/* ---------------------------------------------------------- nav */
.nav{position:sticky;top:0;z-index:50;height:var(--nav-h);background:rgba(11,46,58,.92);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid rgba(255,255,255,.06);transition:box-shadow .2s}
.nav.scrolled{box-shadow:0 8px 24px rgba(0,0,0,.18)}
.nav-in{display:flex;align-items:center;gap:20px;height:100%}
.brand{display:flex;align-items:center;gap:10px;color:#fff}
.brand:hover{color:#fff}
.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:700;background:linear-gradient(135deg,var(--gold),#A8812F);color:#1E1604;font-size:1.05rem;letter-spacing:.02em}
.brand-txt{display:flex;flex-direction:column;line-height:1.2}
.brand-txt strong{font-size:1rem}
.brand-txt small{color:#9FC2C6;font-size:.72rem;letter-spacing:.05em}
.nav-links{display:flex;align-items:center;gap:4px;margin-inline-start:auto}
.nav-links a{color:#D6E6E8;font-size:.9rem;font-weight:500;padding:.5em .8em;border-radius:10px;white-space:nowrap}
.nav-links a:hover,.nav-links a.is-active{color:#fff;background:rgba(255,255,255,.08)}
.nav-links .nav-cta{background:var(--gold);color:#1E1604;font-weight:700;margin-inline-start:6px}
.nav-links .nav-cta:hover{background:var(--gold-2);color:#1E1604}
.nav-tools{display:flex;align-items:center;gap:8px}
.lang{display:grid;place-items:center;min-width:42px;height:38px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.25);color:#fff;font-weight:700;font-size:.9rem}
.lang:hover{background:rgba(255,255,255,.1);color:#fff}
.burger{display:none;width:42px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;place-items:center}

/* ---------------------------------------------------------- hero */
.hero{position:relative;background:radial-gradient(1200px 600px at 85% -10%,#155B66 0%,transparent 60%),linear-gradient(160deg,#0B2E3A 0%,#082129 100%);color:#fff;padding:64px 0 0;overflow:hidden}
.hero-bg{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(ellipse at 70% 30%,#000 30%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 70% 30%,#000 30%,transparent 75%);pointer-events:none}
.hero-in{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.hero h1{color:#fff;font-size:clamp(1.9rem,3.6vw,3.1rem);line-height:1.25;margin:1.1rem 0 .8rem;letter-spacing:-.01em}
.hero-name{display:block;font-size:.5em;color:var(--gold-2);font-weight:600;margin-bottom:.35em;letter-spacing:.01em}
.hero-title{color:#9FD3D0;font-weight:600;font-size:1.02rem;margin-bottom:1rem}
.hero-sum{color:#C9DADD;font-size:1.02rem;max-width:62ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:1.6rem 0 1.4rem}
.hero-badges{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.hero-badges li{font-size:.78rem;font-weight:600;padding:.3em .8em;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#D6E6E8;direction:ltr}
.hero-visual{position:relative;height:460px}
.hv-card{position:absolute;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 30px 60px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.4)}
.hv-card img{width:100%;height:100%;object-fit:cover;object-position:top}
.hv-main{inset-inline-end:0;top:10px;width:88%;aspect-ratio:16/10.4;transform:perspective(1200px) rotateY(-6deg) rotateX(2deg)}
[dir=ltr] .hv-main{transform:perspective(1200px) rotateY(6deg) rotateX(2deg)}
.hv-second{inset-inline-start:0;bottom:12px;width:58%;aspect-ratio:16/10;border:4px solid #fff}
.hv-phone{position:absolute;inset-inline-end:6%;bottom:-6px;width:150px;aspect-ratio:9/19;border-radius:26px;border:7px solid #0A1A20;overflow:hidden;background:#fff;box-shadow:0 30px 50px rgba(0,0,0,.45)}
.hv-phone img{width:100%;height:100%;object-fit:cover;object-position:top}
.hv-chip{position:absolute;display:flex;align-items:center;gap:8px;background:#fff;color:var(--ink);padding:10px 14px;border-radius:14px;box-shadow:var(--sh-2);font-size:.8rem;line-height:1.25}
.hv-chip strong{display:block;font-size:.95rem}
.hv-chip .ic{color:var(--teal)}
.hv-chip-1{top:-6px;inset-inline-start:4%}
.hv-chip-2{bottom:40%;inset-inline-start:-4%}
.stats{position:relative;display:grid;grid-template-columns:repeat(4,1fr);margin:56px 0 0;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-bottom:0;border-radius:22px 22px 0 0;overflow:hidden}
.stat{padding:22px 24px;display:flex;flex-direction:column-reverse;gap:2px;border-inline-start:1px solid rgba(255,255,255,.08)}
.stat:first-child{border-inline-start:0}
.stat dt{color:#9FC2C6;font-size:.86rem}
.stat dd{margin:0;font-size:clamp(1.6rem,2.6vw,2.2rem);font-weight:700;color:#fff;direction:ltr;text-align:start}
[dir=rtl] .stat dd{text-align:end}

/* ---------------------------------------------------------- sections */
.section{padding:88px 0}
.section.tight{padding:40px 0 72px}
.section-alt{background:#fff;border-block:1px solid var(--line)}
.sec-head{max-width:760px;margin-bottom:40px}
.sec-head h2{font-size:clamp(1.6rem,2.8vw,2.3rem);letter-spacing:-.01em}
.lead{color:var(--muted);font-size:1.05rem;margin:0}
.sub-title{display:flex;align-items:center;gap:.5em;font-size:1.25rem;margin:64px 0 22px}
.sub-title .ic{color:var(--teal)}
.h2-s{font-size:1.4rem;margin:56px 0 20px}

/* reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}

/* ---------------------------------------------------------- dashboards */
.dash-feature{display:grid;grid-template-columns:1.25fr 1fr;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-2);margin-bottom:28px}
.df-media{position:relative;display:block;background:#EAF1F3;min-height:320px;overflow:hidden}
.df-media>img,.df-media>svg{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .5s;position:absolute;inset:0}
.df-media:hover img{transform:scale(1.02)}
.df-play{position:absolute;inset-block-end:18px;inset-inline-start:18px;display:inline-flex;align-items:center;gap:.5em;background:rgba(11,46,58,.9);color:#fff;padding:.6em 1em;border-radius:999px;font-size:.88rem;font-weight:600}
.df-body{padding:34px}
.df-body h3{font-size:1.5rem}
.df-body p{color:var(--muted)}
.dash-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.dash-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);transition:box-shadow .25s,transform .25s}
.dash-card:hover{box-shadow:var(--sh-2);transform:translateY(-3px)}
.dc-media{position:relative;aspect-ratio:16/9.5;background:#EAF1F3;overflow:hidden;border-bottom:1px solid var(--line)}
.dc-media>img,.dc-media>svg{width:100%;height:100%;object-fit:cover;object-position:top center;cursor:zoom-in}
.dc-media>svg{cursor:default}
.live{position:absolute;top:14px;inset-inline-start:14px;display:inline-flex;align-items:center;gap:.45em;background:rgba(255,255,255,.95);color:var(--ink);font-size:.75rem;font-weight:700;padding:.3em .75em;border-radius:999px;box-shadow:var(--sh-1)}
.live .dot{width:7px;height:7px;background:#16A34A;box-shadow:0 0 0 3px rgba(22,163,74,.2);animation:pulse 2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(22,163,74,0)}}
.dc-body{display:flex;flex-direction:column;flex:1;padding:24px 24px 20px}
.dc-body h3{font-size:1.2rem}
.dc-body p{color:var(--muted);font-size:.94rem}
.dc-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dc-foot .stack{margin:0}

/* ---------------------------------------------------------- governance */
.flow{list-style:none;padding:0;margin:0 0 40px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:f}
.flow li{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:22px 20px 20px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--sh-1)}
.flow li:not(:last-child)::after{content:"";position:absolute;top:50%;inset-inline-end:-13px;width:10px;height:10px;border-top:2px solid var(--teal);border-inline-end:2px solid var(--teal);transform:translateY(-50%) rotate(45deg);z-index:1}
[dir=rtl] .flow li:not(:last-child)::after{transform:translateY(-50%) rotate(-135deg)}
.flow-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);margin-bottom:8px}
.flow-n{position:absolute;top:16px;inset-inline-end:18px;font-weight:700;color:var(--line);font-size:1.6rem}
.flow strong{color:var(--ink)}
.flow small{color:var(--muted)}
.tabs{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1);overflow:hidden}
.tab-list{display:flex;gap:4px;padding:8px;background:var(--bg);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}
.tab-list button{border:0;background:transparent;padding:.65em 1em;border-radius:10px;color:var(--muted);font-weight:600;font-size:.88rem;white-space:nowrap}
.tab-list button[aria-selected=true]{background:#fff;color:var(--ink);box-shadow:var(--sh-1)}
.tab-panel{padding:24px}
.tp-lead{color:var(--muted);margin-bottom:16px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;-webkit-overflow-scrolling:touch}
.tbl{width:100%;border-collapse:collapse;font-size:.9rem;min-width:620px}
.tbl th{background:var(--ink);color:#fff;font-weight:600;text-align:start;padding:.8em 1em;white-space:nowrap;font-size:.84rem}
.tbl td{padding:.75em 1em;border-top:1px solid var(--line);vertical-align:top}
.tbl td code{white-space:nowrap}
.tbl tbody tr:nth-child(even) td{background:#FAFCFC}
.tbl.compact{min-width:0;font-size:.85rem}
.tbl.compact td,.tbl.compact th{padding:.6em .75em}
.tbl .neg{color:var(--red);font-weight:600;direction:ltr;text-align:end}
.dim{display:inline-block;background:var(--teal-soft);color:var(--teal);padding:.1em .6em;border-radius:6px;font-size:.82rem;font-weight:600}
.ref-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ref-card{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--bg)}
.ref-card h4{font-size:1rem;margin-bottom:.5rem}
.ref-card ul{list-style:none;margin:0;padding:0;font-size:.88rem;color:var(--muted)}
.ref-card li{padding:.3em 0;border-top:1px dashed var(--line)}
.ref-card li:first-child{border-top:0}
.tab-panel .link-int{margin-top:16px}
.comp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.comp{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:22px}
.comp-ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--ink);color:var(--gold-2);margin-bottom:12px}
.comp h3{font-size:1.05rem;margin-bottom:.3rem}
.comp p{color:var(--muted);font-size:.9rem;margin:0}

/* ---------------------------------------------------------- projects */
.proj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.proj-card{--pc:var(--teal);display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;color:inherit;box-shadow:var(--sh-1);transition:transform .25s,box-shadow .25s}
.proj-card:hover{transform:translateY(-4px);box-shadow:var(--sh-2);color:inherit}
.pc-media{aspect-ratio:16/10;overflow:hidden;background:#EAF1F3;border-bottom:3px solid var(--pc)}
.pc-media img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .5s}
.proj-card:hover .pc-media img{transform:scale(1.04)}
.pc-body{padding:22px;display:flex;flex-direction:column;flex:1}
.pc-cat{display:inline-flex;align-items:center;gap:.5em;font-size:.8rem;font-weight:600;color:var(--pc);margin-bottom:.6rem}
.pc-cat.light{color:#D6E6E8}
.pc-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--pc) 12%,#fff);color:var(--pc)}
.pc-cat.light .pc-ic{background:rgba(255,255,255,.12);color:#fff}
.pc-body h3{font-size:1.12rem}
.pc-body p{color:var(--muted);font-size:.92rem}
.pc-nums{display:flex;gap:8px;margin:auto 0 14px;flex-wrap:wrap}
.pc-nums span{flex:1;min-width:80px;background:var(--bg);border-radius:10px;padding:8px 10px;font-size:.72rem;color:var(--muted);line-height:1.3}
.pc-nums strong{display:block;font-size:1.05rem;color:var(--ink);direction:ltr;text-align:start}
[dir=rtl] .pc-nums strong{text-align:end}
.pc-more{display:inline-flex;align-items:center;gap:.4em;font-weight:700;color:var(--pc);font-size:.9rem}
/* chat mock (card) */
.chat-mini{height:100%;background:linear-gradient(180deg,#0B5D55,#0E7C7B 38%,#ECE5DD 38%);display:flex;flex-direction:column;padding:14px 18px}
.cm-head{display:flex;align-items:center;gap:10px;color:#fff;line-height:1.2;margin-bottom:16px}
.cm-head small{display:block;color:#BFE6DF;font-size:.72rem}
.cm-av{width:34px;height:34px;border-radius:50%;background:#fff;color:#0E7C7B;display:grid;place-items:center;flex:none}
.cm-body{display:flex;flex-direction:column;gap:8px}
.bubble{max-width:86%;padding:8px 12px;border-radius:12px;font-size:.78rem;line-height:1.55;box-shadow:0 1px 1px rgba(0,0,0,.08);position:relative;color:#16262D}
.bubble.in{align-self:flex-start;background:#D9FDD3;border-start-start-radius:3px}
.bubble.out{align-self:flex-end;background:#fff;border-start-end-radius:3px}
.bubble small{color:var(--muted)}
.b-time{display:block;text-align:end;font-size:.62rem;color:#8696A0;margin-top:2px}
/* websites */
.web-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.web-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 16px 20px;box-shadow:var(--sh-1);display:flex;flex-direction:column}
.web-card h4{font-size:1.05rem;margin-top:16px}
.web-card p{color:var(--muted);font-size:.9rem}
.device{position:relative;border-radius:12px;overflow:visible;background:#F0F4F5;border:1px solid var(--line)}
.browser{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#fff;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.b-dots{display:flex;gap:5px}
.b-dots i{width:8px;height:8px;border-radius:50%;background:#E2E8EA}
.b-dots i:first-child{background:#F87171}.b-dots i:nth-child(2){background:#FBBF24}.b-dots i:nth-child(3){background:#34D399}
.b-url{flex:1;background:var(--bg);border-radius:6px;font-size:.72rem;color:var(--muted);padding:2px 8px;text-align:center}
.d-desk{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:0 0 12px 12px}
.d-mob{position:absolute;inset-inline-end:-8px;bottom:-14px;width:24%;aspect-ratio:9/19;object-fit:cover;object-position:top;border-radius:14px;border:4px solid #0A1A20;box-shadow:var(--sh-2);background:#fff}
.web-placeholder{aspect-ratio:16/10;display:grid;place-items:center;align-content:center;gap:8px;color:var(--teal);background:linear-gradient(135deg,#E4F2F1,#F5F7F8);border-radius:0 0 12px 12px}
.web-placeholder strong{color:var(--ink)}
.more-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.more-list li{background:var(--card);border:1px solid var(--line);border-inline-start:4px solid var(--gold);border-radius:12px;padding:14px 18px}
.more-list strong{display:block;color:var(--ink)}
.more-list span{color:var(--muted);font-size:.88rem}

/* ---------------------------------------------------------- experience */
.exp-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:36px;align-items:start}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline::before{content:"";position:absolute;top:8px;bottom:8px;inset-inline-start:7px;width:2px;background:linear-gradient(var(--teal),var(--line))}
.timeline>li{position:relative;padding-inline-start:38px;margin-bottom:34px}
.timeline>li::before{content:"";position:absolute;inset-inline-start:0;top:6px;width:16px;height:16px;border-radius:50%;background:#fff;border:4px solid var(--teal)}
.tl-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline}
.tl-head h3{font-size:1.15rem;margin:0}
.tl-period{font-size:.8rem;font-weight:700;color:#fff;background:var(--teal);padding:.2em .8em;border-radius:999px;white-space:nowrap}
.tl-org{color:var(--gold);font-weight:600;margin:.2rem 0 .6rem}
.timeline ul{margin:0;padding-inline-start:1.1em;color:var(--muted);font-size:.93rem}
.timeline ul li{margin-bottom:.35em}
.timeline ul li::marker{color:var(--teal)}
.exp-side{display:flex;flex-direction:column;gap:18px}
.side-card{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.side-card h3{display:flex;align-items:center;gap:.5em;font-size:1.02rem}
.side-card h3 .ic{color:var(--teal)}
.skills{margin:0}
.skills dt{font-weight:700;color:var(--ink);font-size:.9rem;margin-top:.7em}
.skills dd{margin:0;color:var(--muted);font-size:.82rem;text-align:start}
[dir=rtl] .skills dd{text-align:end}
.plain{list-style:none;margin:0;padding:0}
.plain li{padding:.45em 0;border-top:1px dashed var(--line);font-size:.9rem}
.plain li:first-child{border-top:0}
.plain strong{display:block;color:var(--ink)}
.plain small{color:var(--muted)}
.plain.dots li{color:var(--muted)}
.langs{display:flex;gap:10px;margin-top:12px}
.langs span{flex:1;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:.8rem;color:var(--muted)}
.langs strong{display:block;color:var(--ink);font-size:.92rem}

/* ---------------------------------------------------------- certifications */
.cert-feature{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:26px}
.cf{margin:0;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1)}
.cf-img{display:block;width:100%;border:0;padding:14px;background:linear-gradient(135deg,#0B2E3A,#155B66)}
.cf-img img{border-radius:8px;box-shadow:0 10px 24px rgba(0,0,0,.3);aspect-ratio:4/3;object-fit:cover;width:100%;background:#fff}
.cf figcaption{padding:16px 18px 18px;line-height:1.4}
.cf-area{display:block;font-size:.76rem;color:var(--teal);font-weight:700;margin-bottom:4px}
.cf strong{display:block;color:var(--ink);direction:ltr;text-align:start}
[dir=rtl] .cf strong{text-align:end}
.cf small{color:var(--muted)}
.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cert{display:flex;flex-direction:column;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:14px;overflow:hidden;padding:0;transition:box-shadow .2s,transform .2s}
.cert:hover{box-shadow:var(--sh-2);transform:translateY(-2px)}
.cert img{aspect-ratio:4/2.8;object-fit:cover;width:100%;border-bottom:1px solid var(--line)}
.cert-txt{padding:10px 12px;line-height:1.35}
.cert-txt strong{display:block;font-size:.84rem;color:var(--ink)}
.cert-txt small{color:var(--muted);font-size:.74rem}

/* ---------------------------------------------------------- contact & footer */
.contact{background:linear-gradient(135deg,#0B2E3A,#0E4B55);color:#fff}
.contact-in{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.contact h2{color:#fff;font-size:clamp(1.7rem,3vw,2.4rem)}
.contact p{color:#C9DADD}
.contact-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.contact-list a,.contact-list .ci{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#fff}
.contact-list a:hover{background:rgba(255,255,255,.12);color:#fff}
.contact-list .ic{color:var(--gold-2)}
.contact-list small{display:block;color:#9FC2C6;font-size:.76rem}
.contact-list b{font-weight:600;word-break:break-word}
.footer{background:#071C23;color:#9FC2C6;padding:36px 0 22px}
.footer-in{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.brand-foot .brand-txt small{max-width:420px}
.foot-links{display:flex;gap:18px;flex-wrap:wrap}
.foot-links a{display:inline-flex;align-items:center;gap:.4em;color:#D6E6E8;font-size:.88rem}
.foot-links a:hover{color:var(--gold-2)}
.foot-note{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);font-size:.8rem}

/* ---------------------------------------------------------- lightbox */
.lightbox{position:fixed;inset:0;z-index:200;background:rgba(4,16,20,.92);display:flex;align-items:center;justify-content:center;gap:12px;padding:20px}
.lightbox[hidden]{display:none}
.lightbox figure{margin:0;max-width:min(1400px,92vw);max-height:90vh;display:flex;flex-direction:column;align-items:center}
.lightbox img{max-height:82vh;width:auto;max-width:100%;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5);background:#fff}
.lightbox figcaption{color:#D6E6E8;margin-top:12px;font-size:.92rem;text-align:center}
.lb-close{position:absolute;top:16px;inset-inline-end:16px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center}
.lb-nav{width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:1.8rem;line-height:1;flex:none}
[dir=rtl] .lb-nav{transform:scaleX(-1)}
.lb-close:hover,.lb-nav:hover{background:rgba(255,255,255,.22)}
body.lb-open,body.menu-open{overflow:hidden}

/* ---------------------------------------------------------- project page */
.crumbs{display:flex;gap:8px;font-size:.84rem;color:#9FC2C6;margin-bottom:18px;flex-wrap:wrap}
.crumbs a{color:#D6E6E8}
.crumbs.light a{color:#D6E6E8}
.p-hero{--pc:var(--teal);background:radial-gradient(900px 500px at 90% 0%,color-mix(in srgb,var(--pc) 45%,#0B2E3A),transparent 70%),linear-gradient(160deg,#0B2E3A,#082129);color:#fff;padding:36px 0 56px}
.p-hero-in{display:grid;grid-template-columns:1fr 1.1fr;gap:44px;align-items:center}
.p-hero h1{color:#fff;font-size:clamp(1.7rem,3.2vw,2.6rem);margin:.6rem 0 .4rem}
.p-tag{color:var(--gold-2);font-weight:600;font-size:1.06rem}
.p-sum{color:#C9DADD}
.p-shot{display:block;border:0;padding:0;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.35);cursor:zoom-in;width:100%}
.p-shot img{width:100%;max-height:440px;object-fit:cover;object-position:top}
.p-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:-80px 0 36px;position:relative}
.p-nums>div{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;box-shadow:var(--sh-2);display:flex;flex-direction:column}
.p-nums dd{margin:0;font-size:1.7rem;font-weight:700;color:var(--ink);direction:ltr;text-align:start}
[dir=rtl] .p-nums dd{text-align:end}
.p-nums dt{color:var(--muted);font-size:.86rem}
.ps-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ps-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:var(--sh-1)}
.ps-card p{margin:0;color:var(--text)}
.ps-sol{background:var(--ink);border-color:var(--ink)}
.ps-sol p{color:#D6E6E8}
.ps-label{display:inline-flex;align-items:center;gap:.4em;font-weight:700;color:var(--red);margin-bottom:.6rem}
.ps-sol .ps-label{color:var(--gold-2)}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feat{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:22px;box-shadow:var(--sh-1)}
.feat-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);margin-bottom:12px}
.feat h3{font-size:1.02rem}
.feat p{color:var(--muted);font-size:.9rem;margin:0}
.gov-callout{display:flex;gap:18px;align-items:flex-start;margin-top:28px;padding:22px 24px;border-radius:var(--r);background:var(--gold-soft);border:1px solid #F0E2BD}
.gc-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--gold);color:#1E1604;flex:none}
.gov-callout strong{color:#6B5418;display:block;margin-bottom:.3rem}
.gov-callout p{margin:0;color:#4B3B10}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.g-item{margin:0}
.g-item button{display:block;width:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;padding:0;background:#fff;cursor:zoom-in;box-shadow:var(--sh-1);transition:box-shadow .2s,transform .2s}
.g-item button:hover{box-shadow:var(--sh-2);transform:translateY(-2px)}
.g-item img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.g-item.g-mobile img{aspect-ratio:9/12}
.g-item figcaption{font-size:.84rem;color:var(--muted);padding:8px 4px 0}
.p-pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:56px}
.p-pager a{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 22px;color:inherit;box-shadow:var(--sh-1)}
.p-pager a:hover{border-color:var(--teal)}
.p-pager .next{text-align:end}
.p-pager small{display:block;color:var(--muted)}
.p-pager strong{color:var(--ink)}
/* phone mock */
.phone{margin:0 auto;max-width:330px}
.phone-frame{position:relative;border-radius:40px;border:10px solid #0A1A20;background:#ECE5DD;overflow:hidden;box-shadow:0 40px 70px rgba(0,0,0,.45);aspect-ratio:9/18.5;display:flex;flex-direction:column}
.phone-notch{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:34%;height:20px;border-radius:12px;background:#0A1A20;z-index:2}
.wa-head{display:flex;align-items:center;gap:10px;background:#0B5D55;color:#fff;padding:36px 14px 12px;line-height:1.2;font-size:.85rem}
.wa-head small{display:block;color:#BFE6DF;font-size:.7rem}
.wa-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:14px 10px;overflow:hidden;background-image:radial-gradient(rgba(0,0,0,.035) 1px,transparent 1px);background-size:14px 14px}
.wa-body .bubble{font-size:.74rem}
.wa-input{background:#F0F2F5;padding:10px}
.wa-input span{display:block;background:#fff;border-radius:999px;padding:6px 14px;color:#8696A0;font-size:.75rem}
.phone figcaption{color:#9FC2C6;text-align:center;font-size:.82rem;margin-top:12px}
/* architecture */
.arch-rows{display:grid;gap:14px}
.arch-row{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--sh-1)}
.arch-tag{display:inline-block;font-size:.76rem;font-weight:700;color:var(--teal);background:var(--teal-soft);padding:.2em .7em;border-radius:6px;margin-bottom:12px}
.arch-flow{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap}
.arch-flow li{flex:1;min-width:140px;background:var(--bg);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;position:relative}
.arch-flow li .ic{color:var(--teal);margin-bottom:4px}
.arch-flow strong{color:var(--ink);font-size:.9rem;direction:ltr;text-align:start}
[dir=rtl] .arch-flow strong{text-align:end;direction:rtl}
.arch-flow small{color:var(--muted);font-size:.76rem}

/* ---------------------------------------------------------- Nafs dashboard page */
.n-hero{background:radial-gradient(900px 500px at 90% 0%,#1F5B87 0%,transparent 65%),linear-gradient(160deg,#0B2E3A,#082129);color:#fff;padding:32px 0 40px}
.n-hero-in{display:grid;grid-template-columns:1.2fr 1fr;gap:36px;align-items:end}
.n-hero h1{color:#fff;font-size:clamp(1.6rem,3vw,2.4rem);margin:.4rem 0 .6rem}
.n-hero p{color:#C9DADD;margin:0}
.pipe{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pipe li{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px 12px;font-size:.84rem;font-weight:600;display:flex;flex-direction:column;gap:2px}
.pipe b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#1E1604;font-size:.72rem;margin-bottom:4px}
.pipe small{color:#9FC2C6;font-weight:400;font-size:.72rem;direction:ltr;text-align:start}
[dir=rtl] .pipe small{text-align:end}
.filters-bar{position:sticky;top:var(--nav-h);z-index:30;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);box-shadow:0 6px 18px rgba(11,46,58,.06)}
.filters-in{display:flex;align-items:center;gap:10px;padding-block:10px;overflow-x:auto;scrollbar-width:none}
.filters-in::-webkit-scrollbar{display:none}
.f-label{display:inline-flex;align-items:center;gap:.4em;font-weight:700;color:var(--ink);font-size:.88rem;white-space:nowrap}
.filters-in label{display:flex;flex-direction:column;font-size:.7rem;color:var(--muted);flex:none}
.filters-in select{font:inherit;font-size:.86rem;padding:.35em 2em .35em .8em;border:1px solid var(--line);border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6B73' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat;background-position:right .6em center;appearance:none;-webkit-appearance:none;color:var(--ink);font-weight:600;min-width:110px}
[dir=rtl] .filters-in select{padding:.35em .8em .35em 2em;background-position:left .6em center}
.f-reset{margin-inline-start:auto;border:1px solid var(--line);background:#fff;border-radius:10px;padding:.45em 1em;color:var(--muted);font-weight:600;font-size:.84rem;flex:none}
.f-reset:hover{border-color:var(--teal);color:var(--teal)}
.kpis{display:grid;grid-template-columns:1.4fr repeat(6,1fr);gap:12px;margin-bottom:18px}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--sh-1);min-width:0}
.kpi-k{font-size:.78rem;color:var(--muted);font-weight:600}
.kpi-v{font-size:1.45rem;font-weight:700;color:var(--ink);white-space:nowrap}
.kpi-v small{font-size:.6em;color:var(--muted);font-weight:600}
.kpi-v.pos{color:var(--green)}.kpi-v.neg{color:var(--red)}
.kpi-n{font-size:.7rem;color:var(--muted)}
.kpi-main{background:linear-gradient(135deg,var(--teal),#0A5F5E);border:0;color:#fff;position:relative;overflow:hidden}
.kpi-main .kpi-k{color:#CFEDEB}.kpi-main .kpi-v{color:#fff;font-size:2rem}
.kpi-main canvas{margin-top:4px;max-height:34px}
.d-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}
.stack-panels{display:flex;flex-direction:column;gap:18px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 18px 14px;box-shadow:var(--sh-1);min-width:0;display:flex;flex-direction:column}
.panel .chart.grow{flex:1;min-height:290px}
.panel header{margin-bottom:10px}
.panel h3{display:flex;align-items:center;gap:.4em;font-size:1rem;margin:0}
.panel header small{color:var(--muted)}
.chart{position:relative;width:100%}
.h-200{height:200px}.h-240{height:250px}.h-280{height:290px}.h-300{height:300px}.h-360{height:360px}.h-520{height:520px}
.insights ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.insights li{font-size:.86rem;line-height:1.6;padding:9px 12px;border-radius:10px;background:var(--bg);border-inline-start:3px solid var(--teal)}
.insights .in-gap,.insights .in-priority{border-inline-start-color:var(--red)}
.insights .in-subject,.insights .in-forecast{border-inline-start-color:var(--gold)}
.insights h3 .ic{color:var(--gold)}
.seg-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:10px;font-size:.78rem;color:var(--muted)}
.seg-legend span{display:inline-flex;align-items:center;gap:6px}
.seg-legend i{width:10px;height:10px;border-radius:50%}
.seg-legend b{color:var(--ink)}
.tbl-foot{font-size:.8rem;color:var(--muted);margin:10px 0 0}
.dq-top{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}
.dq-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.dq-sum>div{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column-reverse}
.dq-sum dd{margin:0;font-size:1.3rem;font-weight:700;color:var(--ink);direction:ltr;text-align:start}
[dir=rtl] .dq-sum dd{text-align:end}
.dq-sum dt{font-size:.78rem;color:var(--muted)}
.dq-dims{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.dq-dim{display:grid;grid-template-columns:110px 1fr 70px;align-items:center;gap:10px;font-size:.86rem}
.dq-name{font-weight:600;color:var(--ink)}
.dq-bar{position:relative;height:12px;background:#E3E8EA;border-radius:999px}
.dq-bar i{position:absolute;inset-block:0;inset-inline-start:0;border-radius:999px;background:var(--teal)}
.dq-dim.warn .dq-bar i{background:var(--gold)}
.dq-bar b{position:absolute;top:-4px;width:3px;height:20px;background:var(--ink);border-radius:2px}
.dq-val{font-weight:700;direction:ltr;text-align:end;color:var(--ink)}
.stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:28px}
.stat-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--sh-1)}
.stat-card.hl{background:var(--ink);border-color:var(--ink)}
.stat-card.hl .sc-k,.stat-card.hl small{color:#9FC2C6}.stat-card.hl strong{color:var(--gold-2)}
.sc-k{font-size:.8rem;color:var(--muted);font-weight:600}
.stat-card strong{font-size:1.45rem;color:var(--ink)}
.stat-card strong bdi{font-weight:700}
.stat-card small{color:var(--muted);font-size:.74rem}
.method-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}
.code-panel{background:#0B1F26;border-color:#0B1F26}
.code-panel h3{color:#fff}.code-panel h3 .ic{color:var(--gold-2)}.code-panel header small{color:#7FA3A9}
.code-panel pre{margin:0;overflow-x:auto;font-size:.8rem;line-height:1.7;color:#D6E6E8;text-align:left}
.code-panel code{background:none;padding:0;color:inherit;font-size:inherit}
.code-panel .c{color:#6F8F95}.code-panel .s{color:#E2C17A}.code-panel .n{color:#7DD3C0}.code-panel .k{color:#F59E8B}
.method-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:10px}
.method-list li{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.method-list .ic{color:var(--teal);margin-top:3px}
.method-list strong{display:block;color:var(--ink)}
.method-list span{color:var(--muted);font-size:.88rem}
.downloads{display:flex;flex-wrap:wrap;gap:10px}
.downloads a{display:inline-flex;align-items:center;gap:.4em;border:1px solid var(--line);background:var(--card);border-radius:10px;padding:.55em 1em;font-weight:600;font-size:.86rem;color:var(--ink)}
.downloads a:hover{border-color:var(--teal);color:var(--teal)}
.py-gallery{grid-template-columns:repeat(5,1fr)}
.py-gallery img{object-fit:contain;background:#fff;padding:6px}
.data-note{margin:28px 0 0;font-size:.8rem;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}

/* ---------------------------------------------------------- responsive */
@media (max-width:1180px){
  .nav-links a{padding:.5em .55em;font-size:.84rem}
  .kpis{grid-template-columns:repeat(4,1fr)}
  .kpi-main{grid-column:span 2}
  .stat-grid{grid-template-columns:repeat(3,1fr)}
  .py-gallery{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1024px){
  :root{--nav-h:64px}
  .burger{display:grid}
  .nav-links{position:fixed;inset:var(--nav-h) 0 auto 0;flex-direction:column;align-items:stretch;gap:2px;background:#0B2E3A;padding:12px 16px 20px;margin:0;border-bottom:1px solid rgba(255,255,255,.08);transform:translateY(-8px);opacity:0;visibility:hidden;transition:.2s;max-height:calc(100vh - var(--nav-h));overflow:auto}
  .nav-links.open{transform:none;opacity:1;visibility:visible}
  .nav-links a{padding:.8em 1em;font-size:1rem}
  .nav-links .nav-cta{margin:8px 0 0;text-align:center}
  .nav-tools{margin-inline-start:auto}
  .hero-in{grid-template-columns:1fr}
  .hero-visual{height:380px;max-width:640px;width:100%;margin-inline:auto}
  .dash-feature{grid-template-columns:1fr}
  .df-media{min-height:0;aspect-ratio:16/10}
  .proj-grid,.web-grid{grid-template-columns:repeat(2,1fr)}
  .exp-layout,.contact-in,.p-hero-in,.n-hero-in,.method-grid,.dq-top{grid-template-columns:1fr}
  .comp-grid,.feat-grid{grid-template-columns:repeat(2,1fr)}
  .ref-grid{grid-template-columns:repeat(2,1fr)}
  .cert-grid{grid-template-columns:repeat(3,1fr)}
  .span-4,.span-5,.span-6,.span-7,.span-8{grid-column:span 12}
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  body{font-size:15px}
  .section{padding:60px 0}
  .container{padding-inline:16px}
  .hero{padding-top:36px}
  .hero-visual{height:300px}
  .hv-phone{width:110px;border-width:5px;border-radius:20px}
  .hv-chip{font-size:.72rem;padding:8px 10px}
  .hv-chip-2{display:none}
  .stats{grid-template-columns:repeat(2,1fr);border-radius:18px 18px 0 0;margin-top:36px}
  .stat{padding:16px}
  .stat:nth-child(3){border-inline-start:0}
  .stat:nth-child(n+3){border-top:1px solid rgba(255,255,255,.08)}
  .dash-grid,.proj-grid,.web-grid,.cert-feature,.more-list,.comp-grid,.feat-grid,.ps-grid,.p-pager,.ref-grid{grid-template-columns:1fr}
  .flow{grid-template-columns:1fr 1fr}
  .flow li:nth-child(2)::after{display:none}
  .cert-grid{grid-template-columns:repeat(2,1fr)}
  .df-body,.tab-panel{padding:20px}
  .p-nums{grid-template-columns:repeat(2,1fr);margin-top:-56px}
  .p-hero{padding-bottom:72px}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .kpi-main{grid-column:span 2}
  .stat-grid{grid-template-columns:1fr 1fr}
  .stat-grid .hl{grid-column:span 2}
  .pipe{grid-template-columns:repeat(2,1fr)}
  .dq-sum{grid-template-columns:repeat(2,1fr)}
  .dq-dim{grid-template-columns:90px 1fr 62px}
  .gallery,.py-gallery{grid-template-columns:repeat(2,1fr)}
  .h-520{height:460px}
  .d-mob{width:26%}
  .lb-nav{position:absolute;bottom:18px}
  .lb-prev{inset-inline-start:30%}.lb-next{inset-inline-end:30%}
  .gov-callout{flex-direction:column}
}
@media (max-width:420px){
  .flow{grid-template-columns:1fr}
  .flow li::after{display:none}
  .brand-txt small{display:none}
  .hero-cta .btn{flex:1;justify-content:center}
}
@media print{.nav,.filters-bar,.footer,.lightbox,.hero-visual{display:none}.reveal{opacity:1;transform:none}.section{padding:24px 0}}
