/* =========================================================
   Base layout (theme agnostic). Themes are at the bottom.
   ========================================================= */
:root {
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --bg: #f7f8fc; --bg-2: #eef0f8; --surface: #ffffff; --surface-2: #eef1fb;
  --text: #121631; --muted: #586080; --line: #e1e5f2;
  --accent: #3d5afe; --accent-2: #ff7a59; --on-accent: #fff;
  --radius: 16px; --radius-sm: 10px; --radius-btn: 12px;
  --shadow: 0 24px 50px -32px rgba(61,90,254,.45);
  --font: 'Onest', system-ui, sans-serif; --font-display: var(--font); --font-mono: 'Sometype Mono', ui-monospace, monospace; --font-ar: 'Alexandria';
  --h-weight: 700; --h-track: -0.03em; --h-case: none;
  --card-bg: var(--surface); --card-border: 1px solid var(--line); --card-blur: none;
  --chip-bg: var(--surface-2); --chip-text: var(--text); --chip-border: 1px solid var(--line);
  --logo-a: #3d5afe; --logo-b: #ff7a59;
  --hero-cols: minmax(0, 1.2fr) minmax(0, .8fr);
  --sec-pad: clamp(72px, 10vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { --font: var(--font-ar), 'Segoe UI', system-ui, sans-serif; --font-display: var(--font-ar), 'Segoe UI', system-ui, sans-serif; line-height: 1.85; }
html[lang="ar"] { --h-track: 0; --h-case: none; }
#app { opacity: 1; transition: opacity .35s ease; }
html:not(.ready) #app { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--font-display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.1em; height: 1.1em; flex: none; }
[dir="rtl"] .ic-flip, [dir="rtl"] .btn .ic:last-child:not(:first-child) { transform: scaleX(-1); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: var(--radius-btn); font: 600 .95rem/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-text { padding-inline: .4em; color: var(--muted); }
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn .ic { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 .78rem/1 var(--font-mono); padding: .5em .7em; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text); border: var(--chip-border); }
.card { background: var(--card-bg); border: var(--card-border); border-radius: var(--radius); backdrop-filter: var(--card-blur); -webkit-backdrop-filter: var(--card-blur); }
.ticks li { position: relative; padding-inline-start: 1.3em; margin-top: .45em; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: .55em; height: .55em; border-radius: 2px; background: var(--accent); transform: rotate(45deg) scale(.8); }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.05rem/1 var(--font-display); text-decoration: none; letter-spacing: -.01em; }
.brand .logo-mark { width: 34px; height: 34px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: .5em .7em; border-radius: 999px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch a { min-width: 32px; text-align: center; padding: .35em .55em; border-radius: 999px; font: 600 .75rem/1.2 var(--font); text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--accent); color: var(--on-accent); }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav ul { padding: 10px var(--gutter) 18px; display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: .75em 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg span { position: absolute; }
.hero-grid { display: grid; grid-template-columns: var(--hero-cols); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-status { display: inline-flex; align-items: center; gap: .6em; font-size: .84rem; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: .45em .9em; border-radius: 999px; }
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); }
.status-busy .dot { background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 25%, transparent); }
.status-closed .dot { background: #ef4444; box-shadow: 0 0 0 4px color-mix(in srgb, #ef4444 25%, transparent); }
.hero-kicker { margin-top: 22px; font: 500 .82rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .hero-kicker { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: .95rem; }
.hero-name { margin-top: 10px; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; }
.hero-title { margin-top: 18px; font: 500 clamp(1.15rem, 2.2vw, 1.55rem)/1.35 var(--font-display); max-width: 34ch; }
.hero-sub { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-panel { position: relative; border-radius: calc(var(--radius) + 6px); background: var(--card-bg); border: var(--card-border); backdrop-filter: var(--card-blur); -webkit-backdrop-filter: var(--card-blur); overflow: hidden; box-shadow: var(--shadow); }
.hp-bar { display: none; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 .78rem/1 var(--font-mono); color: var(--muted); }
.hp-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hp-bar span { margin-inline-start: 8px; }
.hp-body { padding: clamp(20px, 3vw, 30px); }
.hp-logo { position: relative; display: grid; place-items: center; aspect-ratio: 1.6; margin-bottom: 14px; }
.hp-logo .logo-mark { width: 42%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 55%, transparent)); }
.hp-deco { position: absolute; display: none; pointer-events: none; }
.hp-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-cmd { display: none; font: 500 .85rem/1 var(--font-mono); color: var(--accent); margin-bottom: 12px; }
.hp-cmd span { color: var(--muted); }
.hp-facts { display: grid; gap: 10px; }
.hp-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: .9rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hp-facts div:last-child { border-bottom: 0; }
.hp-facts dt { color: var(--muted); font: 500 .72rem/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .hp-facts dt { font-family: var(--font); letter-spacing: 0; font-size: .82rem; }
.hp-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hp-stack li { font: 500 .72rem/1 var(--font-mono); padding: .5em .65em; border-radius: 6px; background: var(--chip-bg); border: var(--chip-border); color: var(--chip-text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* stats */
.stats { padding-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.stat strong { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* sections */
.sec { padding-block: var(--sec-pad); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-kicker { display: flex; align-items: center; gap: 12px; font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .sec-kicker { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: .95rem; }
.sec-index { color: var(--accent); }
.sec-title { margin-top: 14px; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.sec-intro { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-body p { font-size: 1.12rem; line-height: 1.75; }
.about-body p + p { margin-top: 1.1em; }
.about-highlights { display: grid; gap: 14px; }
.about-highlights .card { padding: 20px 22px; }
.about-highlights p { margin-top: 6px; font-size: .95rem; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-media { aspect-ratio: 16 / 7; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media-empty { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 22px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--surface-2); }
.work-num { font: 700 3.4rem/1 var(--font-display); color: color-mix(in srgb, var(--text) 18%, transparent); letter-spacing: -.04em; }
.work-country { font: 600 .8rem/1 var(--font-mono); padding: .5em .7em; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.work-body { padding: 22px 24px 24px; display: grid; gap: 12px; flex: 1; align-content: start; }
.work-meta { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc { font: 700 .68rem/1 var(--font-mono); padding: .4em .5em; border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.work-card h3 { font-size: 1.45rem; }
.work-summary { color: var(--muted); }
.work-metric { font-weight: 600; color: var(--accent); font-size: .95rem; }
.work-more summary { cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.work-more summary::-webkit-details-marker { display: none; }
.work-more summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); }
.work-more[open] summary::after { content: '−'; }
.work-dl { display: grid; gap: 6px; margin: 12px 0 6px; font-size: .9rem; }
.work-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.work-dl dt { color: var(--muted); }
.work-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.work-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.work-links a .ic { width: .9em; color: var(--accent); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.proj { padding: 22px; display: grid; gap: 10px; align-content: start; }
.proj-type { font: 500 .74rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
html[lang="ar"] .proj-type { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: .85rem; }
.proj p { font-size: .94rem; }
.proj-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; text-decoration: none; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.svc { padding: 24px; display: grid; gap: 12px; align-content: start; }
.svc-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.svc-icon .ic { width: 24px; height: 24px; }
.svc p { font-size: .95rem; }

.timeline { display: grid; gap: 18px; }
.tl-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.tl-when { padding-top: 22px; display: grid; gap: 4px; align-content: start; }
.tl-when span { font: 600 .9rem/1.4 var(--font-mono); }
.tl-when small { color: var(--muted); font-size: .82rem; }
.tl-what { padding: 22px 24px; }
.tl-org { margin-top: 4px; font-weight: 600; color: var(--text) !important; }
.tl-org span { font-weight: 400; color: var(--muted); }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill-group { padding: 22px; }
.skill-group h3 { margin-bottom: 14px; font-size: 1rem; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ''; position: absolute; top: -2px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--accent); }
.step-n { font: 600 .8rem/1 var(--font-mono); color: var(--accent); }
.step h3 { margin-top: 10px; font-size: 1.12rem; }
.step p { margin-top: 6px; color: var(--muted); font-size: .92rem; }

.eng-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: start; }
.eng-models { display: grid; gap: 14px; }
.eng-model { padding: 22px 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.card h3 { overflow-wrap: break-word; hyphens: auto; }
.eng-n { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font: 700 1rem/1 var(--font-mono); background: var(--accent); color: var(--on-accent); }
.eng-facts { padding: 24px; }
.eng-facts dl { display: grid; gap: 14px; }
.eng-facts dt { font: 500 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang="ar"] .eng-facts dt { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: .85rem; }
.eng-facts dd { font-weight: 600; margin-top: 2px; }
.eng-legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }

.edu-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px; align-items: start; }
.edu { padding: 24px; display: grid; gap: 8px; }
.edu-period { font: 600 .85rem/1 var(--font-mono); color: var(--accent) !important; }
.edu-degree { font-weight: 600; color: var(--text) !important; }
.langs { padding: 10px 24px; }
.langs li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.langs li:last-child { border-bottom: 0; }
.langs span { color: var(--muted); }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.quote { margin: 0; padding: 26px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { margin-top: 16px; display: grid; font-size: .9rem; }
.quote figcaption span { color: var(--muted); }

.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border: var(--card-border); border-radius: var(--radius-sm); background: var(--card-bg); padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 18px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.contact-form { padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8em .9em; }
.contact-form select option { color: #111; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #22c55e; }
.form-status.err { color: #f87171; }
.contact-text { font-size: 1.1rem; }
.contact-or { margin-top: 24px; font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-links { margin-top: 12px; display: grid; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: .55em 0; border-bottom: 1px solid var(--line); width: 100%; }
.contact-links .ic { color: var(--accent); }

.site-foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .logo-mark { width: 38px; height: 38px; }
.foot-brand div { display: grid; font-size: .85rem; }
.foot-brand span { color: var(--muted); }
.foot-legal { margin-inline-start: auto; color: var(--muted); font-size: .82rem; text-align: end; max-width: 520px; }
.foot-top { font-size: .85rem; text-decoration: none; color: var(--muted); }

/* theme dock */
.theme-dock { position: relative; }
.theme-panel { position: absolute; top: 52px; inset-inline-end: 0; z-index: 60; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.theme-panel p { font: 600 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 6px 10px; }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.theme-list button { display: grid; gap: 6px; text-align: start; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 .78rem/1.2 var(--font); cursor: pointer; }
.theme-list button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sw { display: flex; height: 16px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(127,127,127,.25); }
.sw i { flex: 1; }

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

/* responsive */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .head-tools { margin-inline-start: auto; }
  .menu-btn { display: inline-grid; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .work-grid, .skills-grid, .eng-grid, .edu-grid, .contact-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-when { padding-top: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
  .foot-legal { margin-inline-start: 0; text-align: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-row { gap: 8px; }
  .head-tools { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand span { font-size: .95rem; }
  .theme-panel { position: fixed; top: 72px; inset-inline: 12px; width: auto; }
  .head-cta { display: none; }
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hp-facts div { grid-template-columns: 84px 1fr; }
  .work-dl div { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 20px 16px; }
}

/* =========================================================
   CV view (always black ink on white paper)
   ========================================================= */
html.cv, html.cv body { background: #e9e9ec; }
body.cv-mode { background: #e9e9ec; color: #000; font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif; }
html[lang="ar"] body.cv-mode { font-family: 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif; }
.cv-mode .theme-dock { display: none; }
.cv-tools { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px; background: #fff; border-bottom: 1px solid #ddd; --accent: #111; --on-accent: #fff; --line: #ccc; --surface: #fff; --text: #111; --muted: #555; }
.cv-page { width: min(210mm, 100%); min-height: 297mm; margin: 24px auto; background: #fff; color: #000; padding: 16mm 16mm 14mm; box-shadow: 0 10px 40px rgba(0,0,0,.12); font-size: 10pt; line-height: 1.45; }
.cv-page a { color: #000; }
.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1.5pt solid #000; padding-bottom: 8px; }
.cv-head h1 { font: 700 22pt/1.1 inherit; font-family: inherit; letter-spacing: -.01em; }
.cv-role { font-weight: 600; font-size: 11pt; margin-top: 4px; }
.cv-loc { font-size: 9pt; margin-top: 2px; }
.cv-logo { width: 34px; height: 34px; --logo-a: #000; --logo-b: #000; }
.cv-contacts { font-size: 9pt; margin: 6px 0 4px; }
.cv-page section { margin-top: 10px; }
.cv-page h2 { font: 700 10.5pt/1.2 inherit; font-family: inherit; text-transform: uppercase; letter-spacing: .06em; border-bottom: .75pt solid #000; padding-bottom: 2px; margin-bottom: 6px; }
html[lang="ar"] .cv-page h2 { letter-spacing: 0; }
.cv-item { margin-top: 6px; break-inside: avoid; page-break-inside: avoid; }
.cv-page h2 { break-after: avoid; page-break-after: avoid; }
.cv-page section > p, .cv-page li { orphans: 3; widows: 3; }
.cv-skill, .cv-proj { break-inside: avoid; page-break-inside: avoid; }
.cv-head, .cv-contacts { break-inside: avoid; }
.cv-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-line > :first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cv-line span { flex: 0 1 auto; max-width: 48%; text-align: end; font-size: 9pt; overflow-wrap: anywhere; }
.cv-page p, .cv-page li { overflow-wrap: anywhere; }
.cv-sub { font-size: 9.5pt; }
.cv-page ul { list-style: disc; padding-inline-start: 16px; margin-top: 2px; }
.cv-page li { margin-top: 1px; }
.cv-skill, .cv-proj { margin-top: 3px; }
@media print {
  @page { size: A4; margin: 15mm 16mm 14mm; }
  html.cv, html.cv body, body.cv-mode { background: #fff !important; margin: 0; }
  .cv-tools, .skip { display: none !important; }
  .cv-page { margin: 0; box-shadow: none; width: auto; max-width: none; min-height: 0; padding: 0; }
}
@media screen and (max-width: 760px) { .cv-page { padding: 18px; font-size: 9.5pt; margin: 0; } .cv-line { flex-direction: column; gap: 0; } .cv-line span { max-width: none; text-align: start; } }

/* =========================================================
   THEMES: ten directions made for Meriem Lamri
   (UX and product design, teaching, moving into AI).
   ========================================================= */

/* Arabic: no letter spacing or capitals on display text, whatever the theme */
html[lang="ar"] .hero-name, html[lang="ar"] .sec-title, html[lang="ar"] .stat strong, html[lang="ar"] .hero-title { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] .sec-index::before, html[lang="ar"] .sec-index::after { content: none !important; }

/* 1. USER FLOW (default): her ml monogram, screens linked by a flow, indigo and coral */
[data-theme="userflow"] {
  --bg: #f7f8fc; --bg-2: #eef0f8; --surface: #ffffff; --surface-2: #eef1fb; --text: #121631; --muted: #586080; --line: #e1e5f2;
  --accent: #3d5afe; --accent-2: #ff7a59; --on-accent: #fff; --radius: 16px; --radius-sm: 10px; --radius-btn: 12px;
  --shadow: 0 24px 50px -32px rgba(61,90,254,.45);
  --font: 'Onest', system-ui, sans-serif; --font-display: 'Onest', system-ui, sans-serif; --font-mono: 'Sometype Mono', ui-monospace, monospace; --font-ar: 'Alexandria';
  --h-weight: 700; --h-track: -0.03em;
  --card-bg: #fff; --card-border: 1px solid #e3e7f4; --chip-bg: #f1f3fd; --chip-border: 1px solid #e2e6f7; --chip-text: #2b3a99;
  --logo-a: #3d5afe; --logo-b: #ff7a59; --hero-cols: minmax(0, 1.1fr) minmax(0, .9fr);
}
[data-theme="userflow"] body { background-image: radial-gradient(rgba(61,90,254,.13) 1px, transparent 1.5px); background-size: 22px 22px; }
[data-theme="userflow"] .hero-bg span:nth-child(1) { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E %3Cpath d='M-40 540 C 160 540 230 400 430 400 S 720 470 880 300 S 1090 120 1260 150' fill='none' stroke='rgb(61,90,254)' stroke-opacity='.26' stroke-width='2' stroke-dasharray='2 9' stroke-linecap='round'/%3E %3Ccircle cx='430' cy='400' r='7' fill='white' stroke='rgb(61,90,254)' stroke-opacity='.5' stroke-width='2'/%3E %3Ccircle cx='880' cy='300' r='7' fill='white' stroke='rgb(61,90,254)' stroke-opacity='.5' stroke-width='2'/%3E %3Ccircle cx='1090' cy='168' r='6' fill='rgb(255,122,89)' fill-opacity='.8'/%3E%3C/svg%3E") center / cover no-repeat; }
[data-theme="userflow"] .hero-bg span:nth-child(2) { width: 420px; height: 420px; top: -180px; inset-inline-end: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,89,.18), transparent 65%); }
[data-theme="userflow"] .hero-kicker { color: var(--accent-2); }
[data-theme="userflow"] .hero-name { letter-spacing: -.04em; }
[data-theme="userflow"] .hero-panel { box-shadow: 0 30px 60px -40px rgba(61,90,254,.55); }
[data-theme="userflow"] .hp-bar { display: flex; background: #fafbff; }
[data-theme="userflow"] .hp-bar i { width: 8px; height: 8px; border-radius: 2px; background: #d7dcf2; }
[data-theme="userflow"] .hp-bar i:nth-child(1) { background: var(--accent); }
[data-theme="userflow"] .hp-label::before { content: 'Flow · '; color: var(--accent); }
[data-theme="userflow"] .hp-logo { border-radius: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E %3Crect x='18' y='56' width='62' height='88' rx='10' fill='white' stroke='rgb(217,222,243)' stroke-width='1.5'/%3E %3Crect x='27' y='66' width='26' height='6' rx='3' fill='rgb(61,90,254)'/%3E %3Crect x='27' y='81' width='44' height='4' rx='2' fill='rgb(226,230,244)'/%3E%3Crect x='27' y='90' width='34' height='4' rx='2' fill='rgb(226,230,244)'/%3E %3Crect x='27' y='102' width='44' height='12' rx='4' fill='none' stroke='rgb(217,222,243)'/%3E %3Crect x='27' y='124' width='44' height='11' rx='5.5' fill='rgb(61,90,254)'/%3E %3Ccircle cx='160' cy='100' r='46' fill='white' stroke='rgb(217,222,243)' stroke-width='1.5'/%3E %3Crect x='240' y='56' width='62' height='88' rx='10' fill='rgb(255,243,238)' stroke='rgb(255,199,183)' stroke-width='1.5'/%3E %3Ccircle cx='271' cy='88' r='13' fill='rgb(255,122,89)'/%3E%3Cpath d='M265 88 l4.5 4.5 l8 -9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E %3Crect x='252' y='111' width='38' height='4' rx='2' fill='rgb(255,209,196)'/%3E%3Crect x='258' y='120' width='26' height='4' rx='2' fill='rgb(255,209,196)'/%3E %3Cg fill='none' stroke='rgb(61,90,254)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M86 100 H108' stroke-dasharray='3 5'/%3E%3Cpath d='M103 95 l6 5 -6 5'/%3E %3Cpath d='M212 100 H234' stroke-dasharray='3 5'/%3E%3Cpath d='M229 95 l6 5 -6 5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat, linear-gradient(#f6f8ff, #f6f8ff); }
[data-theme="userflow"] .hp-logo .logo-mark { width: 21%; filter: none; }
[data-theme="userflow"] .sec-index { display: inline-flex; align-items: center; gap: .4em; background: var(--accent); color: #fff; padding: .45em .7em; border-radius: 999px; }
[data-theme="userflow"] .sec-index::after { content: '→'; }
[dir="rtl"][data-theme="userflow"] .sec-index::after { content: '←'; }
[data-theme="userflow"] .sec:nth-of-type(even) { background: #fff; border-block: 1px solid var(--line); }
[data-theme="userflow"] .stats-grid { gap: 22px; background: none; border: 0; overflow: visible; }
[data-theme="userflow"] .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; box-shadow: 0 1px 2px rgba(18,22,49,.04); }
[data-theme="userflow"] .stat strong { color: var(--accent); }
[data-theme="userflow"] .stat:nth-child(even) strong { color: var(--accent-2); }
@media (min-width: 861px) {
  [data-theme="userflow"] .stat:not(:last-child)::after { content: ''; position: absolute; top: 50%; inset-inline-end: -22px; width: 22px; border-top: 2px dashed #b9c3f6; }
}
[data-theme="userflow"] .work-card, [data-theme="userflow"] .proj, [data-theme="userflow"] .tl-what { position: relative; }
[data-theme="userflow"] .work-card::before, [data-theme="userflow"] .proj::before, [data-theme="userflow"] .tl-what::before { content: ''; position: absolute; top: 18px; inset-inline-start: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); z-index: 2; }
[data-theme="userflow"] .work-media-empty { background: radial-gradient(rgba(61,90,254,.18) 1px, transparent 1.5px) 0 0 / 16px 16px, linear-gradient(120deg, #eef1fe, #fff3ee); }
[data-theme="userflow"] .work-num { color: rgba(61,90,254,.25); }
[data-theme="userflow"] .ticks li::before { width: .6em; height: .6em; border-radius: 50%; transform: none; background: #fff; border: 2px solid var(--accent); top: .62em; }
[data-theme="userflow"] .cc, [data-theme="userflow"] .eng-n { background: var(--accent-2); }
[data-theme="userflow"] .btn-primary:hover { box-shadow: 0 12px 30px -12px rgba(61,90,254,.8); }

/* 2. LOW-FI: wireframe stage, grey boxes, hatched placeholders, highlighter */
[data-theme="lowfi"] {
  --bg: #efefec; --bg-2: #e6e6e2; --surface: #f8f8f6; --surface-2: #e4e4e0; --text: #202020; --muted: #57574f; --line: #c9c9c3;
  --accent: #202020; --accent-2: #d93636; --on-accent: #fff; --radius: 4px; --radius-sm: 3px; --radius-btn: 4px; --shadow: none;
  --font: 'Work Sans', system-ui, sans-serif; --font-display: 'Work Sans', system-ui, sans-serif; --font-mono: 'Anonymous Pro', ui-monospace, monospace; --font-ar: 'Harmattan';
  --h-weight: 700; --h-track: -0.025em;
  --card-bg: #f8f8f6; --card-border: 1.5px solid #b9b9b2; --chip-bg: transparent; --chip-border: 1px dashed #8f8f88; --chip-text: #2a2a2a;
  --logo-a: #202020; --logo-b: #57574f; --hero-cols: minmax(0, 1fr) minmax(0, 1fr);
}
[data-theme="lowfi"] .hero-bg span:nth-child(1) { inset: 0; left: 50%; width: min(100%, var(--maxw)); transform: translateX(-50%); background: repeating-linear-gradient(90deg, rgba(217,54,54,.035) 0 calc((100% - 220px) / 12), transparent calc((100% - 220px) / 12) calc((100% - 220px) / 12 + 20px)); }
[data-theme="lowfi"] .hero-name, [data-theme="lowfi"] .sec-title { text-decoration: underline; text-decoration-color: #f5c518; text-decoration-thickness: .32em; text-underline-offset: -.14em; text-decoration-skip-ink: none; }
[data-theme="lowfi"] .hero-kicker { color: var(--accent-2); }
[data-theme="lowfi"] .hero-status { border-style: dashed; background: transparent; }
[data-theme="lowfi"] .hero-panel { border: 1.5px solid #9a9a93; box-shadow: 6px 6px 0 #d4d4ce; }
[data-theme="lowfi"] .hp-bar { display: flex; border-bottom: 1.5px solid #b9b9b2; }
[data-theme="lowfi"] .hp-bar i { border-radius: 0; background: none; border: 1.5px solid #8f8f88; width: 9px; height: 9px; }
[data-theme="lowfi"] .hp-label::before { content: '[ frame ] '; }
[data-theme="lowfi"] .hp-logo { border: 1.5px dashed #8f8f88; background: linear-gradient(to top right, transparent calc(50% - .8px), #a8a8a1 50%, transparent calc(50% + .8px)), linear-gradient(to top left, transparent calc(50% - .8px), #a8a8a1 50%, transparent calc(50% + .8px)), #e4e4e0; }
[data-theme="lowfi"] .hp-logo .logo-mark { width: 26%; background: #f8f8f6; padding: 5%; border: 1.5px solid #8f8f88; filter: none; }
[data-theme="lowfi"] .hp-deco.d1 { display: block; top: 10px; inset-inline-start: 10px; font: 700 .7rem/1 var(--font-mono); color: var(--accent-2); }
[data-theme="lowfi"] .hp-deco.d1::before { content: 'A1  hero visual'; white-space: pre; }
[data-theme="lowfi"] .sec-index { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--accent-2); color: #fff; font-weight: 700; letter-spacing: 0; }
[data-theme="lowfi"] .sec-kicker { color: var(--accent-2); }
[data-theme="lowfi"] .sec + .sec { border-top: 1.5px dashed #bdbdb6; }
[data-theme="lowfi"] .stats-grid { gap: 14px; background: none; border: 0; }
[data-theme="lowfi"] .stat { background: var(--surface); border: 1.5px dashed #8f8f88; border-radius: 4px; }
[data-theme="lowfi"] .work-media img { filter: grayscale(.9) contrast(1.05); transition: filter .4s ease; }
[data-theme="lowfi"] .work-card:hover .work-media img { filter: none; }
[data-theme="lowfi"] .work-media-empty { background: linear-gradient(to top right, transparent calc(50% - .8px), #a8a8a1 50%, transparent calc(50% + .8px)), linear-gradient(to top left, transparent calc(50% - .8px), #a8a8a1 50%, transparent calc(50% + .8px)), repeating-linear-gradient(45deg, #e4e4e0 0 8px, #dcdcd7 8px 9px); }
[data-theme="lowfi"] .work-num { color: #9a9a93; }
[data-theme="lowfi"] .btn-primary { background: #202020; }
[data-theme="lowfi"] .btn-ghost { border: 1.5px dashed #6f6f68; background: transparent; }
[data-theme="lowfi"] .ticks li::before { border-radius: 0; transform: none; background: none; border: 1.5px solid #57574f; width: .6em; height: .6em; top: .65em; }
[data-theme="lowfi"] .cc, [data-theme="lowfi"] .eng-n { background: #f5c518; color: #202020; }
[data-theme="lowfi"] .svc-icon { background: transparent; border: 1.5px dashed #8f8f88; color: var(--text); }
[data-theme="lowfi"] .cert-media img, [data-theme="lowfi"] .about-photo img { filter: grayscale(.6); }

/* 3. WORKSHOP: design thinking wall, sticky notes, tape, marker headings */
[data-theme="workshop"] {
  --bg: #fbf7ef; --bg-2: #f4eee2; --surface: #fffdf8; --surface-2: #f3ecdf; --text: #1f1b16; --muted: #5a5347; --line: #e6dccb;
  --accent: #1c7ed6; --accent-2: #d6336c; --on-accent: #fff; --radius: 6px; --radius-sm: 6px; --radius-btn: 10px;
  --shadow: 0 12px 22px -14px rgba(31,27,22,.35);
  --font: 'Nunito', system-ui, sans-serif; --font-display: 'Darker Grotesque', system-ui, sans-serif; --font-mono: 'Space Mono', ui-monospace, monospace; --font-ar: 'Lemonada';
  --h-weight: 900; --h-track: -0.01em;
  --card-bg: #fffdf8; --card-border: 1px solid #ebe1cf; --chip-bg: #fff3bf; --chip-border: 1px solid #f5dd7a; --chip-text: #3b3220;
  --logo-a: #1c7ed6; --logo-b: #d6336c; --hero-cols: minmax(0, 1.15fr) minmax(0, .85fr);
}
[data-theme="workshop"] .hero-name { font-size: clamp(3rem, 8.5vw, 6.2rem); line-height: .9; }
[data-theme="workshop"] .hero-title { font-family: var(--font); font-weight: 700; }
[data-theme="workshop"] .sec-title { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: .95; text-decoration: underline wavy var(--accent-2); text-decoration-thickness: 2px; text-underline-offset: .18em; }
[data-theme="workshop"] .hero-bg span:nth-child(1) { width: 120px; height: 120px; top: 8%; inset-inline-end: 3%; background: #ffe066; transform: rotate(8deg); box-shadow: var(--shadow); opacity: .9; }
[data-theme="workshop"] .hero-bg span:nth-child(2) { width: 96px; height: 96px; bottom: 9%; inset-inline-end: 12%; background: #8ce0c4; transform: rotate(-6deg); box-shadow: var(--shadow); opacity: .85; }
[data-theme="workshop"] .hero-bg span:nth-child(3) { width: 80px; height: 80px; bottom: 16%; inset-inline-start: -20px; background: #ffb3c7; transform: rotate(-10deg); box-shadow: var(--shadow); opacity: .8; }
[data-theme="workshop"] .hero-panel { background: #fffdf8; border: 1px solid #ebe1cf; border-radius: 4px; }
[data-theme="workshop"] .hp-logo { background: #ffe066; border-radius: 2px; box-shadow: inset 0 -16px 22px -18px rgba(0,0,0,.25); }
[data-theme="workshop"] .hp-logo::before { content: ''; position: absolute; top: -9px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.06); }
[data-theme="workshop"] .hp-logo .logo-mark { width: 32%; filter: none; --logo-a: #1f1b16; --logo-b: #1c7ed6; }
[data-theme="workshop"] .sec-index { display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--accent-2); color: #fff; font-weight: 700; letter-spacing: 0; }
[data-theme="workshop"] .stats-grid { gap: 18px; background: none; border: 0; overflow: visible; }
[data-theme="workshop"] .stat { position: relative; border-radius: 2px; box-shadow: var(--shadow); background: #ffe066; }
[data-theme="workshop"] .stat:nth-child(2) { background: #ffb3c7; } [data-theme="workshop"] .stat:nth-child(3) { background: #8ce0c4; } [data-theme="workshop"] .stat:nth-child(4) { background: #cdbdff; }
[data-theme="workshop"] .stat span { color: #3b3220; }
[data-theme="workshop"] .stat strong { font-size: clamp(2.6rem, 5vw, 3.6rem); }
[data-theme="workshop"] .stat::before { content: ''; position: absolute; top: -8px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(2deg); background: rgba(255,255,255,.6); }
[data-theme="workshop"] .svc, [data-theme="workshop"] .comm, [data-theme="workshop"] .proj { border: 0; border-radius: 2px; box-shadow: var(--shadow); background: #fff7cc; }
[data-theme="workshop"] .svc:nth-child(4n+2), [data-theme="workshop"] .comm:nth-child(4n+2), [data-theme="workshop"] .proj:nth-child(4n+2) { background: #ffe3ec; }
[data-theme="workshop"] .svc:nth-child(4n+3), [data-theme="workshop"] .comm:nth-child(4n+3), [data-theme="workshop"] .proj:nth-child(4n+3) { background: #dcf6ec; }
[data-theme="workshop"] .svc:nth-child(4n+4), [data-theme="workshop"] .comm:nth-child(4n+4), [data-theme="workshop"] .proj:nth-child(4n+4) { background: #ece6ff; }
[data-theme="workshop"] .svc p, [data-theme="workshop"] .comm p, [data-theme="workshop"] .proj p { color: #3b3220; }
@media (min-width: 861px) {
  [data-theme="workshop"] .stat:nth-child(odd), [data-theme="workshop"] .svc:nth-child(odd), [data-theme="workshop"] .comm:nth-child(odd) { transform: rotate(-.8deg); }
  [data-theme="workshop"] .stat:nth-child(even), [data-theme="workshop"] .svc:nth-child(even), [data-theme="workshop"] .comm:nth-child(even) { transform: rotate(.7deg); }
}
[data-theme="workshop"] .work-card { box-shadow: var(--shadow); border-radius: 4px; }
[data-theme="workshop"] .work-media { border-bottom: 0; margin: 10px 10px 0; border-radius: 2px; }
[data-theme="workshop"] .work-media-empty { background: #fff3bf; }
[data-theme="workshop"] .work-num { color: rgba(31,27,22,.25); }
[data-theme="workshop"] .ticks li::before { width: .55em; height: .55em; border-radius: 50%; transform: none; background: var(--accent-2); }
[data-theme="workshop"] .btn-primary { box-shadow: 3px 3px 0 #1f1b16; }
[data-theme="workshop"] .cc { background: var(--accent-2); }
[data-theme="workshop"] .eng-n { background: #ffe066; color: #1f1b16; }

/* 4. NEURAL: nodes, weights and layers */
[data-theme="neural"] {
  --bg: #090a12; --bg-2: #0e1020; --surface: #10131f; --surface-2: #161a2a; --text: #e7e9f7; --muted: #9aa0bf; --line: #22273d;
  --accent: #ffc24b; --accent-2: #6cb4ff; --on-accent: #1a1303; --radius: 14px; --radius-sm: 10px; --radius-btn: 999px;
  --shadow: 0 30px 70px -40px rgba(108,180,255,.45);
  --font: 'Familjen Grotesk', system-ui, sans-serif; --font-display: 'Familjen Grotesk', system-ui, sans-serif; --font-mono: 'Victor Mono', ui-monospace, monospace; --font-ar: 'Kufam';
  --h-weight: 600; --h-track: -0.02em;
  --card-bg: rgba(16,19,31,.88); --card-border: 1px solid #22273d; --chip-bg: rgba(108,180,255,.08); --chip-border: 1px solid rgba(108,180,255,.22); --chip-text: #cfe3ff;
  --logo-a: #ffc24b; --logo-b: #6cb4ff; --hero-cols: minmax(0, 1fr) minmax(0, 1fr);
}
[data-theme="neural"] .hero-bg span:nth-child(1) { width: 62%; height: 100%; top: 0; inset-inline-end: -8%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'%3E%3Cline x1='60' y1='40' x2='180' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='60' y1='40' x2='180' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='60' y1='40' x2='180' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='60' y1='40' x2='180' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='60' y1='40' x2='180' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.18' stroke-width='1'/%3E%3Cline x1='60' y1='40' x2='180' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.22' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.18' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='60' y1='120' x2='180' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.20' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='60' y1='200' x2='180' y2='293' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='60' y1='280' x2='180' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Cline x1='60' y1='280' x2='180' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='60' y1='280' x2='180' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.26' stroke-width='1'/%3E%3Cline x1='60' y1='280' x2='180' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='60' y1='280' x2='180' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.22' stroke-width='1'/%3E%3Cline x1='60' y1='280' x2='180' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.30' stroke-width='1'/%3E%3Cline x1='180' y1='27' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.20' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='180' y1='80' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.15' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='180' y1='133' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.15' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='180' y1='187' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.15' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.15' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='133' stroke='rgb(108, 180, 255)' stroke-opacity='0.26' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.15' stroke-width='1'/%3E%3Cline x1='180' y1='240' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='180' y1='293' x2='300' y2='27' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='180' y1='293' x2='300' y2='80' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='180' y1='293' x2='300' y2='133' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='180' y1='293' x2='300' y2='187' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='180' y1='293' x2='300' y2='240' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='180' y1='293' x2='300' y2='293' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='300' y1='27' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='300' y1='27' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='300' y1='27' x2='420' y2='267' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Cline x1='300' y1='80' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='300' y1='80' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='300' y1='80' x2='420' y2='267' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='300' y1='133' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='300' y1='133' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='300' y1='133' x2='420' y2='267' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='300' y1='187' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='300' y1='187' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='300' y1='187' x2='420' y2='267' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Cline x1='300' y1='240' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='300' y1='240' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.29' stroke-width='1'/%3E%3Cline x1='300' y1='240' x2='420' y2='267' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='300' y1='293' x2='420' y2='53' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='300' y1='293' x2='420' y2='160' stroke='rgb(108, 180, 255)' stroke-opacity='0.20' stroke-width='1'/%3E%3Cline x1='300' y1='293' x2='420' y2='267' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Ccircle cx='60' cy='40' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='60' cy='120' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='60' cy='200' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='60' cy='280' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='27' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='80' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='133' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='187' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='240' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='180' cy='293' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='27' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='80' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='133' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='187' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='240' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='300' cy='293' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='420' cy='53' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='420' cy='160' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='420' cy='267' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .35; }
[data-theme="neural"] .hero-bg span:nth-child(2) { width: 600px; height: 600px; top: -300px; inset-inline-start: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(108,180,255,.16), transparent 65%); }
[data-theme="neural"] .hero-kicker { color: var(--accent-2); }
[data-theme="neural"] .hero-name { font-weight: 600; letter-spacing: -.035em; }
[data-theme="neural"] .hero-panel { background: rgba(14,16,32,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="neural"] .hp-bar { display: flex; }
[data-theme="neural"] .hp-bar i:nth-child(1) { background: var(--accent); }
[data-theme="neural"] .hp-label::before { content: 'model · '; color: var(--accent-2); }
[data-theme="neural"] .hp-logo { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cline x1='40' y1='33' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.20' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.22' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='180' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='40' y1='167' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.18' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.17' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.26' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='100' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='120' y1='180' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='200' y1='20' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='200' y1='20' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.17' stroke-width='1'/%3E%3Cline x1='200' y1='60' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='200' y1='60' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='200' y1='100' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='200' y1='100' x2='280' y2='150' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='200' y1='140' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='200' y1='140' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='200' y1='180' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='200' y1='180' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='40' cy='33' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='40' cy='100' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='40' cy='167' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='20' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='60' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='100' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='140' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='180' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='20' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='60' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='100' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='140' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='180' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='280' cy='50' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='280' cy='150' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="neural"] .hp-logo .logo-mark { width: 16%; background: #090a12; border-radius: 50%; padding: 2.4%; box-shadow: 0 0 0 1px #2d3554, 0 0 30px rgba(255,194,75,.35); filter: none; }
[data-theme="neural"] .sec-index { font-family: var(--font-mono); color: var(--accent); }
[data-theme="neural"] .sec-index::before { content: 'layer_'; color: var(--accent-2); }
[data-theme="neural"] .sec-kicker { text-transform: none; letter-spacing: 0; }
[data-theme="neural"] .sec + .sec { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(108,180,255,.3), transparent) 1; }
[data-theme="neural"] .stats-grid { gap: 14px; background: none; border: 0; }
[data-theme="neural"] .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
[data-theme="neural"] .stat strong { color: var(--accent); font-weight: 600; }
[data-theme="neural"] .card { transition: border-color .3s ease, box-shadow .3s ease; }
[data-theme="neural"] .card:hover { border-color: rgba(108,180,255,.5); box-shadow: 0 0 0 1px rgba(108,180,255,.15), 0 20px 50px -30px rgba(108,180,255,.6); }
[data-theme="neural"] .work-media-empty { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cline x1='40' y1='33' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.08' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='40' y1='33' x2='120' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.20' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.22' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='40' y1='100' x2='120' y2='180' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='40' y1='167' x2='120' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.18' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='40' y1='167' x2='120' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='120' y1='20' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.25' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.23' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.24' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.17' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='120' y1='100' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.13' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.14' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='100' stroke='rgb(108, 180, 255)' stroke-opacity='0.26' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Cline x1='120' y1='140' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='20' stroke='rgb(108, 180, 255)' stroke-opacity='0.27' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='60' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='100' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='120' y1='180' x2='200' y2='140' stroke='rgb(108, 180, 255)' stroke-opacity='0.16' stroke-width='1'/%3E%3Cline x1='120' y1='180' x2='200' y2='180' stroke='rgb(108, 180, 255)' stroke-opacity='0.19' stroke-width='1'/%3E%3Cline x1='200' y1='20' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.09' stroke-width='1'/%3E%3Cline x1='200' y1='20' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.17' stroke-width='1'/%3E%3Cline x1='200' y1='60' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='200' y1='60' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.10' stroke-width='1'/%3E%3Cline x1='200' y1='100' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='200' y1='100' x2='280' y2='150' stroke='rgb(255, 194, 75)' stroke-opacity='0.85' stroke-width='1.8'/%3E%3Cline x1='200' y1='140' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.11' stroke-width='1'/%3E%3Cline x1='200' y1='140' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.21' stroke-width='1'/%3E%3Cline x1='200' y1='180' x2='280' y2='50' stroke='rgb(108, 180, 255)' stroke-opacity='0.28' stroke-width='1'/%3E%3Cline x1='200' y1='180' x2='280' y2='150' stroke='rgb(108, 180, 255)' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='40' cy='33' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='40' cy='100' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='40' cy='167' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='20' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='60' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='100' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='140' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='120' cy='180' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='20' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='60' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='100' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='140' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='180' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='280' cy='50' r='7' fill='rgb(16,19,31)' stroke='rgb(108, 180, 255)' stroke-opacity='0.7' stroke-width='1.6'/%3E%3Ccircle cx='280' cy='150' r='8' fill='rgb(255,194,75)' stroke='rgb(255, 194, 75)' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E") center / 70% no-repeat, #0e1020; }
[data-theme="neural"] .work-num { color: rgba(255,194,75,.3); }
[data-theme="neural"] .ticks li::before { width: .55em; height: .55em; border-radius: 50%; transform: none; background: #090a12; border: 1.6px solid var(--accent-2); top: .66em; }
[data-theme="neural"] .cc, [data-theme="neural"] .eng-n { background: var(--accent-2); color: #061223; }
[data-theme="neural"] .svc-icon { background: rgba(255,194,75,.1); }

/* 5. DESIGN TOKENS: design system documentation, swatches, spacing scale */
[data-theme="tokens"] {
  --bg: #ffffff; --bg-2: #f6f7f9; --surface: #ffffff; --surface-2: #f3f4f6; --text: #0b0d12; --muted: #555b6b; --line: #e5e7eb;
  --accent: #00875a; --accent-2: #6e56cf; --on-accent: #fff; --radius: 8px; --radius-sm: 6px; --radius-btn: 8px; --shadow: none;
  --font: 'Golos Text', system-ui, sans-serif; --font-display: 'Golos Text', system-ui, sans-serif; --font-mono: 'Reddit Mono', ui-monospace, monospace; --font-ar: 'Zain';
  --h-weight: 700; --h-track: -0.035em;
  --card-bg: #fff; --card-border: 1px solid #e5e7eb; --chip-bg: #f3f4f6; --chip-border: 1px solid #e5e7eb; --chip-text: #1f2937;
  --logo-a: #0b0d12; --logo-b: #00a86b; --hero-cols: minmax(0, 1.2fr) minmax(0, .8fr);
}
[data-theme="tokens"] .hero-bg span:nth-child(1) { inset: auto 0 0 0; height: 1px; background: var(--line); }
[data-theme="tokens"] .hero-kicker { color: var(--accent-2); }
[data-theme="tokens"] .hero-panel { box-shadow: none; }
[data-theme="tokens"] .hp-logo { aspect-ratio: auto; height: 150px; background: linear-gradient(90deg, #0b0d12 0 20%, #00a86b 20% 40%, #6e56cf 40% 60%, #f59f00 60% 80%, #f3f4f6 80%) top / 100% 56px no-repeat; border-radius: 6px; padding-top: 56px; place-items: end start; }
[data-theme="tokens"] .hp-logo .logo-mark { width: 54px; height: 54px; position: absolute; top: 74px; inset-inline-start: 0; filter: none; }
[data-theme="tokens"] .hp-deco.d1 { display: block; top: 82px; inset-inline-start: 76px; inset-inline-end: 0; height: 38px; background: linear-gradient(90deg, #0b0d12 0 4px, transparent 4px 12px, #0b0d12 12px 20px, transparent 20px 32px, #0b0d12 32px 44px, transparent 44px 60px, #0b0d12 60px 76px, transparent 76px 100px, #0b0d12 100px 124px, transparent 124px 156px, #0b0d12 156px 188px, transparent 188px) 0 0 / 100% 10px no-repeat; }
[data-theme="tokens"] .hp-deco.d2 { display: block; top: 100px; inset-inline-start: 76px; font: 500 .7rem/1.3 var(--font-mono); color: var(--muted); }
[data-theme="tokens"] .hp-deco.d2::before { content: 'space  4 · 8 · 12 · 16 · 24 · 32'; white-space: pre; }
[data-theme="tokens"] .sec-kicker { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
[data-theme="tokens"] .sec-index { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .3em .5em; color: var(--accent); }
[data-theme="tokens"] .sec-index::before { content: '--section-'; color: var(--muted); }
[data-theme="tokens"] .sec + .sec { border-top: 1px solid var(--line); }
[data-theme="tokens"] .stats-grid { gap: 12px; background: none; border: 0; }
[data-theme="tokens"] .stat { border: 1px solid var(--line); border-radius: 8px; padding-top: 72px; position: relative; overflow: hidden; }
[data-theme="tokens"] .stat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 52px; background: #00a86b; }
[data-theme="tokens"] .stat:nth-child(2)::before { background: #6e56cf; } [data-theme="tokens"] .stat:nth-child(3)::before { background: #0b0d12; } [data-theme="tokens"] .stat:nth-child(4)::before { background: #f59f00; }
[data-theme="tokens"] .stat strong { font-weight: 700; }
[data-theme="tokens"] .card h3::before { content: ''; display: inline-block; width: .55em; height: .55em; border-radius: 2px; background: var(--accent); margin-inline-end: .45em; vertical-align: .12em; }
[data-theme="tokens"] .work-card h3::before { display: none; }
[data-theme="tokens"] .work-media-empty { background: linear-gradient(90deg, #0b0d12 0 25%, #00a86b 25% 50%, #6e56cf 50% 75%, #f59f00 75%) bottom / 100% 10px no-repeat, #f6f7f9; }
[data-theme="tokens"] .work-num { color: #d1d5db; }
[data-theme="tokens"] .ticks li::before { border-radius: 2px; transform: none; width: .5em; height: .5em; top: .7em; }
[data-theme="tokens"] .chips li { border-radius: 4px; }

/* 6. TRIPLE A: accessibility first, high contrast, large type, one column */
[data-theme="aaa"] {
  --bg: #ffffff; --bg-2: #f4f4f4; --surface: #ffffff; --surface-2: #f2f2f2; --text: #000000; --muted: #333333; --line: #bdbdbd;
  --accent: #0038c7; --accent-2: #000000; --on-accent: #fff; --radius: 4px; --radius-sm: 4px; --radius-btn: 4px; --shadow: none;
  --font: 'Inclusive Sans', system-ui, sans-serif; --font-display: 'Inclusive Sans', system-ui, sans-serif; --font-mono: 'Noto Sans Mono', ui-monospace, monospace; --font-ar: 'Mada';
  --h-weight: 700; --h-track: -0.01em;
  --card-bg: #fff; --card-border: 2px solid #000; --chip-bg: #fff; --chip-border: 1.5px solid #000; --chip-text: #000;
  --logo-a: #000; --logo-b: #0038c7; --hero-cols: minmax(0, 1fr); --sec-pad: clamp(56px, 8vw, 96px);
}
[data-theme="aaa"] body { font-size: 18px; line-height: 1.7; }
[data-theme="aaa"] main .wrap { max-width: 940px; }
[data-theme="aaa"] a { text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
[data-theme="aaa"] :focus-visible { outline: 3px solid #000; outline-offset: 2px; box-shadow: 0 0 0 7px #ffdd00; }
[data-theme="aaa"] .hero-name { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
[data-theme="aaa"] .hero-kicker { color: #000; }
[data-theme="aaa"] .hero-status { border: 2px solid #000; color: #000; }
[data-theme="aaa"] .hero-panel { border: 2px solid #000; border-radius: 4px; }
[data-theme="aaa"] .hp-logo { display: none; }
[data-theme="aaa"] .hp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
[data-theme="aaa"] .hp-facts dt { color: #000; font-weight: 600; }
[data-theme="aaa"] .sec-index { background: #ffdd00; color: #000; padding: .25em .45em; font-weight: 600; }
[data-theme="aaa"] .sec-kicker { color: #000; }
[data-theme="aaa"] .sec + .sec { border-top: 2px solid #000; }
[data-theme="aaa"] .card p, [data-theme="aaa"] .ticks li, [data-theme="aaa"] .work-summary, [data-theme="aaa"] .sec-intro, [data-theme="aaa"] .hero-sub { color: #1a1a1a; }
[data-theme="aaa"] .stats-grid { background: #000; border: 2px solid #000; gap: 2px; border-radius: 4px; }
[data-theme="aaa"] .stat span { color: #1a1a1a; }
[data-theme="aaa"] .work-grid, [data-theme="aaa"] .skills-grid { grid-template-columns: minmax(0, 1fr); }
[data-theme="aaa"] .work-media { aspect-ratio: 16 / 6; border-bottom: 2px solid #000; }
[data-theme="aaa"] .work-media-empty { background: repeating-linear-gradient(-45deg, #fff 0 10px, #f0f0f0 10px 20px); }
[data-theme="aaa"] .work-num { color: #000; }
[data-theme="aaa"] .ticks li::before { background: #000; border-radius: 0; transform: none; width: .5em; height: .5em; top: .72em; }
[data-theme="aaa"] .btn-primary { background: #000; color: #fff; }
[data-theme="aaa"] .btn-ghost { border: 2px solid #000; }
[data-theme="aaa"] .cc, [data-theme="aaa"] .eng-n { background: #000; color: #fff; }
[data-theme="aaa"] .svc-icon { background: #ffdd00; color: #000; }
[data-theme="aaa"] .lang-switch a[aria-current] { background: #000; color: #fff; }
@media (max-width: 560px) { [data-theme="aaa"] .hp-facts { grid-template-columns: minmax(0, 1fr); } }

/* 7. ENAMEL: enamelled silver jewellery of Algeria, cobalt, coral, yellow, green */
[data-theme="enamel"] {
  --bg: #fbf8f2; --bg-2: #f4efe4; --surface: #fffdf9; --surface-2: #f3eee3; --text: #16213e; --muted: #4f5873; --line: #e6dfcf;
  --accent: #1d3fbb; --accent-2: #d63c24; --on-accent: #fff; --radius: 18px; --radius-sm: 10px; --radius-btn: 999px;
  --shadow: 0 20px 44px -30px rgba(29,63,187,.45);
  --font: 'Karla', system-ui, sans-serif; --font-display: 'DM Serif Display', Georgia, serif; --font-mono: 'Karla', ui-monospace, monospace; --font-ar: 'Reem Kufi';
  --h-weight: 400; --h-track: -0.01em;
  --card-bg: #fffdf9; --card-border: 1px solid #e6dfcf; --chip-bg: #eef2ff; --chip-border: 1px solid #d6defc; --chip-text: #1d3fbb;
  --logo-a: #1d3fbb; --logo-b: #d63c24; --hero-cols: minmax(0, 1.1fr) minmax(0, .9fr);
}
[data-theme="enamel"] .hero-bg span:nth-child(1) { inset: auto 0 0 0; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E %3Cpath d='M10 2 L17 8 L10 14 L3 8Z' fill='rgb(29,63,187)'/%3E%3Ccircle cx='10' cy='8' r='2' fill='rgb(242,176,30)'/%3E %3Cpath d='M20 0 H28 L24 5Z M20 16 H28 L24 11Z' fill='rgb(228,71,46)'/%3E%3Ccircle cx='24' cy='8' r='1.6' fill='rgb(18,138,91)'/%3E %3Cpath d='M38 2 L45 8 L38 14 L31 8Z' fill='rgb(18,138,91)'/%3E%3Ccircle cx='38' cy='8' r='2' fill='rgb(228,71,46)'/%3E %3Cpath d='M0 .5 H48 M0 15.5 H48' stroke='rgb(176,184,199)' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 48px 16px repeat-x; }
[data-theme="enamel"] .hero-name { font-size: clamp(2.8rem, 7.6vw, 5.6rem); letter-spacing: -.02em; }
[data-theme="enamel"] .hero-name { color: var(--accent); }
[data-theme="enamel"] .hero-kicker { color: var(--accent-2); font-family: var(--font); font-weight: 700; }
[data-theme="enamel"] .hero-title { font-family: var(--font-display); font-style: italic; }
[data-theme="enamel"] .hero-panel { border-radius: 200px 200px var(--radius) var(--radius); }
[data-theme="enamel"] .hp-body { padding-top: 34px; }
[data-theme="enamel"] .hp-logo { aspect-ratio: 1.5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E %3Ccircle cx='100' cy='100' r='86' fill='none' stroke='rgb(160,168,186)' stroke-width='5'/%3E %3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgb(160,168,186)' stroke-width='1' stroke-dasharray='2 3'/%3E %3Ccircle cx='173.0' cy='100.0' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='167.4' cy='127.9' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='151.6' cy='151.6' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='127.9' cy='167.4' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='100.0' cy='173.0' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='72.1' cy='167.4' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='48.4' cy='151.6' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='32.6' cy='127.9' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='27.0' cy='100.0' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='32.6' cy='72.1' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='48.4' cy='48.4' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='72.1' cy='32.6' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='100.0' cy='27.0' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='127.9' cy='32.6' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='151.6' cy='48.4' r='4.4' fill='rgb(18,138,91)'/%3E%3Ccircle cx='167.4' cy='72.1' r='4.4' fill='rgb(242,176,30)'/%3E%3Ccircle cx='100' cy='100' r='64' fill='rgb(29,63,187)'/%3E%3Cpath d='M153.6 122.2 L148.7 111.5 L142.6 126.2Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M122.2 153.6 L126.2 142.6 L111.5 148.7Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M77.8 153.6 L88.5 148.7 L73.8 142.6Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M46.4 122.2 L57.4 126.2 L51.3 111.5Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M46.4 77.8 L51.3 88.5 L57.4 73.8Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M77.8 46.4 L73.8 57.4 L88.5 51.3Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M122.2 46.4 L111.5 51.3 L126.2 57.4Z' fill='rgb(228,71,46)'/%3E%3Cpath d='M153.6 77.8 L142.6 73.8 L148.7 88.5Z' fill='rgb(228,71,46)'/%3E %3Ccircle cx='100' cy='100' r='44' fill='rgb(255,253,249)' stroke='rgb(160,168,186)' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="enamel"] .hp-logo .logo-mark { width: 17%; filter: none; }
[data-theme="enamel"] .sec-kicker { font-weight: 700; color: var(--accent-2); }
[data-theme="enamel"] .sec-index { color: var(--accent); }
[data-theme="enamel"] .sec-title::after { content: ''; display: block; width: 144px; height: 16px; margin-top: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E %3Cpath d='M10 2 L17 8 L10 14 L3 8Z' fill='rgb(29,63,187)'/%3E%3Ccircle cx='10' cy='8' r='2' fill='rgb(242,176,30)'/%3E %3Cpath d='M20 0 H28 L24 5Z M20 16 H28 L24 11Z' fill='rgb(228,71,46)'/%3E%3Ccircle cx='24' cy='8' r='1.6' fill='rgb(18,138,91)'/%3E %3Cpath d='M38 2 L45 8 L38 14 L31 8Z' fill='rgb(18,138,91)'/%3E%3Ccircle cx='38' cy='8' r='2' fill='rgb(228,71,46)'/%3E %3Cpath d='M0 .5 H48 M0 15.5 H48' stroke='rgb(176,184,199)' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 48px 16px repeat-x; }
[data-theme="enamel"] .sec:nth-of-type(even) { background: var(--bg-2); }
[data-theme="enamel"] .stats-grid { gap: 14px; background: none; border: 0; }
[data-theme="enamel"] .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent); }
[data-theme="enamel"] .stat:nth-child(2) { border-top-color: var(--accent-2); } [data-theme="enamel"] .stat:nth-child(3) { border-top-color: #f2b01e; } [data-theme="enamel"] .stat:nth-child(4) { border-top-color: #128a5b; }
[data-theme="enamel"] .stat strong { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
[data-theme="enamel"] .card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; }
[data-theme="enamel"] .work-card h3 { font-size: 1.65rem; }
[data-theme="enamel"] .work-media-empty { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E %3Cpath d='M10 2 L17 8 L10 14 L3 8Z' fill='rgb(29,63,187)'/%3E%3Ccircle cx='10' cy='8' r='2' fill='rgb(242,176,30)'/%3E %3Cpath d='M20 0 H28 L24 5Z M20 16 H28 L24 11Z' fill='rgb(228,71,46)'/%3E%3Ccircle cx='24' cy='8' r='1.6' fill='rgb(18,138,91)'/%3E %3Cpath d='M38 2 L45 8 L38 14 L31 8Z' fill='rgb(18,138,91)'/%3E%3Ccircle cx='38' cy='8' r='2' fill='rgb(228,71,46)'/%3E %3Cpath d='M0 .5 H48 M0 15.5 H48' stroke='rgb(176,184,199)' stroke-width='1'/%3E%3C/svg%3E") 0 100% / 48px 16px repeat-x, linear-gradient(160deg, #eef2ff, #fff4ef); }
[data-theme="enamel"] .work-num { color: rgba(29,63,187,.2); font-family: var(--font-display); }
[data-theme="enamel"] .ticks li::before { background: var(--accent-2); }
[data-theme="enamel"] .ticks li:nth-child(even)::before { background: #128a5b; }
[data-theme="enamel"] .cc { background: var(--accent-2); }
[data-theme="enamel"] .eng-n { background: #f2b01e; color: #16213e; }
[data-theme="enamel"] .chips li { font-family: var(--font); font-weight: 600; }

/* 8. STAGE: tech events she ran, spotlight, big type, badges */
[data-theme="stage"] {
  --bg: #0b0b0c; --bg-2: #121214; --surface: #151517; --surface-2: #1d1d20; --text: #f5f3ef; --muted: #aba79f; --line: #2a2a2e;
  --accent: #ff5f1f; --accent-2: #ffd23f; --on-accent: #0b0b0c; --radius: 6px; --radius-sm: 4px; --radius-btn: 6px;
  --shadow: 0 30px 60px -30px rgba(255,95,31,.35);
  --font: 'Public Sans', system-ui, sans-serif; --font-display: 'Big Shoulders Display', Impact, sans-serif; --font-mono: 'Kode Mono', ui-monospace, monospace; --font-ar: 'Beiruti';
  --h-weight: 800; --h-track: 0.005em; --h-case: uppercase;
  --card-bg: #151517; --card-border: 1px solid #2a2a2e; --chip-bg: #1d1d20; --chip-border: 1px solid #333338; --chip-text: #f5f3ef;
  --logo-a: #ff5f1f; --logo-b: #ffd23f; --hero-cols: minmax(0, 1.3fr) minmax(0, .7fr);
}
[data-theme="stage"] .hero-bg span:nth-child(1) { inset: 0; background: radial-gradient(ellipse 60% 75% at 30% -10%, rgba(255,210,63,.22), transparent 70%), radial-gradient(ellipse 40% 60% at 85% -15%, rgba(255,95,31,.18), transparent 70%); }
[data-theme="stage"] .hero-bg span:nth-child(2) { inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,210,63,.6), transparent); }
[data-theme="stage"] .hero-name { font-size: clamp(3.4rem, 11vw, 8.4rem); line-height: .86; font-weight: 900; }
[data-theme="stage"] .hero-title { font-family: var(--font); text-transform: none; font-weight: 600; }
[data-theme="stage"] .hero-kicker { color: var(--accent-2); }
[data-theme="stage"] .hero-panel { --text: #111; --muted: #4a4741; --line: #dcd7cd; --chip-bg: #ebe6dc; --chip-border: 1px solid #ddd6c9; --chip-text: #111; color: #111; background: #f5f3ef; border: 0; border-radius: 14px; padding-top: 6px; }
[data-theme="stage"] .hero-panel::before { content: ''; position: absolute; top: 12px; left: 50%; width: 56px; height: 10px; border-radius: 6px; transform: translateX(-50%); background: #0b0b0c; z-index: 2; }
[data-theme="stage"] .hp-bar { display: flex; margin-top: 26px; background: var(--accent); color: #0b0b0c; border: 0; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
[data-theme="stage"] .hp-bar i { display: none; }
[data-theme="stage"] .hp-bar span { margin: 0; }
[data-theme="stage"] .hp-label::before { content: 'Crew · '; }
[data-theme="stage"] .hp-logo { aspect-ratio: 2.4; margin-bottom: 6px; }
[data-theme="stage"] .hp-logo .logo-mark { width: 26%; filter: none; --logo-a: #0b0b0c; --logo-b: #ff5f1f; }
@media (min-width: 861px) { [data-theme="stage"] .hero-panel { transform: rotate(2.5deg); } }
[data-theme="stage"] .sec-title { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .95; }
[data-theme="stage"] .sec-index { color: var(--accent); }
[data-theme="stage"] .sec-index::before { content: 'Session '; }
[data-theme="stage"] .sec + .sec { border-top: 1px solid var(--line); }
[data-theme="stage"] .stats-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; }
[data-theme="stage"] .stat { background: #0f0f11; }
[data-theme="stage"] .stat strong { color: var(--accent-2); font-size: clamp(2.6rem, 5vw, 3.8rem); }
[data-theme="stage"] .stat span { text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
html[lang="ar"][data-theme="stage"] .stat span { text-transform: none; letter-spacing: 0; font-size: .9rem; }
[data-theme="stage"] .card { transition: border-color .25s ease; }
[data-theme="stage"] .card:hover { border-color: var(--accent); }
[data-theme="stage"] .card h3 { font-size: 1.5rem; letter-spacing: .01em; }
[data-theme="stage"] .comm { background: #f5f3ef; color: #111; border: 0; border-radius: 12px; position: relative; padding-top: 34px; }
[data-theme="stage"] .comm::before { content: ''; position: absolute; top: 12px; left: 50%; width: 40px; height: 8px; border-radius: 5px; transform: translateX(-50%); background: #0b0b0c; }
[data-theme="stage"] .comm p { color: #3f3c37; }
[data-theme="stage"] .comm .comm-year { color: #d94810; }
[data-theme="stage"] .comm .comm-type { color: #3f3c37; border-color: #cfc8ba; }
[data-theme="stage"] .comm .proj-link { color: #111; }
[data-theme="stage"] .work-media-empty { background: radial-gradient(ellipse at 50% -20%, rgba(255,210,63,.35), transparent 65%), #121214; }
[data-theme="stage"] .work-num { color: rgba(255,210,63,.35); }
[data-theme="stage"] .ticks li::before { border-radius: 0; transform: none; width: .55em; height: .55em; top: .7em; }
[data-theme="stage"] .tl-when span { color: var(--accent-2); }

/* 9. NIGHT UI: dark mode product interface, app shell, panels, tabs */
[data-theme="nightui"] {
  --bg: #0e1116; --bg-2: #11151c; --surface: #161b22; --surface-2: #1c222b; --text: #e6edf3; --muted: #8e99a8; --line: #262d38;
  --accent: #7aa2f7; --accent-2: #f7768e; --on-accent: #0e1116; --radius: 12px; --radius-sm: 8px; --radius-btn: 8px;
  --shadow: 0 24px 50px -28px rgba(0,0,0,.7);
  --font: 'Rethink Sans', system-ui, sans-serif; --font-display: 'Rethink Sans', system-ui, sans-serif; --font-mono: 'Ubuntu Sans Mono', ui-monospace, monospace; --font-ar: 'Vazirmatn';
  --h-weight: 700; --h-track: -0.025em;
  --card-bg: #161b22; --card-border: 1px solid #262d38; --chip-bg: #1f2632; --chip-border: 1px solid #2c3442; --chip-text: #c0caf5;
  --logo-a: #7aa2f7; --logo-b: #bb9af7; --hero-cols: minmax(0, 1fr) minmax(0, 1.05fr);
}
[data-theme="nightui"] .hero-bg span:nth-child(1) { inset: 0; background: linear-gradient(rgba(122,162,247,.05) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, rgba(122,162,247,.05) 1px, transparent 1px) 0 0 / 44px 100%; -webkit-mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
[data-theme="nightui"] .hero-kicker { color: var(--accent-2); }
[data-theme="nightui"] .hero-panel { background: #11151c; border-radius: 14px; }
[data-theme="nightui"] .hp-bar { display: flex; background: #161b22; }
[data-theme="nightui"] .hp-bar i:nth-child(1) { background: #f7768e; } [data-theme="nightui"] .hp-bar i:nth-child(2) { background: #e0af68; } [data-theme="nightui"] .hp-bar i:nth-child(3) { background: #9ece6a; }
[data-theme="nightui"] .hp-label::after { content: ' / dashboard'; color: var(--accent); }
[data-theme="nightui"] .hp-logo { aspect-ratio: 1.6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E %3Crect width='320' height='200' rx='10' fill='rgb(19,24,31)'/%3E %3Crect width='70' height='200' rx='10' fill='rgb(26,32,41)'/%3E%3Crect x='60' width='10' height='200' fill='rgb(26,32,41)'/%3E %3Ccircle cx='22' cy='24' r='8' fill='rgb(122,162,247)'/%3E%3Crect x='34' y='20' width='24' height='7' rx='3.5' fill='rgb(44,52,66)'/%3E %3Crect x='14' y='52' width='42' height='8' rx='4' fill='rgb(122,162,247)' fill-opacity='.35'/%3E%3Crect x='14' y='70' width='36' height='6' rx='3' fill='rgb(44,52,66)'/%3E%3Crect x='14' y='86' width='40' height='6' rx='3' fill='rgb(44,52,66)'/%3E%3Crect x='14' y='102' width='30' height='6' rx='3' fill='rgb(44,52,66)'/%3E %3Crect x='84' y='16' width='70' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='93' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='93' y='38' width='38' height='9' rx='3' fill='rgb(122,162,247)'/%3E %3Crect x='162' y='16' width='70' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='171' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='171' y='38' width='30' height='9' rx='3' fill='rgb(247,118,142)'/%3E %3Crect x='240' y='16' width='66' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='249' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='249' y='38' width='34' height='9' rx='3' fill='rgb(158,206,106)'/%3E %3Crect x='84' y='66' width='222' height='120' rx='8' fill='rgb(30,37,47)'/%3E %3Cpolyline points='96,150 112,132 128,140 140,112' fill='none' stroke='rgb(224,175,104)' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E %3Cpath d='M96 172 H300' stroke='rgb(44,52,66)'/%3E%3Crect x='150' y='134' width='10' height='34' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='168' y='116' width='10' height='52' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='186' y='128' width='10' height='40' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='204' y='102' width='10' height='66' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='222' y='120' width='10' height='48' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='240' y='96' width='10' height='72' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='258' y='110' width='10' height='58' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='276' y='88' width='10' height='80' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='294' y='106' width='10' height='62' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="nightui"] .hp-logo .logo-mark { display: none; }
[data-theme="nightui"] .sec-kicker { text-transform: none; letter-spacing: 0; }
[data-theme="nightui"] .sec-index { color: var(--muted); }
[data-theme="nightui"] .sec-index::after { content: ' /'; }
[data-theme="nightui"] .sec-label { color: var(--accent); }
[data-theme="nightui"] .card { box-shadow: var(--shadow); }
[data-theme="nightui"] .work-card .work-body, [data-theme="nightui"] .tl-what { border-top: 2px solid #262d38; }
[data-theme="nightui"] .work-card:hover .work-body, [data-theme="nightui"] .tl-what:hover { border-top-color: var(--accent); }
[data-theme="nightui"] .stats-grid { gap: 12px; background: none; border: 0; }
[data-theme="nightui"] .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
[data-theme="nightui"] .stat strong { color: var(--accent); }
[data-theme="nightui"] .stat:nth-child(2) strong { color: #bb9af7; } [data-theme="nightui"] .stat:nth-child(3) strong { color: #9ece6a; } [data-theme="nightui"] .stat:nth-child(4) strong { color: #e0af68; }
[data-theme="nightui"] .work-media-empty { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E %3Crect width='320' height='200' rx='10' fill='rgb(19,24,31)'/%3E %3Crect width='70' height='200' rx='10' fill='rgb(26,32,41)'/%3E%3Crect x='60' width='10' height='200' fill='rgb(26,32,41)'/%3E %3Ccircle cx='22' cy='24' r='8' fill='rgb(122,162,247)'/%3E%3Crect x='34' y='20' width='24' height='7' rx='3.5' fill='rgb(44,52,66)'/%3E %3Crect x='14' y='52' width='42' height='8' rx='4' fill='rgb(122,162,247)' fill-opacity='.35'/%3E%3Crect x='14' y='70' width='36' height='6' rx='3' fill='rgb(44,52,66)'/%3E%3Crect x='14' y='86' width='40' height='6' rx='3' fill='rgb(44,52,66)'/%3E%3Crect x='14' y='102' width='30' height='6' rx='3' fill='rgb(44,52,66)'/%3E %3Crect x='84' y='16' width='70' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='93' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='93' y='38' width='38' height='9' rx='3' fill='rgb(122,162,247)'/%3E %3Crect x='162' y='16' width='70' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='171' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='171' y='38' width='30' height='9' rx='3' fill='rgb(247,118,142)'/%3E %3Crect x='240' y='16' width='66' height='40' rx='7' fill='rgb(30,37,47)'/%3E%3Crect x='249' y='26' width='26' height='5' rx='2.5' fill='rgb(44,52,66)'/%3E%3Crect x='249' y='38' width='34' height='9' rx='3' fill='rgb(158,206,106)'/%3E %3Crect x='84' y='66' width='222' height='120' rx='8' fill='rgb(30,37,47)'/%3E %3Cpolyline points='96,150 112,132 128,140 140,112' fill='none' stroke='rgb(224,175,104)' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E %3Cpath d='M96 172 H300' stroke='rgb(44,52,66)'/%3E%3Crect x='150' y='134' width='10' height='34' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='168' y='116' width='10' height='52' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='186' y='128' width='10' height='40' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='204' y='102' width='10' height='66' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='222' y='120' width='10' height='48' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='240' y='96' width='10' height='72' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='258' y='110' width='10' height='58' rx='2' fill='rgb(247,118,142)' fill-opacity='.9'/%3E%3Crect x='276' y='88' width='10' height='80' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3Crect x='294' y='106' width='10' height='62' rx='2' fill='rgb(122,162,247)' fill-opacity='.9'/%3E%3C/svg%3E") center / 78% no-repeat, #11151c; }
[data-theme="nightui"] .work-num { color: rgba(122,162,247,.2); }
[data-theme="nightui"] .ticks li::before { width: .7em; height: .7em; border-radius: 3px; transform: none; top: .5em; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2 4.2 7.2 7.8 3' fill='none' stroke='%230e1116' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; }
[data-theme="nightui"] .cc, [data-theme="nightui"] .eng-n { background: var(--accent-2); color: #0e1116; }
[data-theme="nightui"] .faq-item { background: #161b22; }

/* 10. GESTALT: design principles, bold shapes, proximity, similarity, closure */
[data-theme="gestalt"] {
  --bg: #111111; --bg-2: #171717; --surface: #1a1a1a; --surface-2: #222222; --text: #f4efe6; --muted: #b6b0a6; --line: #2e2e2e;
  --accent: #ff4d2e; --accent-2: #ffc400; --on-accent: #111; --radius: 0px; --radius-sm: 0px; --radius-btn: 0px; --shadow: none;
  --font: 'Epilogue', system-ui, sans-serif; --font-display: 'Epilogue', system-ui, sans-serif; --font-mono: 'Sono', ui-monospace, monospace; --font-ar: 'Marhey';
  --h-weight: 900; --h-track: -0.045em;
  --card-bg: #1a1a1a; --card-border: 2px solid #2e2e2e; --chip-bg: transparent; --chip-border: 2px solid #3a3a3a; --chip-text: #f4efe6;
  --logo-a: #ff4d2e; --logo-b: #ffc400; --hero-cols: minmax(0, 1.2fr) minmax(0, .8fr);
}
[data-theme="gestalt"] .hero-bg span:nth-child(1) { width: 420px; height: 420px; top: -140px; inset-inline-end: -120px; border-radius: 50%; background: #ff4d2e; opacity: .9; }
[data-theme="gestalt"] .hero-bg span:nth-child(2) { width: 180px; height: 180px; bottom: 40px; inset-inline-end: 34%; background: #2d6bff; }
[data-theme="gestalt"] .hero-bg span:nth-child(3) { width: 200px; height: 174px; bottom: -40px; inset-inline-start: -50px; background: #ffc400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-theme="gestalt"] .hero-name { font-size: clamp(3rem, 9vw, 7rem); line-height: .9; }
[data-theme="gestalt"] .hero-kicker { color: var(--accent-2); }
[data-theme="gestalt"] .hero-status { border-radius: 0; border-width: 2px; }
[data-theme="gestalt"] .hero-panel { background: #161616; border: 2px solid #f4efe6; }
[data-theme="gestalt"] .hp-logo { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cpath d='M150.0 34.0 L135.0 60.0 A30 30 0 1 1 165.0 60.0Z' fill='rgb(244,239,230)'/%3E%3Cpath d='M80.0 156.0 L110.0 155.9 A30 30 0 1 1 94.9 130.0Z' fill='rgb(244,239,230)'/%3E%3Cpath d='M220.0 156.0 L205.1 130.0 A30 30 0 1 1 190.0 155.9Z' fill='rgb(244,239,230)'/%3E%3Ccircle cx='252' cy='120' r='4' fill='rgb(255,77,46)'/%3E%3Ccircle cx='265' cy='120' r='4' fill='rgb(255,77,46)'/%3E%3Ccircle cx='278' cy='120' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='291' cy='120' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='252' cy='133' r='4' fill='rgb(255,77,46)'/%3E%3Ccircle cx='265' cy='133' r='4' fill='rgb(255,77,46)'/%3E%3Ccircle cx='278' cy='133' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='291' cy='133' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='252' cy='146' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='265' cy='146' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='278' cy='146' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='291' cy='146' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='252' cy='159' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='265' cy='159' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='278' cy='159' r='4' fill='rgb(90,90,90)'/%3E%3Ccircle cx='291' cy='159' r='4' fill='rgb(90,90,90)'/%3E%3Crect x='22' y='22' width='34' height='34' fill='rgb(45,107,255)'/%3E%3Crect x='36' y='36' width='34' height='34' fill='none' stroke='rgb(255,196,0)' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="gestalt"] .hp-logo .logo-mark { display: none; }
[data-theme="gestalt"] .sec-title { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: .95; }
[data-theme="gestalt"] .sec-index { display: inline-flex; align-items: center; gap: .55em; color: var(--text); }
[data-theme="gestalt"] .sec-index::before { content: ''; width: .95em; height: .95em; background: #ff4d2e; border-radius: 50%; }
[data-theme="gestalt"] .sec:nth-of-type(3n+1) .sec-index::before { border-radius: 0; background: #2d6bff; }
[data-theme="gestalt"] .sec:nth-of-type(3n+2) .sec-index::before { border-radius: 0; background: #ffc400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-theme="gestalt"] .stats-grid { gap: 0; background: none; border: 2px solid #f4efe6; border-radius: 0; }
[data-theme="gestalt"] .stat { background: transparent; border-inline-start: 2px solid #f4efe6; position: relative; padding-top: 58px; }
[data-theme="gestalt"] .stat:first-child { border-inline-start: 0; }
[data-theme="gestalt"] .stat::before { content: ''; position: absolute; top: 22px; inset-inline-start: 24px; width: 22px; height: 22px; background: #ff4d2e; border-radius: 50%; }
[data-theme="gestalt"] .stat:nth-child(2)::before { border-radius: 0; background: #2d6bff; }
[data-theme="gestalt"] .stat:nth-child(3)::before { border-radius: 0; background: #ffc400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-theme="gestalt"] .stat:nth-child(4)::before { background: transparent; border: 3px solid #f4efe6; }
@media (max-width: 860px) { [data-theme="gestalt"] .stat:nth-child(3) { border-inline-start: 0; } [data-theme="gestalt"] .stat:nth-child(n+3) { border-top: 2px solid #f4efe6; } }
[data-theme="gestalt"] .card { transition: transform .2s ease, border-color .2s ease; }
[data-theme="gestalt"] .card:hover { border-color: #f4efe6; }
[data-theme="gestalt"] .work-media-empty { background: radial-gradient(circle at 30% 60%, #ff4d2e 0 18%, transparent 18.5%), linear-gradient(#2d6bff, #2d6bff) 72% 30% / 22% 40% no-repeat, #1a1a1a; }
[data-theme="gestalt"] .work-num { color: #f4efe6; }
[data-theme="gestalt"] .ticks li::before { transform: none; border-radius: 50%; background: var(--accent); }
[data-theme="gestalt"] .ticks li:nth-child(3n+2)::before { border-radius: 0; background: #2d6bff; }
[data-theme="gestalt"] .ticks li:nth-child(3n)::before { border-radius: 0; background: #ffc400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-theme="gestalt"] .btn-primary { background: #ff4d2e; color: #111; }
[data-theme="gestalt"] .btn-ghost { border: 2px solid #f4efe6; background: transparent; }
[data-theme="gestalt"] .cc { background: #ffc400; color: #111; }
[data-theme="gestalt"] .eng-n { background: #2d6bff; color: #fff; }
[data-theme="gestalt"] .svc-icon { background: #ffc400; color: #111; }
[data-theme="gestalt"] .lang-switch, [data-theme="gestalt"] .lang-switch a, [data-theme="gestalt"] .icon-btn, [data-theme="gestalt"] .theme-panel, [data-theme="gestalt"] .theme-list button, [data-theme="gestalt"] .hero-status { border-radius: 0; }

/* optional photo in About */
.about-photo { padding: 0 !important; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }

/* awards & community */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.comm { padding: 22px; display: grid; gap: 10px; align-content: start; }
.comm-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.comm-year { font: 700 .82rem/1 var(--font-mono); color: var(--accent); }
.comm-type { font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: .4em .6em; border-radius: 999px; }
html[lang="ar"] .comm-type { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.comm p { font-size: .94rem; }

/* certificates */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.cert { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.cert-media { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: var(--card-border); overflow: hidden; }
.cert-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.cert-media:hover img { transform: scale(1.03); }
.cert-body { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.cert-issuer { font: 600 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
html[lang="ar"] .cert-issuer { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: .82rem; }
.cert h3 { font-size: 1.04rem; line-height: 1.3; }
.cert-meta { font-size: .86rem; color: var(--muted); }
.cert-note { font-size: .82rem; color: var(--muted); }
.cert-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.cert-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.cert-links a .ic { width: .9em; color: var(--accent); }
.cert-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.cert-sub a { color: var(--muted); }
