:root {
  --bg: #07060d;
  --bg2: #0e0c18;
  --fg: #ece9f5;
  --muted: #9a95ad;
  --line: rgba(255, 255, 255, .08);
  --v: #8b5cf6;
  --c: #22d3ee;
  --p: #f472b6;
  --grad: linear-gradient(100deg, #a78bfa 0%, #22d3ee 50%, #f472b6 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--body);
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { color: #fff; font-weight: 600; }
em { font-style: normal; }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: .04em; }
::selection { background: var(--v); color: #fff; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 6px; }

/* ---------- FX layers ---------- */
#shader, #particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#shader { z-index: -3; opacity: .9; }
#particles { z-index: -2; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-5%,4%)} 40%{transform:translate(3%,-6%)} 60%{transform:translate(-7%,2%)} 80%{transform:translate(5%,5%)} }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* cursor */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.5);
  mix-blend-mode: difference; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; border-color: transparent; }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__inner { text-align: center; }
.loader__name { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 9vw, 6rem); letter-spacing: .08em; display: flex; overflow: hidden; }
.loader__name span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader__name span:nth-child(2){animation-delay:.06s}.loader__name span:nth-child(3){animation-delay:.12s}.loader__name span:nth-child(4){animation-delay:.18s}.loader__name span:nth-child(5){animation-delay:.24s}.loader__name span:nth-child(6){animation-delay:.3s}
@keyframes up { to { transform: translateY(0); } }
.loader__bar { height: 1px; background: var(--line); margin: 1.2rem auto .8rem; width: min(320px, 70vw); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.loader__count { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad); transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(7, 6, 13, .55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.logo-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.nav > nav { margin-left: auto; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; font-size: .92rem; }
.nav__links a { color: var(--muted); transition: color .3s; position: relative; font-family: var(--mono); font-size: .82rem; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.nav__burger i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 15px; } .nav__burger i:last-child { top: 23px; }
.nav-open .nav__burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav__burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #0a0812; background-size: 200% 100%; animation: shift 6s linear infinite; }
.btn--primary::before { background: #fff; }
@keyframes shift { to { background-position: 200% 0; } }
.btn--ghost { border: 1px solid rgba(255,255,255,.18); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: #0a0812; }
.btn--sm { padding: .6rem 1.15rem; border: 1px solid rgba(255,255,255,.18); font-size: .85rem; }
.btn--sm::before { background: #fff; } .btn--sm:hover { color: #0a0812; }
.magnetic { will-change: transform; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 9rem var(--pad) 5rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero__status { display: inline-flex; align-items: center; gap: .7rem; color: var(--muted); margin-bottom: 2rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; width: fit-content; background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 15vw, 13.5rem); line-height: .88; letter-spacing: -.045em; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.split { display: inline-block; }
.split .ch { display: inline-block; transform: translateY(110%) rotate(8deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); }
.split.in .ch { transform: none; }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.outline .ch { transition: transform 1.1s var(--ease), color .5s, -webkit-text-stroke-color .5s; }
.outline .ch:hover { color: var(--c); -webkit-text-stroke-color: var(--c); text-shadow: 0 0 40px rgba(34,211,238,.5); }
.hero__role { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2rem; font-weight: 500; }
.scramble-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: .95em; background: var(--c); margin-left: 6px; vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 620px; color: var(--muted); margin-top: 1.2rem; font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: var(--pad); display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.hero__scroll i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--c); animation: scan 2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.hero__orbit { position: absolute; right: calc(var(--pad) * .6); top: 50%; width: min(38vw, 520px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; animation: spin 30s linear infinite; }
.orbit--2 { inset: 14%; animation-duration: 22s; animation-direction: reverse; border-style: dashed; }
.orbit--3 { inset: 30%; animation-duration: 16s; border-color: rgba(139,92,246,.25); }
.orbit span { position: absolute; top: -.7em; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .7rem; color: var(--c); padding: .2rem .6rem; background: var(--bg); border: 1px solid rgba(34,211,238,.35); border-radius: 999px; box-shadow: 0 0 20px rgba(34,211,238,.25); }
.orbit--2 span { color: var(--p); border-color: rgba(244,114,182,.35); box-shadow: 0 0 20px rgba(244,114,182,.25); top: auto; bottom: -.7em; }
.orbit--3 span { color: #c4b5fd; border-color: rgba(139,92,246,.4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.4rem 0; overflow: hidden; background: rgba(255,255,255,.015); transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 3rem); font-weight: 600; white-space: nowrap; }
.marquee__track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.marquee__track b { color: var(--v); font-size: .6em; align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(6rem, 14vh, 10rem) var(--pad); position: relative; }
.section__label { color: var(--c); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; }
.section__label::before { content: ""; width: 32px; height: 1px; background: var(--c); }
.section__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 2.5rem; max-width: 16ch; }
.section__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .split .ch { opacity: 1; transform: none; }
.no-js .loader { display: none; }
.no-js body.is-loading { overflow: auto; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about p { color: var(--muted); margin-bottom: 1.2rem; max-width: 60ch; }
.stats { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .85rem; }

.terminal { background: rgba(14, 12, 24, .7); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; backdrop-filter: blur(12px); box-shadow: 0 40px 80px -30px rgba(139,92,246,.35), inset 0 1px 0 rgba(255,255,255,.06); transform-style: preserve-3d; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; } .terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: auto; color: var(--muted); font-size: .72rem; }
.terminal__body { padding: 1.4rem; min-height: 340px; font-size: .84rem; line-height: 1.75; white-space: pre-wrap; color: #cfcae0; }
.terminal__body .k { color: var(--c); } .terminal__body .s { color: #a3e635; } .terminal__body .m { color: var(--muted); } .terminal__body .p { color: var(--p); }
.terminal__body .cur { display: inline-block; width: 8px; height: 1.1em; background: var(--c); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }

/* Timeline */
.timeline { position: relative; max-width: 980px; padding-left: 3rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 7px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--tl, 0)); background: var(--grad); box-shadow: 0 0 12px var(--c); }
.tl { position: relative; margin-bottom: 3rem; }
.tl__dot { position: absolute; left: -3rem; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--v); z-index: 1; transition: background .5s, box-shadow .5s; }
.tl.in .tl__dot { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 6px rgba(34,211,238,.12), 0 0 20px var(--c); }
.tl__when { color: var(--c); margin-bottom: .6rem; }
.tl__card { padding: 1.8rem 2rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.tl__card h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.tl__org { color: var(--p); font-size: .92rem; margin-bottom: .8rem; }
.tl__card p { color: var(--muted); }

.spotlight { position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.16), transparent 40%); }
.spotlight:hover::before { opacity: 1; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spotlight:hover::after { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chips li { font-family: var(--mono); font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: #c9c4da; background: rgba(255,255,255,.03); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; perspective: 1200px; }
.project {
  position: relative; padding: 2.2rem; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; min-height: 360px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s;
}
.project::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -140px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .18; transition: opacity .5s, transform .8s var(--ease); }
.project:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.project:hover::before { opacity: .35; transform: scale(1.2); }
.project__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%); opacity: 0; transition: opacity .3s; }
.project:hover .project__glare { opacity: 1; }
.project__top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: auto; transform: translateZ(30px); }
.project__num { font-size: 1rem; color: var(--accent); }
.project h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.1; margin: 3rem 0 1rem; transform: translateZ(50px); }
.project p { color: var(--muted); font-size: .97rem; transform: translateZ(30px); }
.project .chips { transform: translateZ(40px); }

/* Skills */
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skillset { padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); }
.skillset h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(139,92,246,.15); color: #c4b5fd; font-family: var(--mono); font-size: .9rem; }
.skillset ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.skillset li { padding: .45rem .85rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .9rem; transition: transform .3s var(--ease), border-color .3s, color .3s; }
.skillset li:hover { transform: translateY(-3px); border-color: var(--c); color: var(--c); }
.certs__title { font-family: var(--display); font-size: 1.6rem; margin: 4.5rem 0 1.2rem; }
.certs { border-top: 1px solid var(--line); }
.cert { display: flex; gap: 2rem; align-items: center; padding: 1.3rem .5rem; border-bottom: 1px solid var(--line); transition: background .4s, padding .4s var(--ease); }
.cert:hover { background: rgba(255,255,255,.025); padding-left: 1.5rem; }
.cert__year { color: var(--c); min-width: 3.5rem; }
.cert b { display: block; font-weight: 500; font-size: 1.05rem; }
.cert div span { color: var(--muted); font-size: .88rem; }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.5rem; color: var(--muted); }
.lang { padding: .4rem 1rem; border-radius: 999px; border: 1px solid rgba(244,114,182,.35); color: #fbcfe8; }

/* Contact */
.contact { text-align: center; padding-bottom: 8rem; }
.contact .section__label { justify-content: center; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 9vw, 8rem); line-height: .95; letter-spacing: -.04em; margin-bottom: 2rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split.grad { background: none; color: inherit; }
.grad .ch { background: var(--grad); background-size: 900% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 2.5rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.email-pill { display: inline-flex; align-items: center; gap: 1rem; padding: .95rem 1.4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); transition: border-color .3s; }
.email-pill span { font-size: .95rem; }
.email-pill em { font-family: var(--mono); font-size: .7rem; padding: .25rem .6rem; border-radius: 999px; background: var(--c); color: #04131a; }
.email-pill:hover { border-color: var(--c); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer a:hover { color: var(--c); }

.toast { position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 200%); opacity: 0; visibility: hidden; z-index: 300; padding: .8rem 1.4rem; border-radius: 999px; background: #fff; color: #0a0812; font-weight: 500; font-size: .9rem; transition: transform .6s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__orbit { opacity: .35; width: 70vw; right: -20vw; }
  .about__grid { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav .btn--sm { display: none; }
  .nav__burger { display: block; z-index: 2; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; background: rgba(7,6,13,.96); backdrop-filter: blur(20px); clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); margin: 0; }
  .nav__links a { font-family: var(--display); font-size: 2.2rem; color: #fff; }
  .nav-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .projects, .skills__grid { grid-template-columns: 1fr; }
  .project { min-height: 0; }
  .timeline { padding-left: 2.2rem; }
  .tl__dot { left: -2.2rem; }
  .tl__card { padding: 1.4rem; }
  .cert { gap: 1rem; }
  .hero__scroll { display: none; }
}

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

/* ---------- Highlights strip ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--pad); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.02); backdrop-filter: blur(8px); overflow: hidden; }
.hl { padding: 2rem 1.6rem; border-right: 1px solid var(--line); position: relative; }
.hl:last-child { border-right: 0; }
.hl::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 40px; height: 2px; background: var(--grad); }
.hl b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl span { color: var(--muted); font-size: .92rem; }

/* ---------- Services ---------- */
.svc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc { padding: 2rem 1.7rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); transition: transform .5s var(--ease), border-color .4s; }
.svc:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.4); }
.svc__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 1.6rem; background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.2)); color: #fff; border: 1px solid rgba(255,255,255,.1); }
.svc h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: .7rem; }
.svc p { color: var(--muted); font-size: .95rem; }

/* skills 2x2 + AI highlight */
.skills__grid { grid-template-columns: repeat(2, 1fr); }
.skillset--ai { border-color: rgba(139,92,246,.35); background: linear-gradient(160deg, rgba(139,92,246,.10), rgba(34,211,238,.04)); }
.skillset--ai .ico { background: var(--grad); color: #0a0812; }
.skillset--ai li { border-color: rgba(139,92,246,.3); }
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.2); }

@media (max-width: 1100px) { .svc__grid { grid-template-columns: repeat(2, 1fr); } .highlights { grid-template-columns: repeat(2, 1fr); } .hl:nth-child(2) { border-right: 0; } .hl:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .svc__grid, .skills__grid { grid-template-columns: 1fr; } }

/* Perf: hero copy is painted immediately (under the intro overlay) so LCP isn't delayed; it only slides in. */
.hero .reveal { opacity: 1; }
