/* Mugahed Bathan — profile. Midnight canvas, three role colours (Flutter blue · product violet · consulting green). */
:root {
  --bg: #070b14;
  --bg-2: #0b111e;
  --card: #0f1626;
  --card-2: #131b2e;
  --line: #1c2538;
  --line-2: #27324a;
  --text: #e9eef7;
  --text-2: #a5b0c4;
  --muted: #6d7a90;
  --c1: #54c5f8;
  --c2: #a78bfa;
  --c3: #34d399;
  --warn: #fbbf24;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --mono-filter: invert(1) brightness(1.6);
  --en: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar: 'Cairo', system-ui, 'Segoe UI', sans-serif;
  --r: 18px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fc; --bg-2: #eef2f8; --card: #ffffff; --card-2: #f4f7fb; --line: #e1e7f0; --line-2: #cfd8e5;
    --text: #0b1220; --text-2: #46536b; --muted: #6b778c;
    --c1: #0284c7; --c2: #7c3aed; --c3: #059669; --warn: #b45309;
    --shadow: 0 20px 50px -24px rgba(15, 30, 60, .25); --mono-filter: none; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f8fc; --bg-2: #eef2f8; --card: #ffffff; --card-2: #f4f7fb; --line: #e1e7f0; --line-2: #cfd8e5;
  --text: #0b1220; --text-2: #46536b; --muted: #6b778c;
  --c1: #0284c7; --c2: #7c3aed; --c3: #059669; --warn: #b45309;
  --shadow: 0 20px 50px -24px rgba(15, 30, 60, .25); --mono-filter: none; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--en); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--ar); font-size: 16.5px; line-height: 1.85; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
a { color: inherit; }
p a, .org a { color: var(--c1); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
p a:hover, .org a:hover { color: var(--c2); }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }

