/* ---------- tokens ---------- */
:root {
  --bg: #f5f7fb;
  --bg-alt: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #0b1324;
  --text-2: #334155;
  --muted: #5a6a80;
  --border: #e1e7f0;
  --border-strong: #cdd6e3;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --gold: #a16207;
  --gold-soft: rgba(234, 179, 8, 0.12);
  --ok: #15803d;
  --chip: #f1f5fb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -18px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 28px 50px -24px rgba(15, 23, 42, 0.3);
  --header-bg: rgba(245, 247, 251, 0.82);

  --navy: #0a1226;
  --navy-2: #0f1d3d;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --header-h: 68px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #060b16;
  --bg-alt: #091121;
  --surface: #0d1628;
  --surface-2: #111c33;
  --text: #e8eef8;
  --text-2: #c2cee0;
  --muted: #8d9db5;
  --border: #1b2842;
  --border-strong: #2a3b5c;
  --accent: #60a5fa;
  --accent-ink: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.1);
  --gold: #f5c451;
  --gold-soft: rgba(245, 196, 81, 0.1);
  --ok: #4ade80;
  --chip: #121e36;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(6, 11, 22, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; }
.mono { font-family: var(--mono); }

svg:not(.hero-flow) { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .contact-card :focus-visible { outline-color: #93c5fd; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease, border-color .25s ease;
}
.nav { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.7);
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); }
.nav-links .nav-cta { margin-left: 6px; color: #fff; background: var(--accent); font-weight: 600; padding: 8px 14px; }
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { color: #fff; background: var(--accent-ink); }
:root[data-theme="dark"] .nav-links .nav-cta { background: #2563eb; }
:root[data-theme="dark"] .nav-links .nav-cta:hover { background: #3b82f6; }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.menu-open .nav-toggle .icon-close { display: block; }
.menu-open .nav-toggle .icon-menu { display: none; }

/* transparent while over the dark hero */
.site-header.on-hero:not(.menu-open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.on-hero:not(.menu-open) .brand { color: #fff; }
.site-header.on-hero:not(.menu-open) .nav-links a:not(.nav-cta) { color: rgba(226, 232, 240, 0.78); }
.site-header.on-hero:not(.menu-open) .nav-links a:not(.nav-cta):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-header.on-hero:not(.menu-open) .icon-btn { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.16); }
.site-header.on-hero:not(.menu-open) .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.site-header.on-hero .nav-cta { background: #2563eb; }

@media (max-width: 1119px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--text-2); }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary svg:last-child { transition: transform .2s ease; }
.btn-primary:hover svg:last-child { transform: translateX(2px); }
.btn-glass { color: #e8eef8; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.btn-outline { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-outline:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong)); }
.btn-small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[hidden], .section-caption[hidden] { display: none; }
.btn-small svg { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #e8eef8;
  background: linear-gradient(180deg, #081022 0%, var(--navy) 55%, #0c1830 100%);
  padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(150px, 12.6vw, 186px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 82% 18%, rgba(59, 130, 246, 0.26), transparent 62%),
    radial-gradient(40% 50% at 8% 85%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(35% 40% at 90% 95%, rgba(245, 196, 81, 0.1), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
}
.hero-flow {
  position: absolute; z-index: -1; bottom: 0; left: 50%; transform: translateX(-50%);
  width: clamp(660px, 100%, 1600px); height: auto; pointer-events: none;
}
.flow-label { font: 600 11px var(--mono); letter-spacing: 0.16em; opacity: 0.8; }
.stage rect { fill: #0c1934; stroke-width: 1.4; }
.stage text { font: 600 12px var(--mono); letter-spacing: 0.12em; text-anchor: middle; }
.stage-bronze rect { stroke: #e0995e; } .stage-bronze circle { fill: #e0995e; } .stage-bronze text { fill: #f0b583; }
.stage-silver rect { stroke: #cbd5e1; } .stage-silver circle { fill: #cbd5e1; } .stage-silver text { fill: #e2e8f0; }
.stage-gold rect { stroke: #f5c451; } .stage-gold circle { fill: #f5c451; } .stage-gold text { fill: #fde68a; }
.flow-dots circle { fill: #7dd3fc; filter: drop-shadow(0 0 4px rgba(125, 211, 252, 0.8)); }
@media (prefers-reduced-motion: no-preference) {
  .flow-chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow 3.6s ease-in-out infinite alternate; }
  .flow-chart .bar:nth-child(2) { animation-delay: .3s; }
  .flow-chart .bar:nth-child(3) { animation-delay: .6s; }
  .flow-chart .bar:nth-child(4) { animation-delay: .9s; }
  .flow-chart .bar:nth-child(5) { animation-delay: 1.2s; }
  .flow-lines-dash use { animation: dash 2.4s linear infinite; }
}
@keyframes bar-grow { from { transform: scaleY(0.72); } to { transform: scaleY(1); } }
@keyframes dash { to { stroke-dashoffset: -48; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); align-items: center; gap: var(--s7); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font: 500 13px var(--mono); color: #b4c2d8;
  background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.22);
}
.hero-eyebrow svg { width: 15px; height: 15px; color: #7dd3fc; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; color: #fff;
}
.hero-role { margin-top: 14px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; color: #d6e4ff; }
.hero-role .at { color: #60a5fa; font-weight: 700; margin: 0 2px; }
.hero-tagline {
  margin-top: 18px;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff;
}
.hero-tagline .gold {
  background: linear-gradient(90deg, #fde68a 0%, #f5c451 45%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.hero-intro { margin-top: 16px; max-width: 60ch; font-size: 1.06rem; line-height: 1.7; color: #b3c1d6; }
.hero-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cred {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.13);
}
.cred-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cred-aws .cred-dot { background: #FF9900; box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.18); }
.cred-gcp .cred-dot { background: #4285F4; box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.22); }
.cred-ieee .cred-dot { background: #5cc8f2; box-shadow: 0 0 0 3px rgba(92, 200, 242, 0.2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-portrait { display: flex; justify-content: flex-end; }
.portrait { position: relative; width: clamp(220px, 23vw, 300px); aspect-ratio: 1; }
.portrait::before {
  content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.38), rgba(14, 165, 233, 0.12) 45%, transparent 68%);
}
.portrait-ring {
  position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 210deg, #60a5fa, #22d3ee, #f5c451, #e0995e, #60a5fa);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.portrait img {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid #0b1530; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-ring { animation: spin 16s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-portrait { order: -1; justify-content: flex-start; }
  .portrait { width: 132px; }
  .portrait-ring { inset: -6px; }
  .portrait img { border-width: 4px; }
  .hero h1 { margin-top: 16px; }
}
@media (max-width: 479px) {
  .hero-ctas .btn-primary { flex: 1 1 100%; }
  .hero-ctas .btn-glass { flex: 1 1 0; padding: 0 12px; }
  .cred { font-size: 12.5px; padding: 6px 11px; }
}

/* ---------- proof strip ---------- */
.proof { padding: var(--s6) 0 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.proof-tile {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.proof-icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft);
}
.proof-icon svg { width: 20px; height: 20px; }
.proof-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.proof-label { margin-top: 8px; font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.proof-note { margin-top: 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 959px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .proof-grid { gap: 12px; }
  .proof-tile { flex-direction: column; gap: 12px; padding: 16px; }
  .proof-icon { width: 36px; height: 36px; border-radius: 10px; }
  .proof-value { font-size: 1.6rem; }
  .proof-label { font-size: 0.88rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.proof + .section { padding-top: clamp(56px, 7vw, 88px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { margin-top: 12px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.04rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--chip); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.badge-gold { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--text-2); background: var(--chip); border: 1px solid var(--border);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.about-text p { font-size: 1.08rem; line-height: 1.8; color: var(--text-2); }
.about-text p + p { margin-top: 18px; }
.about-text p:first-child { font-size: 1.2rem; color: var(--text); font-weight: 500; }
.facts { padding: 26px; }
.facts-title { font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dl { display: grid; gap: 18px; margin-top: 18px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
.fact dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: 2px; font-weight: 600; line-height: 1.45; }
@media (max-width: 859px) { .about-grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- experience ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(96, 165, 250, 0.08));
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute; left: -30px; top: 30px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-soft);
}
.exp-card { padding: clamp(22px, 3vw, 32px); }
.exp-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.exp-logo { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3b82f6, #1e40af); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.8); }
.exp-logo svg { width: 24px; height: 24px; }
.exp-head h3 { font-size: 1.35rem; font-weight: 700; }
.exp-company { margin-top: 2px; color: var(--muted); font-weight: 500; }
.exp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.exp-points { display: grid; gap: 12px; margin-top: 22px; }
.exp-points li { position: relative; padding-left: 22px; color: var(--text-2); line-height: 1.65; }
.exp-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.exp-highlight {
  margin-top: 24px; padding: 20px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.exp-hl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.exp-hl-head h4 { font-size: 1.08rem; font-weight: 700; }
.exp-hl-period { font: 500 13px var(--mono); color: var(--muted); }
.exp-highlight p { margin-top: 10px; color: var(--text-2); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 16px; }
.flow li {
  position: relative; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  font: 500 12.5px var(--mono); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
}
.flow li:not(:last-child)::after { content: "92"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font); }
@media (max-width: 559px) {
  .timeline { padding-left: 0; }
  .timeline::before, .tl-dot { display: none; }
  .exp-meta { margin-left: 0; width: 100%; }
}

/* ---------- projects ---------- */
.proj-group + .proj-group { margin-top: clamp(40px, 6vw, 64px); }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 1.15rem; font-weight: 700; }
.group-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
.group-icon svg { width: 18px; height: 18px; }

.browser {
  overflow: hidden; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #f87171; }
.browser-bar > span:nth-child(2) { background: #fbbf24; }
.browser-bar > span:nth-child(3) { background: #4ade80; }
.browser-url {
  margin-left: 10px; min-width: 0; max-width: 72%; padding: 2px 10px; border-radius: 6px;
  font: 500 11px var(--mono); color: var(--muted); background: var(--bg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; background: var(--surface-2); }

.project-featured { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); overflow: hidden; }
.pf-media {
  position: relative; display: flex; align-items: center; padding: clamp(18px, 3vw, 36px);
  background: radial-gradient(80% 80% at 20% 10%, rgba(59, 130, 246, 0.35), transparent 60%), linear-gradient(160deg, #0a1226, #13264d);
}
.pf-media .browser { width: 100%; border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.pf-body { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px); }
.pf-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pf-body h3 { margin-top: 12px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.pf-desc { margin-top: 10px; color: var(--text-2); line-height: 1.7; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.stage-chip { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid; }
.stage-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.stage-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stage-note { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.stage-bronze { border-color: rgba(205, 127, 50, 0.4); background: rgba(205, 127, 50, 0.07); }
.stage-bronze .stage-name { color: #a85a1f; }
.stage-silver { border-color: rgba(100, 116, 139, 0.38); background: rgba(148, 163, 184, 0.1); }
.stage-silver .stage-name { color: #55657c; }
.stage-gold { border-color: rgba(202, 138, 4, 0.42); background: rgba(234, 179, 8, 0.09); }
.stage-gold .stage-name { color: #9a6700; }
:root[data-theme="dark"] .stage-bronze .stage-name { color: #e8a26a; }
:root[data-theme="dark"] .stage-silver .stage-name { color: #d5dde8; }
:root[data-theme="dark"] .stage-gold .stage-name { color: #f5c451; }
.pf-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 20px 0; }
.pf-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pf-points svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); stroke-width: 2.6; }

.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.link-code {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent);
  padding: 8px 12px; margin: -8px -12px; border-radius: 10px; transition: background-color .2s ease;
}
.link-code:hover { background: var(--accent-soft); }
.link-code svg { width: 17px; height: 17px; }
.link-code svg:last-child { width: 15px; height: 15px; transition: transform .2s ease; }
.link-code:hover svg:last-child { transform: translate(2px, -2px); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.section-caption { margin-top: 6px; font-size: 14px; color: var(--muted); }
.ci { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--ok); }
.ci svg { width: 14px; height: 14px; stroke-width: 2.8; }

.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project:hover, .project-featured:hover, .project-more:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.project-featured { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project .browser { margin: 14px 14px 0; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.project-kicker { font: 600 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project h4 { margin-top: 6px; font-size: 1.28rem; font-weight: 700; }
.project-body > p:not(.project-kicker) { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.project .chips { margin-top: 16px; }
.project-more {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
  padding: 32px; border-style: dashed; border-color: var(--border-strong);
  background: radial-gradient(90% 70% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-more .more-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1f2937, #0b1324); }
:root[data-theme="dark"] .project-more .more-icon { background: linear-gradient(135deg, #334155, #1e293b); }
.project-more .more-icon svg { width: 26px; height: 26px; }
.project-more h4 { font-size: 1.28rem; font-weight: 700; }
.project-more p { color: var(--muted); font-size: 15px; }
.project-more .link-code { margin-top: 4px; }
@media (max-width: 1099px) {
  .project-featured { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  .proj-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .pf-points { grid-template-columns: 1fr; }
  .project-more { padding: 24px; }
}

/* ---------- publications ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pub { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 30px); overflow: hidden; }
.pub::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #00629B, #38bdf8); }
.pub-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ieee { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: #00629B; }
.pub-abbr { font: 600 13px var(--mono); color: var(--accent); }
.pub-role { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pub h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.pub-venue { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.pub-meta svg { width: 15px; height: 15px; }
.pub-meta span + svg { margin-left: 10px; }
.pub-summary { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.results { margin-top: 18px; }
.results-title { font: 600 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.results ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.results li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.results strong { grid-row: span 2; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.results span { font-size: 13.5px; font-weight: 600; }
.results em { font-style: normal; font-size: 12px; color: var(--muted); }
.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 22px; }
.doi { font-size: 12.5px; color: var(--accent); word-break: break-all; border-bottom: 1px solid transparent; }
.doi:hover { border-bottom-color: currentColor; }
@media (max-width: 899px) { .pub-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .results ul { grid-template-columns: 1fr; } }

/* ---------- certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cert { --tone: #FF9900; position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 30px); overflow: hidden; }
.cert-gcp { --tone: #4285F4; }
.cert::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 40%, transparent)); }
.cert::after { content: ""; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%); pointer-events: none; }
.cert-head { display: flex; gap: 16px; align-items: flex-start; }
.cert-mark {
  width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 14px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
}
.cert-issuer { font-size: 13px; font-weight: 600; color: var(--muted); }
.cert h3 { margin-top: 4px; font-size: 1.22rem; font-weight: 700; line-height: 1.35; }
.cert-code { margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.cert-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.cert-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cert-meta dd { margin-top: 4px; font-weight: 600; }
.cert-id { grid-column: 1 / -1; }
.cert-id dd { padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; word-break: break-all; background: var(--surface-2); border: 1px solid var(--border); }
@media (max-width: 799px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- background ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bg-card { position: relative; padding: clamp(22px, 3vw, 30px); }
.bg-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; }
.bg-icon svg { width: 24px; height: 24px; }
.bg-trophy { color: var(--gold); background: var(--gold-soft); }
.bg-cap { color: var(--accent); background: var(--accent-soft); }
.bg-label { margin-top: 18px; font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bg-card h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 700; }
.bg-card h3 + p { margin-top: 6px; color: var(--text-2); }
.bg-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.bg-meta svg { width: 15px; height: 15px; }
.gpa { position: absolute; top: clamp(22px, 3vw, 30px); right: clamp(22px, 3vw, 30px); text-align: right; }
.gpa strong { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.gpa span { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 799px) { .split { grid-template-columns: 1fr; } }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill-card { padding: 22px; }
.skill-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.02rem; font-weight: 700; }
.skill-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
.skill-sub { margin: 14px 0 8px; font: 600 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.skill-card h3 + .skill-sub { margin-top: 0; }
@media (max-width: 959px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.section-contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: var(--s6);
  padding: clamp(28px, 5vw, 60px); border-radius: 24px; color: #e8eef8;
  background: linear-gradient(140deg, #0a1226 0%, #0f1f45 60%, #13306a 100%);
  border: 1px solid rgba(96, 165, 250, 0.2); box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(245, 196, 81, 0.12), transparent 60%);
}
.kicker-light { color: #93c5fd; }
.contact-card h2 { margin-top: 12px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.contact-copy > p:not(.kicker):not(.contact-mail) { margin-top: 14px; max-width: 52ch; color: #b3c1d6; font-size: 1.05rem; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.contact-mail a { color: #bfdbfe; font-size: 15px; border-bottom: 1px dashed rgba(191, 219, 254, 0.5); }
.contact-mail a:hover { border-bottom-style: solid; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #e2e8f0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }
.copy-btn svg { width: 14px; height: 14px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.contact-actions .btn { width: 100%; }
@media (max-width: 799px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .contact-actions .btn { width: auto; flex: 1 1 140px; }
  .contact-actions .btn-primary { flex-basis: 100%; }
}

/* ---------- footer ---------- */
.site-footer { padding: 26px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 6px; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background-color .2s ease, color .2s ease; }
.icon-link:hover { color: var(--accent); background: var(--accent-soft); }
.footer-top { margin-left: 8px; font-weight: 600; color: var(--text-2); }
.footer-top:hover { color: var(--accent); }

.noscript { max-width: 640px; margin: 120px auto; padding: 0 16px; }

/* ---------- reveal ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
