:root {
  --bg: #040a18;
  --bg-deep: #02050d;
  --panel: rgba(10, 24, 51, 0.76);
  --panel-solid: #091731;
  --panel-light: rgba(17, 41, 82, 0.68);
  --text: #f4f8ff;
  --muted: #96a8c7;
  --line: rgba(143, 184, 255, 0.14);
  --blue: #2b7fff;
  --blue-bright: #50c7ff;
  --blue-soft: #a4d8ff;
  --cyan: #36e6d0;
  --shadow: 0 30px 80px rgba(0, 44, 140, 0.28);
  --radius: 24px;
  --max: 1240px;
}

html[data-theme="light"] {
  --bg: #eef6ff;
  --bg-deep: #dfeeff;
  --panel: rgba(255,255,255,.78);
  --panel-solid: #ffffff;
  --panel-light: rgba(230,242,255,.86);
  --text: #07162f;
  --muted: #526782;
  --line: rgba(11, 74, 162, 0.14);
  --shadow: 0 30px 80px rgba(37, 86, 148, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 5%, rgba(35,119,255,.18), transparent 28%),
    radial-gradient(circle at 10% 42%, rgba(0,196,255,.08), transparent 25%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 22%, var(--bg));
  font-family: Inter, "Avenir Next", Avenir, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(125,166,232,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(125,166,232,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  z-index: -2;
}

::selection { background: rgba(80,199,255,.28); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg { display: block; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.page-noise { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .025; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(44,126,255,.09), transparent 68%); transform: translate(-50%,-50%); transition: opacity .2s; }

.section-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; padding: 18px 0 0; }
.nav-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 28px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(22px); border-radius: 19px; box-shadow: 0 12px 40px rgba(1,7,20,.16); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, #1845da); color: white; font-family: "Avenir Next", Inter, system-ui, sans-serif; font-weight: 700; box-shadow: 0 12px 28px rgba(33,111,255,.3); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: "Avenir Next", Inter, system-ui, sans-serif; font-size: .92rem; }
.brand-copy small { color: var(--muted); font-size: .69rem; margin-top: 5px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; color: var(--muted); font-size: .82rem; font-weight: 600; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--blue-bright); transition: right .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.theme-toggle, .nav-toggle { border: 1px solid var(--line); background: var(--panel-light); color: var(--text); cursor: pointer; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }
.theme-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 13px; padding: 0; margin-left: auto; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 5px auto; transition: .2s; }

.hero { padding-top: 88px; }
.hero-grid { min-height: 700px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.status-pill { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(72,208,255,.2); background: rgba(24,82,136,.2); color: var(--blue-soft); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(54,230,208,.1), 0 0 14px var(--cyan); animation: pulse 2s infinite; }
.eyebrow, .section-kicker { color: var(--blue-bright); font-family: "Avenir Next", Inter, system-ui, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.eyebrow { margin: 32px 0 16px; }
.hero h1 { max-width: 780px; margin: 0; font-family: "Avenir Next", Inter, system-ui, sans-serif; font-size: clamp(3.1rem, 5.7vw, 5.9rem); line-height: .99; letter-spacing: -.055em; }
.hero h1 span, .section-heading h2 span, .contact h2 span { color: transparent; background: linear-gradient(90deg, #f5fbff 3%, var(--blue-bright) 48%, #3977ff); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .hero h1 span, html[data-theme="light"] .section-heading h2 span, html[data-theme="light"] .contact h2 span { background-image: linear-gradient(90deg, #062b62, #0a7adf 55%, #3e6bff); }
.hero-lead { max-width: 690px; margin: 25px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border-radius: 14px; font-weight: 700; font-size: .9rem; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: white; background: linear-gradient(135deg, #3ec8ff, #2475ff 50%, #244ddb); box-shadow: 0 15px 35px rgba(36,115,255,.34), inset 0 1px rgba(255,255,255,.28); }
.btn-primary:hover { box-shadow: 0 20px 45px rgba(36,115,255,.42); }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: rgba(80,199,255,.4); background: var(--panel-light); }
.hero-meta { display: flex; gap: 32px; margin-top: 40px; padding-top: 27px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: end; }
.hero-meta strong { grid-row: 1 / 3; font-family: "Avenir Next", Inter, system-ui, sans-serif; font-size: 2rem; line-height: 1; }
.hero-meta strong::after { content: "+"; color: var(--blue-bright); font-size: .8em; }
.hero-meta span { max-width: 84px; color: var(--muted); font-size: .72rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }

.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; perspective: 1000px; }
.hero-visual::before { content: ""; position: absolute; width: 85%; height: 85%; border-radius: 50%; background: radial-gradient(circle, rgba(45,140,255,.22), rgba(17,78,255,.05) 48%, transparent 70%); filter: blur(5px); }
.hero-visual::after { content: ""; position: absolute; width: 510px; height: 510px; border: 1px solid rgba(91,173,255,.12); border-radius: 50%; box-shadow: inset 0 0 70px rgba(27,106,255,.05); animation: rotate 30s linear infinite; }
.system-card { position: relative; z-index: 3; width: min(100%, 520px); overflow: hidden; border: 1px solid rgba(131,194,255,.23); border-radius: 26px; background: linear-gradient(145deg, rgba(9,26,59,.95), rgba(4,13,32,.92)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08); transform: rotateY(-4deg) rotateX(2deg); transition: transform .2s ease-out; }
html[data-theme="light"] .system-card { background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(228,241,255,.94)); }
.system-topbar { height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 17px; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 .6rem "Avenir Next", Inter, system-ui, sans-serif; letter-spacing: .1em; }
.system-topbar > span { margin-right: auto; }
.system-topbar b { color: var(--cyan); font-size: .56rem; }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; }
.traffic i:nth-child(2) { background: #ffd166; }
.traffic i:nth-child(3) { background: #43d19e; }
.profile-core { display: flex; align-items: center; gap: 23px; padding: 35px 28px 30px; }
.avatar-ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; flex: 0 0 auto; overflow: visible; }
.avatar { position: relative; z-index: 2; width: 82px; height: 82px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 38% 25%, rgba(80,199,255,.30), rgba(14,34,75,.92)); border: 1px solid rgba(123,200,255,.38); box-shadow: inset 0 0 24px rgba(80,199,255,.14), 0 10px 26px rgba(3,12,34,.38); }
.avatar img { position: absolute; z-index: 4; left: 50%; top: 55%; width: 105%; height: 105%; max-width: none; display: block; object-fit: cover; object-position: center; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 12px rgba(3,12,34,.20)); }
.orbit { position: absolute; z-index: 1; inset: 5px; border: 1px solid rgba(79,184,255,.25); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; top: 8px; left: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 10px var(--blue-bright); }
.orbit-one { animation: rotate 10s linear infinite; }
.orbit-two { inset: -3px; border-style: dashed; animation: rotateReverse 16s linear infinite; }
.profile-core p { margin: 0 0 8px; color: var(--blue-bright); font: 700 .57rem "Avenir Next", Inter, system-ui; letter-spacing: .15em; }
.profile-core h2 { margin: 0; font: 700 1.35rem "Avenir Next", Inter, system-ui; }
.profile-core > div > span { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 20px 20px; }
.system-grid article { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 15px; border: 1px solid var(--line); background: rgba(15,39,78,.42); border-radius: 15px; }
html[data-theme="light"] .system-grid article { background: rgba(224,239,255,.65); }
.icon-box { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(45,126,255,.14); color: var(--blue-bright); font-weight: 700; }
.system-grid small { display: block; color: var(--muted); font-size: .54rem; letter-spacing: .08em; }
.system-grid strong { display: block; margin-top: 4px; font-size: .72rem; }
.system-grid em { grid-column: 2; color: var(--cyan); font-style: normal; font-size: .52rem; letter-spacing: .08em; }
.console-line { display: flex; align-items: center; gap: 10px; margin: 0 20px 20px; padding: 13px 15px; border: 1px solid rgba(64,218,190,.15); background: rgba(4,15,24,.58); border-radius: 12px; font-size: .64rem; overflow: hidden; }
.console-line span { color: var(--cyan); font-weight: 700; }
.console-line code { color: #a6eadd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-line i { width: 7px; height: 13px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.floating-tag { position: absolute; z-index: 5; padding: 9px 13px; border: 1px solid rgba(123,196,255,.22); border-radius: 10px; background: rgba(8,24,53,.8); box-shadow: 0 12px 35px rgba(0,27,90,.3); backdrop-filter: blur(14px); color: var(--blue-soft); font: 700 .61rem "Avenir Next", Inter, system-ui; letter-spacing: .08em; text-transform: uppercase; animation: float 5s ease-in-out infinite; }
html[data-theme="light"] .floating-tag { background: rgba(255,255,255,.86); color: #1d5cba; }
.tag-one { left: -2%; top: 18%; }
.tag-two { right: -3%; top: 30%; animation-delay: -1.4s; }
.tag-three { left: 4%; bottom: 18%; animation-delay: -2.8s; }
.tag-four { right: 4%; bottom: 11%; animation-delay: -4s; }
.tech-marquee { margin-top: 20px; overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 25px; padding: 17px 0; animation: marquee 28s linear infinite; color: var(--muted); font: 600 .72rem "Avenir Next", Inter, system-ui; letter-spacing: .06em; text-transform: uppercase; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 8px rgba(80,199,255,.8); }

.about, .expertise, .experience, .projects, .toolkit, .education, .contact { padding-top: 150px; }
.section-heading { max-width: 820px; margin-bottom: 55px; }
.section-heading h2, .contact h2 { margin: 15px 0 0; font: 700 clamp(2.35rem, 4.6vw, 4.4rem)/1.06 "Avenir Next", Inter, system-ui; letter-spacing: -.045em; }
.heading-note { max-width: 590px; color: var(--muted); line-height: 1.7; margin-top: 23px; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
.about-story { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(16,41,82,.6), rgba(8,22,47,.26)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
html[data-theme="light"] .about-story { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(226,240,255,.7)); }
.about-story::before { content: "“"; float: left; margin: -10px 14px -12px -3px; color: rgba(80,199,255,.42); font: 700 5rem/1 "Avenir Next", Inter, system-ui; }
.about-story p { color: var(--muted); line-height: 1.8; }
.about-story .large-copy { color: var(--text); font-size: 1.32rem; font-weight: 600; line-height: 1.5; }
.principles { display: flex; flex-direction: column; }
.principles article { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.principles article:first-child { padding-top: 8px; }
.principles > article > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--blue-bright); font: 700 .68rem "Avenir Next", Inter, system-ui; }
.principles h3 { margin: 0 0 8px; font: 700 1.1rem "Avenir Next", Inter, system-ui; }
.principles p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.expertise-card { position: relative; min-height: 345px; display: flex; flex-direction: column; overflow: hidden; padding: 27px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(13,33,69,.78), rgba(6,18,41,.58)); transition: transform .28s, border-color .28s, box-shadow .28s; }
html[data-theme="light"] .expertise-card { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(226,240,255,.75)); }
.expertise-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -85px; bottom: -85px; border-radius: 50%; background: radial-gradient(circle, rgba(52,139,255,.17), transparent 70%); }
.expertise-card:hover { transform: translateY(-8px); border-color: rgba(80,199,255,.32); box-shadow: 0 25px 60px rgba(0,37,111,.18); }
.expertise-card.featured { background: linear-gradient(145deg, rgba(25,80,150,.64), rgba(7,24,57,.7)); }
.card-number { position: absolute; right: 23px; top: 22px; color: rgba(155,197,255,.25); font: 700 .7rem "Avenir Next", Inter, system-ui; letter-spacing: .1em; }
.expertise-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: auto; border-radius: 16px; background: linear-gradient(145deg, rgba(80,199,255,.16), rgba(41,104,255,.15)); border: 1px solid rgba(110,190,255,.2); }
.expertise-icon svg { width: 28px; fill: none; stroke: var(--blue-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expertise-card h3 { margin: 34px 0 12px; font: 700 1.25rem/1.25 "Avenir Next", Inter, system-ui; }
.expertise-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; font-size: .89rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.chip-row span, .impact-row span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(27,68,128,.16); color: var(--blue-soft); font-size: .66rem; font-weight: 600; }
html[data-theme="light"] .chip-row span, html[data-theme="light"] .impact-row span { color: #1e5eae; background: rgba(110,174,243,.12); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 174px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--blue-bright), var(--line) 18%, var(--line) 82%, transparent); }
.timeline-item { position: relative; display: grid; grid-template-columns: 145px 1fr; gap: 62px; padding-bottom: 27px; }
.timeline-date { padding-top: 27px; color: var(--muted); font: 600 .65rem "Avenir Next", Inter, system-ui; letter-spacing: .09em; text-align: right; }
.timeline-marker { position: absolute; left: 166px; top: 29px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid rgba(80,199,255,.5); box-shadow: 0 0 0 6px rgba(34,117,255,.06); }
.timeline-marker span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 12px var(--blue-bright); }
.timeline-content { padding: 28px 30px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, rgba(14,36,75,.72), rgba(7,20,44,.52)); transition: border-color .2s, transform .2s; }
html[data-theme="light"] .timeline-content { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(229,241,255,.75)); }
.timeline-content:hover { transform: translateX(5px); border-color: rgba(80,199,255,.28); }
.role-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.role-heading p, .early-career p { margin: 0 0 9px; color: var(--blue-bright); font: 700 .63rem "Avenir Next", Inter, system-ui; letter-spacing: .1em; }
.role-heading h3, .early-career h3 { margin: 0; font: 700 1.35rem "Avenir Next", Inter, system-ui; }
.role-badge { min-width: max-content; padding: 7px 10px; border: 1px solid rgba(54,230,208,.18); border-radius: 8px; color: var(--cyan); background: rgba(54,230,208,.05); font-size: .58rem; font-weight: 700; letter-spacing: .09em; }
.timeline-content > p { margin: 19px 0 0; color: var(--muted); line-height: 1.7; }
.timeline-content ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.timeline-content li { position: relative; padding-left: 19px; }
.timeline-content li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border: 1px solid var(--blue-bright); border-radius: 2px; transform: rotate(45deg); }
.impact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.early-career { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.early-career > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.early-career span { display: block; color: var(--muted); font-size: .78rem; margin-top: 8px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 330px; display: flex; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(12,31,65,.8), rgba(5,17,38,.62)); transition: transform .25s, border-color .25s; }
html[data-theme="light"] .project-card { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,240,255,.78)); }
.project-card:hover { transform: translateY(-7px); border-color: rgba(80,199,255,.32); }
.project-large { grid-column: span 2; display: grid; grid-template-columns: .95fr 1.05fr; padding: 0; min-height: 430px; }
.project-visual { min-height: 100%; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(38,124,255,.25), transparent 55%), linear-gradient(145deg, rgba(9,31,70,.88), rgba(3,12,31,.95)); }
.crm-window { position: absolute; width: 78%; height: 65%; left: 11%; top: 18%; display: grid; grid-template-columns: 42px 1fr; border: 1px solid rgba(113,183,255,.25); border-radius: 14px; background: rgba(5,16,38,.78); box-shadow: 0 25px 55px rgba(0,21,70,.35); transform: perspective(700px) rotateY(7deg) rotateX(4deg); }
.crm-sidebar { display: flex; flex-direction: column; align-items: center; gap: 15px; padding-top: 17px; border-right: 1px solid var(--line); }
.crm-sidebar b { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg,var(--blue-bright),var(--blue)); }
.crm-sidebar i { width: 14px; height: 4px; border-radius: 4px; background: rgba(155,194,255,.2); }
.crm-main { padding: 20px 16px; }
.chart-bars { height: 52%; display: flex; align-items: end; gap: 9px; padding: 13px; border-radius: 9px; background: rgba(21,57,111,.32); }
.chart-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#4fc7ff,#286cff); box-shadow: 0 0 12px rgba(79,199,255,.18); }
.chart-bars i:nth-child(1){height:45%}.chart-bars i:nth-child(2){height:72%}.chart-bars i:nth-child(3){height:58%}.chart-bars i:nth-child(4){height:87%}.chart-bars i:nth-child(5){height:67%}
.crm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 9px; }
.crm-cards span { height: 45px; border: 1px solid var(--line); border-radius: 7px; background: rgba(20,49,92,.4); }
.integration-node { position: absolute; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: rgba(11,35,75,.92); border: 1px solid rgba(101,190,255,.3); color: var(--blue-bright); font: 700 .73rem "Avenir Next", Inter, system-ui; box-shadow: 0 10px 25px rgba(0,31,97,.3); }
.n1{left:6%;top:12%}.n2{right:4%;top:20%}.n3{left:2%;bottom:15%}.n4{right:9%;bottom:8%}
.project-copy { display: flex; flex-direction: column; padding: 28px; }
.project-topline { display: flex; align-items: center; justify-content: space-between; color: var(--blue-bright); font: 700 .59rem "Avenir Next", Inter, system-ui; letter-spacing: .11em; }
.project-topline b { color: rgba(164,216,255,.28); }
.project-card h3 { margin: 21px 0 13px; font: 700 1.35rem/1.25 "Avenir Next", Inter, system-ui; }
.project-large h3 { font-size: 1.7rem; }
.project-card p { margin: 0 0 25px; color: var(--muted); line-height: 1.7; font-size: .9rem; }
.project-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: auto; border-radius: 17px; border: 1px solid rgba(88,181,255,.22); background: linear-gradient(145deg, rgba(52,145,255,.2), rgba(45,88,255,.11)); color: var(--blue-bright); font: 700 .95rem "Avenir Next", Inter, system-ui; }

