:root {
  --bg: #080d19;
  --bg-2: #0d1424;
  --surface: rgba(18, 27, 46, .82);
  --surface-solid: #111a2d;
  --surface-2: #172238;
  --text: #f6f8fc;
  --muted: #9da9bd;
  --line: rgba(255,255,255,.1);
  --primary: #7867ff;
  --primary-2: #9b8eff;
  --accent: #27d6c3;
  --gold: #f4bb55;
  --danger: #ff6b88;
  --shadow: 0 25px 80px rgba(0,0,0,.32);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100% - 44px));
  --font-ar: "Tajawal", sans-serif;
  --font-en: "Inter", sans-serif;
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --surface: rgba(255,255,255,.85);
  --surface-solid: #fff;
  --surface-2: #edf1f8;
  --text: #101827;
  --muted: #647087;
  --line: rgba(17,24,39,.11);
  --shadow: 0 25px 70px rgba(42,53,80,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ar);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
html[dir="ltr"] body { font-family: var(--font-en); }
body.modal-open { overflow: hidden; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent)); border-radius: 20px; border: 2px solid var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }

.page-noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 360px; height: 360px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(120,103,255,.14), transparent 66%);
  transform: translate(-50%,-50%); transition: opacity .25s ease; opacity: 0;
}
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 10000; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--primary),var(--accent)); }