/* Bilingual twins: the inactive language is hidden. */
html[lang="en"] .ar, html[lang="ar"] .en { display: none !important; }
img.mono { filter: var(--mono-filter); }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--c1); color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font: 800 14px/1 var(--en); color: #fff; background: linear-gradient(135deg, #0ea5e9, #8b5cf6 60%, #10b981); letter-spacing: .02em; }
.brand-name { font-size: 15px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { padding: 8px 14px; border-radius: 10px; font-size: 14.5px; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s; }
.links a:hover, .links a.active { color: var(--text); background: var(--card); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.chip-btn, .icon-btn { display: inline-grid; place-items: center; height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 700 13.5px/1 var(--ar); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn { padding: 0; }
.chip-btn:hover, .icon-btn:hover { border-color: var(--c1); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: block; }
:root[data-theme="light"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-btn .sun { display: block; }
  :root:not([data-theme="dark"]) .icon-btn .moon { display: none; }
}
.menu-btn { display: none; gap: 5px; align-content: center; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { color: #fff; background: linear-gradient(135deg, #0ea5e9, #7c3aed); box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .6); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(14, 165, 233, .6); }
.btn.ghost { border: 1px solid var(--line-2); background: var(--card); color: var(--text); }
.btn.ghost:hover { border-color: var(--c1); transform: translateY(-2px); }
.btn.sm { padding: 10px 16px; font-size: 14px; }
html[dir="rtl"] .btn svg use[href$="i-arrow"] { transform: scaleX(-1); transform-origin: center; }

/* ── Hero ── */
.hero { position: relative; padding: 140px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; }
.g1 { width: 520px; height: 520px; background: #0ea5e9; inset-inline-end: -120px; top: 40px; opacity: .22; }
.g2 { width: 460px; height: 460px; background: #7c3aed; inset-inline-start: -160px; top: 260px; opacity: .18; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13.5px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c3); box-shadow: 0 0 0 0 var(--c3); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c3) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roles-line { margin: 14px 0 0; min-height: 1.5em; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; color: var(--text-2); }
.typed { color: var(--text); }
.caret { display: inline-block; width: 3px; height: 1.05em; margin-inline-start: 6px; vertical-align: -0.15em; background: var(--c1); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.role-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.role-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; border: 1px solid; }
.role-tags svg, .role-tags img { width: 18px; height: 18px; }
.role-tags .r1 { color: var(--c1); border-color: color-mix(in srgb, var(--c1) 35%, transparent); background: color-mix(in srgb, var(--c1) 10%, transparent); }
.role-tags .r2 { color: var(--c2); border-color: color-mix(in srgb, var(--c2) 35%, transparent); background: color-mix(in srgb, var(--c2) 10%, transparent); }
.role-tags .r3 { color: var(--c3); border-color: color-mix(in srgb, var(--c3) 35%, transparent); background: color-mix(in srgb, var(--c3) 10%, transparent); }
.lead { max-width: 60ch; margin: 24px 0 0; font-size: 17px; color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.socials { display: flex; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); transition: color .2s, border-color .2s, transform .2s; }
.socials a:hover { color: var(--c1); border-color: var(--c1); transform: translateY(-3px); }

.hero-photo { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.ring { position: absolute; inset: -14px; border-radius: 36px; background: conic-gradient(from 0deg, #0ea5e9, #8b5cf6, #10b981, #0ea5e9); animation: spin 10s linear infinite; filter: blur(.5px); opacity: .9; }
.ring::after { content: ""; position: absolute; inset: 3px; border-radius: 33px; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.photo { position: absolute; inset: 0; margin: 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float img { width: 30px; height: 30px; }
.f1 { top: 8%; inset-inline-start: -34px; }
.f2 { top: 44%; inset-inline-end: -36px; animation-delay: -1.2s; }
.f3 { bottom: 6%; inset-inline-start: -26px; animation-delay: -2.4s; }
.f4 { top: -26px; inset-inline-end: 18%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.badge-card { position: absolute; bottom: -24px; inset-inline-end: -12px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); }
.badge-card svg { width: 26px; height: 26px; color: var(--c3); }
.badge-card strong { display: block; font-size: 20px; line-height: 1; color: var(--text); }

/* ── Marquee ── */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: scroll 40s linear infinite; direction: ltr; }
.marquee:hover .track { animation-play-state: paused; }
.track ul { display: flex; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
.track li { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font: 600 15px/1 var(--en); color: var(--text-2); white-space: nowrap; }
.track img { width: 26px; height: 26px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-block: 56px 10px; }
.stats div { padding: 22px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stats strong { font: 800 2.4rem/1 var(--en); background: linear-gradient(120deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats b { font: 800 1.6rem/1 var(--en); color: var(--c2); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ── Sections ── */
.sec { padding: 96px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow > span:first-child { padding: 3px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c1) 14%, transparent); font-family: var(--en); letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card { --c: var(--c1); position: relative; padding: 30px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.role-card.c2 { --c: var(--c2); }
.role-card.c3 { --c: var(--c3); }
.role-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.role-card::after { content: ""; position: absolute; width: 240px; height: 240px; inset-inline-end: -110px; top: -110px; border-radius: 50%; background: var(--c); opacity: .08; filter: blur(30px); }
.role-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.role-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); margin-bottom: 20px; }
.role-ico svg { width: 28px; height: 28px; }
.role-card h3 { font-size: 1.35rem; font-weight: 800; }
.role-card > p { margin: 10px 0 18px; color: var(--text-2); font-size: 15px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stack-group { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.stack-group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 13px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font: 600 12.5px/1.25 var(--en); text-align: center; color: var(--text-2); transition: transform .25s, border-color .25s, box-shadow .25s, color .25s; }
.tiles li:hover { transform: translateY(-4px); border-color: var(--line-2); color: var(--text); box-shadow: 0 12px 30px -16px rgba(14, 165, 233, .5); }
.tiles img { width: 40px; height: 40px; transition: transform .3s; }
.tiles li:hover img { transform: scale(1.12) rotate(-4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chips span { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--card-2); border: 1px solid var(--line); }
.chips.sm { margin-top: 14px; }

/* Projects */
.featured { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.featured-body { padding: 38px 38px 34px; }
.featured h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin-top: 10px; }
.featured .desc { color: var(--text-2); margin: 12px 0 20px; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.parts li { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.parts strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.featured-art { position: relative; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, .35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(16, 185, 129, .3), transparent 55%), var(--card-2); border-inline-start: 1px solid var(--line); }
.mock { width: 100%; max-width: 300px; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-bar i:first-child { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-row { height: 10px; border-radius: 6px; background: var(--line-2); margin: 10px 0; }
.w70 { width: 70%; } .w90 { width: 90%; } .w60 { width: 60%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mock-cards span { height: 52px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 35%, transparent), color-mix(in srgb, var(--c2) 25%, transparent)); }
.mock-cards span:nth-child(2) { background: linear-gradient(135deg, color-mix(in srgb, var(--c3) 35%, transparent), color-mix(in srgb, var(--c1) 20%, transparent)); }
.mock-kpi { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--card); }
.mock-kpi b { font: 800 26px/1 var(--en); color: var(--c3); }
.mock-kpi em { font-style: normal; font-size: 13px; color: var(--text-2); }

.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status .dot { animation: none; }
.status.live { color: var(--c3); background: color-mix(in srgb, var(--c3) 12%, transparent); }
.status.live .dot { background: var(--c3); animation: ping 2s infinite; }
.status.dev { color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, transparent); }
.status.dev .dot { background: var(--c1); }
.status.beta { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.status.beta .dot { background: var(--warn); }
.status.work { color: var(--c2); background: color-mix(in srgb, var(--c2) 12%, transparent); }
.status.work .dot { background: var(--c2); }

.tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-row img { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); transition: transform .2s; }
.tech-row img:hover { transform: translateY(-3px); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .status { align-self: flex-start; }
.card h3 { font-size: 1.25rem; font-weight: 800; }
.card > p:not(.status):not(.chips) { margin: 0; color: var(--text-2); font-size: 14.5px; flex: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--card-2); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.card-links a:hover { border-color: var(--c1); color: var(--c1); }
.card-links svg { width: 16px; height: 16px; }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 28px; align-items: center; }
.card.wide .status { grid-row: 1; grid-column: 1; }
.card.wide h3 { grid-row: 2; grid-column: 1; }
.card.wide > p:not(.status):not(.chips) { grid-row: 1 / span 2; grid-column: 2; }
.card.wide .chips { grid-row: 1 / span 2; grid-column: 3; margin: 0; }

/* Experience */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--c1), var(--c2), var(--c3), transparent); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 34px; padding-inline-start: 44px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--c1); }
.timeline li:nth-child(2)::before { border-color: var(--c2); }
.timeline li:nth-child(n+3)::before { border-color: var(--line-2); }
.when { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--c1); }
.timeline h3 { font-size: 1.2rem; font-weight: 800; }
.org { margin: 4px 0 8px; font-size: 14.5px; color: var(--muted); }
.timeline li > p:last-child:not(.org) { margin: 0; max-width: 75ch; color: var(--text-2); font-size: 15px; }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.edu-card { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.edu-card h3 { font-size: 1.1rem; font-weight: 800; margin: 2px 0 6px; }
.edu-card p:last-child { margin: 0; color: var(--text-2); font-size: 14.5px; }
.edu-card.medal { background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 14%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--c2) 30%, var(--line)); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.qa { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.qa[open] { border-color: var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--card-2); color: var(--c1); font: 700 18px/1 var(--en); transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--text-2); font-size: 15px; }

/* Contact */
.contact { position: relative; padding: clamp(32px, 6vw, 64px); border-radius: 30px; text-align: center; background: radial-gradient(circle at 15% 0%, rgba(14, 165, 233, .22), transparent 50%), radial-gradient(circle at 90% 100%, rgba(124, 58, 237, .22), transparent 50%), var(--card); border: 1px solid var(--line); overflow: hidden; }
.contact .eyebrow { justify-content: center; }
.contact .lead { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; text-align: start; }
.c-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s; min-width: 0; }
.c-card:hover { transform: translateY(-3px); border-color: var(--c1); }
.c-card svg { grid-row: span 2; width: 26px; height: 26px; color: var(--c1); }
.c-card .lbl { font-size: 12.5px; color: var(--muted); }
.c-card .val { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.files a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.files a:hover { border-color: var(--c2); color: var(--c2); }
.files svg { width: 17px; height: 17px; }

.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--c1); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.wide { display: flex; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .links { position: absolute; top: 68px; inset-inline: 16px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: none; }
  .links.open { display: flex; }
  .nav { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero { padding-top: 110px; }
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-photo { order: -1; width: min(300px, 74vw); }
  .roles, .stack-grid, .edu { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-art { display: none; }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:last-child { grid-column: span 2; }
  .cards, .contact-grid, .parts { grid-template-columns: 1fr; }
  .featured-body, .card, .stack-group { padding: 22px; }
  .sec { padding: 72px 0; }
  .float { width: 46px; height: 46px; border-radius: 13px; }
  .float img { width: 24px; height: 24px; }
  .f1 { inset-inline-start: -14px; } .f2 { inset-inline-end: -14px; } .f3 { inset-inline-start: -10px; }
  .badge-card { inset-inline-end: 0; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; }