.toolkit-board { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 23px; overflow: hidden; background: rgba(8,23,50,.5); }
html[data-theme="light"] .toolkit-board { background: rgba(255,255,255,.67); }
.toolkit-column { padding: 28px 24px 31px; }
.toolkit-column + .toolkit-column { border-left: 1px solid var(--line); }
.toolkit-column h3 { margin: 0 0 22px; color: var(--blue-bright); font: 700 .67rem "Avenir Next", Inter, system-ui; letter-spacing: .1em; text-transform: uppercase; }
.toolkit-column div { display: flex; flex-direction: column; gap: 11px; }
.toolkit-column span { color: var(--muted); font-size: .87rem; transition: color .2s, transform .2s; }
.toolkit-column span:hover { color: var(--text); transform: translateX(4px); }

.education-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.education-list { border-top: 1px solid var(--line); }
.education-list article { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.education-list article > span { color: var(--blue-bright); font: 700 .7rem "Avenir Next", Inter, system-ui; letter-spacing: .08em; }
.education-list h3 { margin: 0; font: 700 1.05rem/1.4 "Avenir Next", Inter, system-ui; }
.education-list p { margin: 7px 0 0; color: var(--muted); font-size: .83rem; }
.certifications { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.certifications h3 { margin: 0 0 10px; color: var(--blue-bright); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.certifications p { line-height: 1.7; }

.contact { padding-bottom: 115px; }
.contact-card { position: relative; overflow: hidden; padding: 76px clamp(28px, 7vw, 88px); border: 1px solid rgba(98,184,255,.22); border-radius: 30px; background: radial-gradient(circle at 82% 25%, rgba(48,137,255,.2), transparent 35%), linear-gradient(135deg, rgba(18,58,117,.7), rgba(6,19,44,.85)); box-shadow: var(--shadow); }
html[data-theme="light"] .contact-card { background: radial-gradient(circle at 82% 25%, rgba(48,137,255,.16), transparent 35%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(218,237,255,.92)); }
.contact-card h2 { position: relative; z-index: 2; max-width: 850px; }
.contact-card > p:not(.section-kicker) { position: relative; z-index: 2; max-width: 650px; color: var(--muted); line-height: 1.7; }
.contact-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }
.contact-note { position: relative; z-index: 2; margin-top: 25px; color: var(--muted); font-size: .74rem; }
.contact-note code { color: var(--blue-soft); }
.contact-orbit { position: absolute; right: -120px; top: -110px; width: 440px; height: 440px; border: 1px solid rgba(88,186,255,.13); border-radius: 50%; }
.contact-orbit span { position: absolute; inset: 55px; border: 1px dashed rgba(88,186,255,.13); border-radius: 50%; }
.contact-orbit span:nth-child(2) { inset: 112px; }
.contact-orbit span:nth-child(3) { inset: 180px; background: rgba(54,134,255,.15); box-shadow: 0 0 70px rgba(54,134,255,.2); }

.site-footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.back-to-top { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; background: var(--panel); color: var(--muted); font: 700 .72rem "Avenir Next", Inter, system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.back-to-top span { color: var(--blue-bright); font-size: 1rem; line-height: 1; transition: transform .2s ease; }
.back-to-top:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(80,199,255,.4); background: var(--panel-light); box-shadow: 0 12px 28px rgba(36,115,255,.14); }
.back-to-top:hover span { transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .09s; }
.delay-2 { transition-delay: .18s; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(54,230,208,0), 0 0 18px var(--cyan); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotateReverse { to { transform: rotate(-360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 850px; }
  .hero-visual { min-height: 580px; }
  .about-grid { gap: 40px; }
  .expertise-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .project-large { grid-column: span 2; }
  .toolkit-board { grid-template-columns: repeat(2,1fr); }
  .toolkit-column:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .toolkit-column:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .section-shell, .nav-shell { width: min(100% - 30px, var(--max)); }
  .site-header { padding-top: 12px; }
  .nav-shell { position: relative; }
  .nav-toggle { display: block; }
  .theme-toggle { margin-left: 0; }
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% + 9px); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(20px); box-shadow: 0 24px 50px rgba(0,12,40,.3); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .22s; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 13px 12px; }
  .nav-links a::after { display: none; }
  .nav-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.8rem); }
  .about, .expertise, .experience, .projects, .toolkit, .education, .contact { padding-top: 110px; }
  .about-grid, .education-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; padding-left: 35px; }
  .timeline-date { text-align: left; padding-top: 0; }
  .timeline-marker { left: -1px; top: 4px; }
  .project-large { grid-template-columns: 1fr; }
  .project-visual { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .brand-copy { display: none; }
  .hero-grid { gap: 20px; }
  .hero-visual { min-height: 520px; }
  .system-card { transform: none; }
  .system-grid { grid-template-columns: 1fr; }
  .profile-core { padding-inline: 20px; }
  .floating-tag { display: none; }
  .hero-meta { gap: 18px; justify-content: space-between; }
  .hero-meta div { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-meta strong { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .expertise-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-large { grid-column: span 1; }
  .early-career { grid-template-columns: 1fr; }
  .early-career > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .role-heading { flex-direction: column; }
  .toolkit-board { grid-template-columns: 1fr; }
  .toolkit-column + .toolkit-column { border-left: 0; border-top: 1px solid var(--line); }
  .contact-card { border-radius: 23px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

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

/* Brand image upgrade */
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 46px; filter: drop-shadow(0 10px 18px rgba(43,127,255,.28)); }
.footer-brand .brand-logo { width: 44px; height: 44px; }
@media (max-width: 560px) { .brand-logo { width: 40px; height: 40px; flex-basis: 40px; } }