/* Header */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 1000; border-bottom: 1px solid transparent; transition: .3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); border-color: var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-en); font-weight: 900; color: #fff; letter-spacing: -1px; background: linear-gradient(135deg,var(--primary),var(--accent)); box-shadow: 0 12px 28px rgba(120,103,255,.28); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy b { font-size: 16px; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: .2s; position: relative; }
.desktop-nav a::after { content:""; position:absolute; height:2px; border-radius:5px; inset-inline:0; bottom:-9px; background:linear-gradient(90deg,var(--primary),var(--accent)); transform:scaleX(0); transition:.25s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn, .lang-btn { border: 1px solid var(--line); background: var(--surface); cursor: pointer; height: 42px; min-width: 42px; border-radius: 13px; display: grid; place-items: center; transition: .2s; backdrop-filter: blur(10px); }
.icon-btn:hover, .lang-btn:hover { border-color: color-mix(in srgb,var(--primary) 70%, var(--line)); transform: translateY(-2px); }
.icon-btn svg { width: 19px; }
.lang-btn { padding: 0 12px; font-family: var(--font-en); font-weight: 800; font-size: 12px; }
.nav-cta { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px; border-radius: 13px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--primary),#6250f5); box-shadow: 0 12px 26px rgba(120,103,255,.23); }
.nav-cta svg { width: 17px; }
html[dir="rtl"] .nav-cta svg, html[dir="rtl"] .btn svg, html[dir="rtl"] .project-open svg { transform: scaleX(-1); }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero { min-height: 100vh; padding-top: 148px; padding-bottom: 70px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; opacity:.38; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px, transparent 1px); background-size:72px 72px; mask-image:linear-gradient(to bottom, black, transparent 82%); }
.hero-orb { position:absolute; border-radius:50%; filter:blur(4px); pointer-events:none; }
.orb-one { width:530px; height:530px; top:-210px; inset-inline-start:-130px; background:radial-gradient(circle,rgba(120,103,255,.21),transparent 68%); }
.orb-two { width:460px; height:460px; bottom:-220px; inset-inline-end:-80px; background:radial-gradient(circle,rgba(39,214,195,.17),transparent 68%); }
.hero-grid { position:relative; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:72px; }
.availability { display:inline-flex; align-items:center; gap:10px; padding:8px 14px; border:1px solid rgba(39,214,195,.24); background:rgba(39,214,195,.07); color:var(--accent); border-radius:999px; font-size:12px; font-weight:700; }
.availability > span:first-child { width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 6px rgba(39,214,195,.1); animation:pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 12px rgba(39,214,195,0); } }
.hero-kicker { margin:24px 0 5px; color:var(--primary-2); font-weight:700; letter-spacing:.02em; }
.hero h1 { font-size:clamp(46px,6vw,76px); line-height:1.12; margin:0; letter-spacing:-.04em; }
.hero h1 span { font-size:.62em; font-weight:500; color:var(--muted); letter-spacing:0; }
.hero h1 strong { background:linear-gradient(100deg,var(--text) 20%,var(--primary-2) 62%,var(--accent)); -webkit-background-clip:text; color:transparent; }
.role-line { margin-top:19px; min-height:40px; font-size:clamp(20px,2.5vw,28px); color:var(--muted); }
.role-line b { color:var(--accent); }
.typing-caret { display:inline-block; width:2px; height:27px; background:var(--accent); vertical-align:middle; margin-inline:5px; animation:blink .75s step-end infinite; }
@keyframes blink { 50% { opacity:0; } }
.hero-description { max-width:690px; margin:22px 0 29px; color:var(--muted); font-size:17px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.btn { min-height:52px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 22px; border-radius:16px; border:1px solid transparent; cursor:pointer; font-weight:800; transition:.25s ease; }
.btn-primary { color:#fff; background:linear-gradient(135deg,var(--primary),#5c4bea); box-shadow:0 16px 35px rgba(120,103,255,.28); }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 20px 42px rgba(120,103,255,.36); }
.btn-ghost { background:var(--surface); border-color:var(--line); backdrop-filter:blur(12px); }
.btn-ghost:hover { transform:translateY(-3px); border-color:rgba(120,103,255,.44); }
.btn svg { width:19px; }
.hero-links { display:flex; align-items:center; gap:9px; margin-top:27px; }
.hero-links > a { width:39px; height:39px; border:1px solid var(--line); border-radius:12px; display:grid; place-items:center; color:var(--muted); transition:.2s; }
.hero-links > a:hover { color:var(--text); border-color:var(--primary); transform:translateY(-3px); }
.hero-links svg { width:18px; }
.hero-location { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; margin-inline-start:9px; }
.hero-location svg { width:17px; color:var(--accent); }

.hero-visual { position:relative; min-height:590px; display:grid; place-items:center; perspective:1200px; }
.visual-ring { position:absolute; border-radius:50%; border:1px solid var(--line); }
.ring-one { width:500px; height:500px; animation:spin 24s linear infinite; border-style:dashed; }
.ring-two { width:380px; height:380px; border-color:rgba(39,214,195,.18); animation:spin 16s linear infinite reverse; }
@keyframes spin { to { transform:rotate(360deg); } }
.profile-card { position:relative; z-index:2; width:330px; height:440px; border-radius:42px; padding:12px; background:linear-gradient(160deg,rgba(255,255,255,.17),rgba(255,255,255,.03)); border:1px solid rgba(255,255,255,.17); box-shadow:var(--shadow); backdrop-filter:blur(14px); transform-style:preserve-3d; overflow:hidden; }
.profile-card::before { content:""; position:absolute; inset:12px; border-radius:32px; background:linear-gradient(150deg,#e8eef6,#cbd3df); }
.profile-light { position:absolute; width:190px; height:190px; border-radius:50%; background:var(--accent); opacity:.18; filter:blur(40px); top:-50px; inset-inline-end:-45px; }
.profile-card img { position:absolute; z-index:1; inset:12px 12px 0; width:calc(100% - 24px); height:calc(100% - 12px); object-fit:cover; object-position:center top; border-radius:32px; }
.profile-bottom { position:absolute; z-index:3; inset-inline:25px; bottom:24px; padding:15px 18px; border:1px solid rgba(255,255,255,.18); background:rgba(9,14,26,.72); backdrop-filter:blur(12px); border-radius:19px; display:grid; color:#fff; }
.profile-bottom span { font:600 10px var(--font-en); color:#aebad0; text-transform:uppercase; letter-spacing:.1em; }
.profile-bottom b { font:800 17px var(--font-en); margin-top:3px; }
.floating-card { position:absolute; z-index:4; width:270px; padding:14px 17px 18px; border:1px solid var(--line); background:color-mix(in srgb,var(--surface-solid) 86%, transparent); backdrop-filter:blur(18px); border-radius:18px; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.floating-code { top:70px; inset-inline-start:-32px; animation:float 6s ease-in-out infinite; }
.window-dots { display:flex; gap:6px; margin-bottom:11px; }
.window-dots span { width:7px; height:7px; border-radius:50%; background:#ff6b6b; }
.window-dots span:nth-child(2) { background:#f4bb55; }.window-dots span:nth-child(3) { background:#27d6c3; }
.floating-code code { direction:ltr; text-align:left; display:block; font:500 11px/1.7 var(--font-en); color:#a9b5ca; }
.floating-code i { color:#d58cff; font-style:normal; }.floating-code b { color:#7ecbff; }.floating-code em { color:#79e2a9; font-style:normal; }
@keyframes float { 50% { transform:translateY(-15px) rotate(-1deg); } }
.floating-chip { position:absolute; z-index:5; display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--line); background:var(--surface); backdrop-filter:blur(12px); border-radius:14px; font:700 12px var(--font-en); box-shadow:0 15px 38px rgba(0,0,0,.2); }
.floating-chip svg { width:18px; color:var(--accent); }
.chip-flutter { bottom:80px; inset-inline-start:-5px; animation:float 5s 1s ease-in-out infinite; }
.chip-api { top:155px; inset-inline-end:-26px; animation:float 7s .5s ease-in-out infinite reverse; }
.experience-badge { position:absolute; z-index:5; bottom:30px; inset-inline-end:20px; width:112px; height:112px; border-radius:50%; display:grid; place-content:center; text-align:center; background:linear-gradient(145deg,var(--primary),#4d3dd3); color:#fff; box-shadow:0 18px 50px rgba(120,103,255,.35); border:7px solid var(--bg); }
.experience-badge b { font:900 29px var(--font-en); line-height:1; }.experience-badge span { font-size:10px; margin-top:6px; }
.hero-stats { position:relative; margin-top:55px; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); background:var(--surface); backdrop-filter:blur(12px); border-radius:23px; padding:22px 10px; box-shadow:0 16px 45px rgba(0,0,0,.1); }
.hero-stats > div { padding:4px 26px; border-inline-start:1px solid var(--line); }
.hero-stats > div:first-child { border-inline-start:0; }
.hero-stats strong { font:800 27px var(--font-en); }.hero-stats > div > span { color:var(--accent); font-weight:800; margin-inline-start:2px; }
.hero-stats small { display:block; color:var(--muted); font-size:11px; margin-top:5px; }

/* Marquee */
.marquee-section { padding:0; border-block:1px solid var(--line); background:var(--bg-2); overflow:hidden; transform:rotate(-1.2deg) scale(1.01); }
.marquee { padding:18px 0; overflow:hidden; }
.marquee-track { width:max-content; display:flex; align-items:center; gap:28px; animation:marquee 32s linear infinite; font:700 15px var(--font-en); color:var(--muted); }
.marquee-track i { color:var(--primary); font-style:normal; font-size:11px; }
@keyframes marquee { to { transform:translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-direction:reverse; }

/* Shared headings */
.section-heading { display:flex; gap:22px; align-items:flex-start; margin-bottom:50px; }
.section-index { font:700 13px var(--font-en); color:var(--accent); padding-top:10px; }
.eyebrow { margin:0 0 8px; color:var(--primary-2); text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:800; }
.section-heading h2, .split-heading h2, .systems-sticky h2, .contact-copy h2 { margin:0; font-size:clamp(34px,4.5vw,53px); line-height:1.23; letter-spacing:-.035em; }
.split-heading { display:flex; align-items:end; justify-content:space-between; gap:60px; margin-bottom:45px; }
.split-heading > p { max-width:450px; color:var(--muted); margin:0 0 8px; }

/* About */
.about { background:linear-gradient(180deg,var(--bg),var(--bg-2)); }
.about-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:68px; align-items:center; }
.about-story .lead { font-size:24px; line-height:1.55; color:var(--text); font-weight:600; margin-top:0; }
.about-story > p:not(.lead) { color:var(--muted); font-size:16px; }
.signature { margin-top:30px; font:800 25px/1.3 var(--font-en); color:var(--text); }
.signature span { display:block; color:var(--muted); font-size:11px; font-weight:500; margin-top:6px; letter-spacing:.06em; }
.about-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
.mini-card { position:relative; min-height:230px; padding:28px; border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); overflow:hidden; transition:.3s; }
.mini-card:hover { transform:translateY(-7px); border-color:rgba(120,103,255,.4); box-shadow:var(--shadow); }
.mini-card > span { position:absolute; top:18px; inset-inline-end:22px; font:700 11px var(--font-en); color:var(--muted); }
.mini-card > svg { width:33px; height:33px; color:var(--accent); margin-bottom:24px; }
.mini-card h3 { margin:0 0 8px; font-size:18px; }.mini-card p { margin:0; color:var(--muted); font-size:13px; }

/* Services */
.services-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.service-card { padding:30px 25px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); position:relative; overflow:hidden; transition:.3s; }
.service-card::before { content:""; position:absolute; width:140px; height:140px; border-radius:50%; background:var(--primary); filter:blur(65px); opacity:0; top:-50px; inset-inline-end:-50px; transition:.3s; }
.service-card:hover { transform:translateY(-8px); border-color:rgba(120,103,255,.4); }.service-card:hover::before { opacity:.18; }
.service-icon { width:55px; height:55px; display:grid; place-items:center; border-radius:17px; background:linear-gradient(135deg,rgba(120,103,255,.18),rgba(39,214,195,.09)); color:var(--primary-2); margin-bottom:27px; }
.service-icon svg { width:27px; height:27px; }
.service-card h3 { font-size:19px; margin:0 0 11px; }.service-card p { color:var(--muted); font-size:13px; min-height:100px; margin:0; }
.service-card > span { display:inline-block; margin-top:18px; font:600 10px var(--font-en); color:var(--accent); letter-spacing:.04em; }

/* Projects */
.projects { background:var(--bg-2); }
.project-filters { display:flex; gap:8px; margin:-23px 0 35px; justify-content:flex-end; }
.project-filters button { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:999px; padding:9px 18px; cursor:pointer; font-size:12px; font-weight:700; transition:.2s; }
.project-filters button.active, .project-filters button:hover { color:#fff; background:var(--primary); border-color:var(--primary); }
.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.project-card { border:1px solid var(--line); border-radius:32px; background:var(--surface-solid); overflow:hidden; transition:.35s; }
.project-card.project-hidden { display:none; }
.project-card:hover { transform:translateY(-8px); box-shadow:var(--shadow); border-color:rgba(120,103,255,.35); }
.project-media { height:340px; position:relative; overflow:hidden; display:grid; place-items:center; isolation:isolate; }
.project-media::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(4,8,18,.42),transparent 50%); z-index:2; }
.visual-teal { background:linear-gradient(135deg,#0a3540,#11324f); }.visual-blue { background:linear-gradient(135deg,#071a38,#173d78); }.visual-indigo { background:linear-gradient(135deg,#121649,#27358a); }.visual-gold { background:linear-gradient(135deg,#20170c,#5b3e16); }
.media-frame { position:absolute; overflow:hidden; }
.desktop-frame { width:84%; height:68%; top:14%; inset-inline-start:9%; border-radius:17px; box-shadow:0 28px 55px rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.18); transform:perspective(900px) rotateX(4deg); transition:.5s ease; background:rgba(255,255,255,.04); }
.phone-frame { z-index:3; width:112px; height:218px; inset-inline-end:6%; bottom:5%; border-radius:26px; box-shadow:0 24px 32px rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.22); background:rgba(10,16,32,.65); backdrop-filter:blur(5px); transition:.5s ease; }
.media-slide { position:absolute; inset:0; width:100%; height:100%; opacity:0; transition:opacity .55s ease, transform .7s ease; }
.media-slide.is-active { opacity:1; }
.desktop-shot { object-fit:cover; object-position:top; transform:scale(1.03); }
.desktop-shot.is-active { transform:scale(1); }
.phone-shot { object-fit:cover; object-position:top; border-radius:26px; }
.project-card:hover .desktop-frame { transform:perspective(900px) rotateX(0) scale(1.025); }
.project-card:hover .phone-frame { transform:translateY(-8px) rotate(2deg); }
.phone-only-gallery { position:absolute; inset:13% 7% 10%; display:flex; align-items:flex-end; justify-content:center; gap:12px; padding-inline:10px; }
.phone-only-gallery.single-phone { justify-content:center; }
.phone-only-gallery.single-phone .phone-only-shot { width:min(38%, 170px); }
.phone-only-gallery.multi-phone .phone-only-shot { width:calc((100% - 24px) / 3); max-width:132px; }
.phone-only-shot { height:78%; object-fit:cover; object-position:top; border-radius:24px; border:1px solid rgba(255,255,255,.18); box-shadow:0 18px 30px rgba(0,0,0,.35); background:#10192d; }
.project-media-phone-only .project-glow { opacity:.18; }
.project-media-empty { position:absolute; inset:18%; border-radius:24px; border:1px dashed rgba(255,255,255,.18); }
.project-glow { position:absolute; z-index:-1; width:220px; height:220px; border-radius:50%; background:var(--accent); opacity:.22; filter:blur(70px); }
.project-number { position:absolute; z-index:4; top:20px; inset-inline-start:22px; font:800 12px var(--font-en); color:rgba(255,255,255,.75); }
.project-info { padding:26px 28px 29px; }
.project-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; color:var(--muted); font-size:11px; font-weight:700; }
.status { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); padding:4px 9px; border-radius:999px; font-size:9px; }
.status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status.live { color:var(--accent); background:rgba(39,214,195,.06); }.status.progress { color:var(--gold); background:rgba(244,187,85,.07); }.status.archived { color:#aab2c2; }.status.private { color:var(--primary-2); }
.project-info h3 { margin:14px 0 10px; font-size:28px; }.project-info p { color:var(--muted); margin:0; min-height:85px; font-size:14px; }
.tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }.tags span, .modal-tech span { padding:6px 10px; border-radius:9px; background:var(--surface-2); color:var(--muted); font:600 9px var(--font-en); }
.project-open { width:100%; margin-top:23px; padding-top:18px; border:0; border-top:1px solid var(--line); background:transparent; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-weight:800; font-size:13px; }
.project-open svg { width:18px; color:var(--accent); transition:.2s; }.project-open:hover svg { transform:translateX(-5px) scaleX(-1); } html[dir="ltr"] .project-open:hover svg { transform:translateX(5px); }
.project-wide .project-media { height:370px; }
.alkhfaf-visual .desktop-shot { width:100%; height:100%; inset:0; border:0; border-radius:0; opacity:.82; }
.logo-shot { position:absolute; z-index:3; width:105px; height:105px; object-fit:cover; border-radius:24px; padding:8px; background:#fff; box-shadow:0 18px 40px rgba(0,0,0,.3); }
.abstract-media > img { width:100%; height:100%; object-fit:cover; }

/* Systems */
.systems-showcase { background:linear-gradient(180deg,var(--bg-2),var(--bg)); }
.systems-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:75px; align-items:start; }
.systems-sticky { position:sticky; top:120px; }
.systems-sticky > p:not(.eyebrow) { color:var(--muted); max-width:530px; }
.systems-sticky img { margin-top:28px; border-radius:25px; border:1px solid var(--line); box-shadow:var(--shadow); }
.system-list { border-top:1px solid var(--line); }
.system-row { display:grid; grid-template-columns:55px 1fr auto; gap:22px; align-items:start; padding:34px 0; border-bottom:1px solid var(--line); }
.system-row > span { font:700 12px var(--font-en); color:var(--accent); padding-top:5px; }
.system-row h3 { margin:0 0 8px; font-size:21px; }.system-row p { margin:0; color:var(--muted); font-size:13px; }
.system-row > b { font:600 9px var(--font-en); color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:6px 10px; }

/* Experience */
.experience { background:var(--bg); }
.experience-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:70px; }
.timeline { position:relative; }
.timeline::before { content:""; position:absolute; top:5px; bottom:5px; inset-inline-start:7px; width:1px; background:linear-gradient(var(--primary),var(--line) 80%); }
.timeline-item { position:relative; display:grid; grid-template-columns:105px 1fr; gap:25px; padding-inline-start:38px; margin-bottom:44px; }
.timeline-dot { position:absolute; inset-inline-start:0; top:7px; width:15px; height:15px; border-radius:50%; background:var(--bg); border:3px solid var(--muted); z-index:2; }
.timeline-item.featured .timeline-dot { border-color:var(--accent); box-shadow:0 0 0 7px rgba(39,214,195,.09); }
.timeline-date { color:var(--muted); font:600 10px/1.5 var(--font-en); padding-top:4px; }
.timeline-content > span { color:var(--accent); font-size:10px; font-weight:800; }.timeline-content h3 { margin:3px 0 3px; font-size:21px; }.timeline-content h4 { margin:0 0 9px; color:var(--primary-2); font-size:13px; }.timeline-content p { margin:0; color:var(--muted); font-size:13px; }
.skills-panel { border:1px solid var(--line); background:var(--surface); padding:34px; border-radius:32px; height:max-content; position:sticky; top:110px; }
.skills-header h3 { margin:0 0 30px; font-size:25px; line-height:1.45; }
.skill-group { margin-bottom:21px; }.skill-title { display:flex; justify-content:space-between; gap:12px; font:600 11px var(--font-en); margin-bottom:9px; }.skill-title b { color:var(--muted); font-size:9px; }
.skill-bar { height:6px; background:var(--surface-2); border-radius:99px; overflow:hidden; }.skill-bar i { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:99px; transition:width 1.2s ease; }.skills-panel.visible .skill-bar i { width:var(--w); }
.skill-cloud { display:flex; flex-wrap:wrap; gap:7px; margin:28px 0; }.skill-cloud span { border:1px solid var(--line); color:var(--muted); border-radius:10px; padding:7px 10px; font:500 9px var(--font-en); }
.education-box { padding:20px; background:var(--surface-2); border-radius:18px; border:1px solid var(--line); }.education-box span { color:var(--accent); font-size:10px; font-weight:800; }.education-box h4 { margin:6px 0 2px; font-size:16px; }.education-box p { margin:0; color:var(--muted); font-size:11px; }

/* Contact */
.contact { padding-top:80px; }
.contact-shell { display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; border:1px solid var(--line); border-radius:40px; padding:60px; background:radial-gradient(circle at 10% 10%,rgba(120,103,255,.16),transparent 35%),var(--surface-solid); box-shadow:var(--shadow); overflow:hidden; }
.contact-copy > p:not(.eyebrow) { color:var(--muted); max-width:500px; }
.contact-methods { display:grid; gap:12px; margin-top:30px; }
.contact-methods > a, .contact-methods > div { display:flex; align-items:center; gap:13px; }
.contact-methods > * > svg { width:42px; height:42px; padding:11px; background:var(--surface-2); border-radius:13px; color:var(--accent); }
.contact-methods div div { display:grid; }.contact-methods small { color:var(--muted); font-size:10px; }.contact-methods b { font:700 13px var(--font-en); }
.contact-form { display:grid; gap:15px; padding:27px; border:1px solid var(--line); border-radius:27px; background:color-mix(in srgb,var(--bg) 55%, transparent); }
.form-row { display:grid; grid-template-columns:repeat(2,1fr); gap:13px; }
.contact-form label { display:grid; gap:7px; color:var(--muted); font-size:11px; font-weight:700; }
.contact-form input, .contact-form select, .contact-form textarea { width:100%; border:1px solid var(--line); background:var(--surface-2); color:var(--text); border-radius:13px; outline:none; padding:13px 15px; transition:.2s; }
.contact-form textarea { resize:vertical; min-height:130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(120,103,255,.09); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color:color-mix(in srgb,var(--muted) 70%, transparent); }
.btn-full { width:100%; border:0; }

/* Footer */
.site-footer { padding:75px 0 25px; border-top:1px solid var(--line); background:var(--bg-2); }
.footer-grid { display:grid; grid-template-columns:1.5fr .7fr .7fr .8fr; gap:45px; }
.footer-brand > p { color:var(--muted); font-size:12px; max-width:360px; margin-top:18px; }
.footer-grid h4 { font-size:13px; margin:0 0 16px; }.footer-grid > div:not(.footer-brand) > a:not(.btn) { display:block; color:var(--muted); font-size:12px; margin:9px 0; transition:.2s; }.footer-grid > div > a:hover { color:var(--text); }
.footer-cta .btn { min-height:44px; padding:0 15px; font-size:11px; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding-top:22px; margin-top:45px; color:var(--muted); font-size:10px; }

/* Modal */
.project-modal { position:fixed; inset:0; z-index:5000; visibility:hidden; opacity:0; transition:.25s; }
.project-modal.open { visibility:visible; opacity:1; }
.modal-backdrop { position:absolute; inset:0; background:rgba(3,6,14,.8); backdrop-filter:blur(12px); }
.modal-panel { position:absolute; inset:4vh 4vw; max-width:1280px; margin:auto; display:grid; grid-template-columns:1.1fr .9fr; border:1px solid rgba(255,255,255,.13); border-radius:32px; background:var(--surface-solid); box-shadow:0 35px 100px rgba(0,0,0,.5); overflow:hidden; transform:translateY(30px) scale(.98); transition:.3s; }
.project-modal.open .modal-panel { transform:none; }
.modal-close { position:absolute; z-index:4; top:18px; inset-inline-end:18px; width:42px; height:42px; border-radius:13px; border:1px solid rgba(255,255,255,.15); background:rgba(7,11,20,.7); color:#fff; cursor:pointer; display:grid; place-items:center; backdrop-filter:blur(10px); }
.modal-gallery { background:var(--bg); padding:28px; min-height:100%; }
.modal-main-image { height:calc(100% - 100px); min-height:450px; display:grid; place-items:center; border-radius:24px; overflow:hidden; background:linear-gradient(135deg,#10182a,#0d2330); border:1px solid var(--line); }
.modal-main-image img { width:100%; height:100%; object-fit:contain; transition:.2s; }
.modal-thumbs { display:flex; gap:9px; overflow-x:auto; padding-top:13px; }
.modal-thumbs button { width:80px; height:62px; flex:0 0 80px; padding:3px; border-radius:11px; border:1px solid var(--line); background:var(--surface-2); cursor:pointer; overflow:hidden; opacity:.55; transition:.2s; }
.modal-thumbs button.active { opacity:1; border-color:var(--primary); }.modal-thumbs img { width:100%; height:100%; object-fit:cover; border-radius:7px; }
.modal-content { padding:58px 44px 38px; overflow-y:auto; }
.modal-status { display:inline-flex; color:var(--accent); font-size:10px; font-weight:800; padding:6px 11px; border-radius:999px; background:rgba(39,214,195,.08); border:1px solid rgba(39,214,195,.2); }
.modal-content h2 { font-size:38px; line-height:1.25; margin:18px 0 13px; }.modal-content > p { color:var(--muted); font-size:14px; }
.modal-section { margin-top:28px; }.modal-section h3 { font-size:14px; margin:0 0 13px; }.modal-section ul { margin:0; padding-inline-start:20px; color:var(--muted); font-size:12px; }.modal-section li { margin-bottom:7px; }.modal-section li::marker { color:var(--accent); }
.modal-tech { display:flex; flex-wrap:wrap; gap:7px; }.modal-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:30px; }.modal-links a { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; font-size:11px; font-weight:700; transition:.2s; }.modal-links a:first-child { background:var(--primary); color:#fff; border-color:var(--primary); }.modal-links a:hover { transform:translateY(-2px); }.modal-links svg { width:16px; }

/* Reveal */
.reveal { opacity:0; transform:translateY(26px); transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1); transition-delay:var(--delay,0ms); }
.reveal.visible { opacity:1; transform:none; }

/* Light mode tuning */
html[data-theme="light"] .profile-card, html[data-theme="light"] .floating-card { border-color:rgba(255,255,255,.85); }
html[data-theme="light"] .hero::before { opacity:.65; }
html[data-theme="light"] .project-media::after { background:linear-gradient(to top,rgba(9,14,28,.3),transparent 50%); }
html[data-theme="light"] .contact-form { background:rgba(245,247,251,.75); }

/* Responsive */
@media (max-width: 1050px) {
  .desktop-nav { display:none; }.menu-btn { display:grid; }.nav-cta { display:none; }
  .mobile-menu { position:absolute; top:75px; inset-inline:22px; padding:14px; border:1px solid var(--line); border-radius:18px; background:var(--surface-solid); box-shadow:var(--shadow); }
  .mobile-menu.open { display:grid; animation:menuIn .22s ease; }.mobile-menu a { padding:11px 13px; border-radius:10px; color:var(--muted); font-size:13px; }.mobile-menu a:hover { background:var(--surface-2); color:var(--text); }
  @keyframes menuIn { from { opacity:0; transform:translateY(-8px); } }
  .hero-grid { grid-template-columns:1fr 1fr; gap:30px; }.floating-code { inset-inline-start:-5px; }.chip-api { inset-inline-end:-4px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }.service-card p { min-height:60px; }
  .systems-layout, .experience-grid { gap:42px; }
  .contact-shell { padding:42px; gap:35px; }
  .footer-grid { grid-template-columns:1.4fr repeat(3,.8fr); gap:25px; }
}

@media (max-width: 820px) {
  .section { padding:85px 0; }
  .hero { padding-top:120px; }.hero-grid { grid-template-columns:1fr; }.hero-content { text-align:center; }.hero-description { margin-inline:auto; }.hero-actions,.hero-links { justify-content:center; }.hero-visual { min-height:540px; margin-top:15px; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }.hero-stats > div:nth-child(3) { border-inline-start:0; }.hero-stats > div { margin:7px 0; }
  .about-grid,.systems-layout,.experience-grid,.contact-shell { grid-template-columns:1fr; }
  .systems-sticky,.skills-panel { position:static; }.systems-sticky img { max-width:620px; }
  .projects-grid { grid-template-columns:1fr; }.project-media,.project-wide .project-media { height:390px; }
  .contact-shell { padding:36px; }.footer-grid { grid-template-columns:1.5fr 1fr 1fr; }.footer-cta { grid-column:1/-1; }
  .modal-panel { grid-template-columns:1fr; inset:2vh 3vw; overflow-y:auto; }.modal-gallery { min-height:auto; }.modal-main-image { min-height:380px; height:420px; }.modal-content { overflow:visible; padding:35px 28px; }
}

@media (max-width: 600px) {
  :root { --container:min(100% - 28px,1180px); --radius:22px; }
  .site-header .brand-copy { display:none; }.nav-wrap { height:72px; }.brand-mark { width:40px; height:40px; }
  .hero { padding-top:105px; }.availability { font-size:10px; }.hero h1 { font-size:43px; }.hero-kicker { font-size:12px; }.role-line { font-size:19px; }.hero-description { font-size:14px; }
  .hero-actions { display:grid; }.btn { width:100%; }.hero-links { flex-wrap:wrap; }.hero-location { width:100%; justify-content:center; margin:7px 0 0; }
  .hero-visual { min-height:470px; transform:scale(.88); margin-inline:-15px; }.profile-card { width:300px; height:410px; }.floating-code { width:225px; top:35px; }.chip-flutter { bottom:35px; }.experience-badge { bottom:5px; }
  .hero-stats { padding:15px 4px; }.hero-stats > div { padding:8px 13px; }.hero-stats strong { font-size:22px; }
  .section-heading { gap:13px; margin-bottom:37px; }.section-heading h2,.split-heading h2,.systems-sticky h2,.contact-copy h2 { font-size:33px; }.split-heading { display:block; }.split-heading > p { margin-top:15px; }
  .about-cards,.services-grid { grid-template-columns:1fr; }.mini-card { min-height:auto; }.service-card p { min-height:auto; }
  .project-filters { justify-content:flex-start; overflow-x:auto; padding-bottom:6px; margin-top:-15px; }.project-filters button { white-space:nowrap; }
  .project-media,.project-wide .project-media { height:290px; }.phone-frame { width:88px; height:172px; }.phone-only-gallery { gap:8px; inset:14% 6% 9%; }.phone-only-gallery.multi-phone .phone-only-shot { width:calc((100% - 16px) / 3); }.project-info { padding:23px; }.project-info h3 { font-size:24px; }.project-info p { min-height:auto; }
  .system-row { grid-template-columns:36px 1fr; gap:13px; }.system-row > b { grid-column:2; width:max-content; }.systems-sticky img { margin-top:20px; }
  .timeline-item { grid-template-columns:1fr; gap:7px; padding-inline-start:30px; }.timeline-date { padding:0; }.skills-panel { padding:25px; }
  .contact-shell { padding:25px; border-radius:27px; }.form-row { grid-template-columns:1fr; }.contact-form { padding:19px; }.contact-methods b { font-size:11px; }
  .footer-grid { grid-template-columns:1fr 1fr; }.footer-brand,.footer-cta { grid-column:1/-1; }.footer-bottom { display:grid; text-align:center; justify-content:center; }
  .modal-main-image { min-height:270px; height:310px; }.modal-gallery { padding:15px; }.modal-content h2 { font-size:29px; }.modal-content { padding:30px 20px; }.modal-close { top:11px; inset-inline-end:11px; }
  .cursor-glow { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}
