/* ---------- Theme tokens: ice silver · deep aubergine · marigold ---------- */
:root, [data-theme="light"] {
  --bg: #dfe4e9;          /* ice silver */
  --surface: #f7f9fb;
  --surface-2: #e8ecf0;
  --ink: #24091f;         /* near-black aubergine */
  --muted: #5f5263;
  --soft: #948a97;
  --line: rgba(58, 15, 52, .12);
  --dots: rgba(58, 15, 52, .09);
  --accent: #3a0f34;      /* deep aubergine */
  --accent-ink: #ffffff;
  --tint: #fbefc7;        /* pale marigold */
  --tint-2: #ece4ee;      /* pale aubergine */
  --warm: #eaaa00;        /* marigold: highlights and fills only, never text on light */
  --ok: #2f9e6b;
  --cat-llm: #3a0f34;
  --cat-rag: #c98a00;
  --cat-agents: #7a3a73;
  --cat-voice: #b5475f;
  --cat-web: #2f7d78;
  --cat-front: #a8659c;
  --cat-devops: #5d6b7a;
  --shadow: 0 1px 2px rgba(36, 9, 31, .05), 0 14px 34px -14px rgba(36, 9, 31, .2);
  --shadow-lg: 0 2px 4px rgba(36, 9, 31, .05), 0 30px 60px -24px rgba(58, 15, 52, .3);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #1b0a19;          /* aubergine night */
  --surface: #271224;
  --surface-2: #331a2f;
  --ink: #f3eef2;
  --muted: #bfb2bd;
  --soft: #8f828d;
  --line: rgba(243, 238, 242, .1);
  --dots: rgba(243, 238, 242, .06);
  --accent: #eaaa00;      /* marigold glows on aubergine */
  --accent-ink: #1b0a19;
  --tint: rgba(234, 170, 0, .14);
  --tint-2: rgba(221, 227, 232, .08);
  --warm: #c9d3db;        /* ice silver */
  --ok: #5fcf97;
  --cat-llm: #e2b6da;
  --cat-rag: #f2c14e;
  --cat-agents: #c58fbe;
  --cat-voice: #f08aa2;
  --cat-web: #7cc7c0;
  --cat-front: #d7a6cf;
  --cat-devops: #a9b6c3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root {
  --display: "Sora", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: min(1160px, calc(100% - 40px));
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main { overflow-x: hidden; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.approx { font-family: var(--body); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: ping 2s infinite; flex-shrink: 0; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 40px; }
h2 em, .statement em, .cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent); }

/* ---------- Progress + floating nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--warm)); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: var(--wrap); display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform .45s var(--ease), background-color .4s;
}
.nav.tuck { transform: translate(-50%, -130%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.mono-badge {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
.mono-badge.sm { width: 28px; height: 28px; font-size: 10.5px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.round-btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.round-btn.big { width: 48px; height: 48px; }
.round-btn.big .ic { width: 18px; height: 18px; }
[data-theme="light"] .ic-sun, [data-theme="dark"] .ic-moon { display: none; }
.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.pill-accent:hover { box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.pill-ink { background: var(--ink); color: var(--bg); }
.pill-line { border-color: var(--line); background: var(--surface); }
.pill-line:hover { border-color: var(--accent); color: var(--accent); }
.pill-sm { padding: 9px 16px; font-size: 13.5px; }
.pill-white { background: #fff; color: #24091f; }
.pill-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.pill-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.eyebrow b { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.eyebrow.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.eyebrow.light b { background: #fff; color: var(--accent); }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  width: var(--wrap); margin: 0 auto; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 120px 0 70px;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500;
}
.hero-name { font-size: clamp(46px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 24px 0 16px; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.word { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease) forwards; }
.mask:nth-child(2) .word { animation-delay: .14s; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); font-size: 1.08em; }
@keyframes wordUp { to { transform: none; } }
.hero-lead { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.02em; }
.rotator { display: inline-block; position: relative; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: bottom; }
.rot-word { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; line-height: 1.13; color: var(--accent); letter-spacing: 0; }
[data-theme="light"] .rot-word, [data-theme="light"] .statement em {
  background-image: linear-gradient(transparent 62%, rgba(234, 170, 0, .5) 62%, rgba(234, 170, 0, .5) 92%, transparent 92%);
  background-repeat: no-repeat; padding: 0 .06em;
}
.rot-word.out { animation: rotOut .45s var(--ease) forwards; }
.rot-word.in { animation: rotIn .55s var(--ease) forwards; }
@keyframes rotOut { to { transform: translateY(-110%); opacity: 0; } }
@keyframes rotIn { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-text { max-width: 540px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--soft); }

/* Hero: radial map of the resume (skills → projects, roles and tools) */
.hero-visual { position: relative; padding: 18px 0 30px; min-width: 0; }
.hero-copy { min-width: 0; }
.constellation { position: relative; }
#constellation { display: block; width: 100%; height: auto; overflow: visible; }
#constellation .orbit { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 7; }
#constellation .spin { transform-box: view-box; transform-origin: 300px 280px; animation: orbitSpin 60s linear infinite; }
#constellation .spin.rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
#constellation .sat { fill: var(--accent); opacity: .5; }
#constellation .edge { fill: none; stroke: var(--line); stroke-width: 1.3; transition: stroke .3s, stroke-opacity .3s; }
#constellation .edge.hot { stroke: var(--c); stroke-opacity: .7; }
#constellation .node { cursor: default; }
#constellation .node > :first-child { transition: fill .3s, stroke .3s, transform .3s; }
#constellation .area polygon { fill: var(--surface); stroke: var(--c); stroke-width: 1.6; }
#constellation .area.hot polygon { fill: color-mix(in srgb, var(--c) 14%, var(--surface)); }
#constellation .leaf rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
#constellation .leaf.project rect { fill: color-mix(in srgb, var(--c) 12%, var(--surface)); stroke: var(--c); }
#constellation .leaf.work rect { fill: var(--ink); stroke: var(--ink); }
#constellation .leaf.hot rect { stroke: var(--c); }
#constellation text { font-family: var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#constellation .area text { font-weight: 500; letter-spacing: .04em; }
#constellation .leaf.tech text { fill: var(--muted); }
#constellation .leaf.project text { font-weight: 500; }
#constellation .leaf.work text { fill: var(--bg); font-weight: 500; }
#constellation .core-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: coreRipple 3s ease-out infinite; }
#constellation .core-ring.r2 { animation-delay: 1.5s; }
@keyframes coreRipple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
#constellation .core-title { font-family: var(--display); font-weight: 800; fill: #fff; letter-spacing: -.02em; }
#constellation .core-sub { fill: #fff; opacity: .85; letter-spacing: .08em; }
#constellation .legend text { text-anchor: start; fill: var(--muted); }
#constellation .pulse { fill: var(--c); }
.float-chip {
  position: absolute; z-index: 2; padding: 9px 14px; border-radius: 14px; font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip b { font-family: var(--display); color: var(--ink); margin-right: 4px; }
.chip-a { top: 2px; right: 6%; }
.chip-b { bottom: 0; left: 4%; animation-delay: -2s; }
.chip-c { bottom: 0; right: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { width: var(--wrap); margin: 0 auto; padding: 110px 0; position: relative; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-top h2 { margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.statement { font-size: clamp(30px, 3.8vw, 48px); margin: 0; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 16px; margin-top: 56px; }
.tile {
  padding: 26px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile b { display: block; font-family: var(--display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tile > span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.tile-ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.tile-ink > span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tile-tint { background: var(--tint); border-color: transparent; }
.tile-tint b { color: var(--accent); }

/* Experience: big heading + clean rows */
.big-head { text-align: center; margin-bottom: 56px; }
.big-title { font-size: clamp(54px, 11vw, 156px); font-weight: 800; letter-spacing: -.055em; line-height: .9; text-transform: uppercase; margin: 6px 0 0; }
.exp-list { max-width: 1000px; margin: 0 auto; }
.exp-row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); }
.exp-row:first-child { border-top: 0; }
.exp-when { padding-top: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.now-pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; letter-spacing: .08em; vertical-align: 1px; }
.exp-row h3 { font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; letter-spacing: -.015em; }
.exp-org { margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.exp-desc { margin-top: 12px; max-width: 680px; color: var(--muted); }
.exp-points { list-style: none; display: grid; gap: 9px; max-width: 720px; margin-top: 14px; }
.exp-points li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted); }
.exp-points li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.exp-row .chips { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--ink); }
.date-pill {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.date-pill.accent { background: var(--tint); color: var(--accent); }

/* Projects: cards that stack up one by one as you scroll */
.stack { position: relative; }
.stack-slot { position: sticky; top: 96px; height: 86vh; }
.stack-slot:last-child { height: auto; padding-bottom: 40px; }
.pcard {
  position: relative; top: calc(var(--n) * 28px); transform-origin: top center; will-change: transform;
  padding: 26px; border-radius: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.p-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 22px; padding: 4px 6px 0; }
.p-num {
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 104px); line-height: .82; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--warm)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-title { flex: 1; min-width: 220px; padding-bottom: 4px; }
.p-title h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; margin-top: 4px; }
.p-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-visual { position: relative; min-height: 340px; display: grid; place-items: center; overflow: hidden; border-radius: 24px; }
.p-body { padding: 6px 8px; display: flex; flex-direction: column; gap: 14px; }
.p-body > p { color: var(--muted); font-size: 15.5px; }
.facts { list-style: none; display: grid; gap: 9px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.facts li { font-size: 14px; color: var(--muted); }
.facts b { font-family: var(--display); font-weight: 700; color: var(--ink); margin-right: 6px; letter-spacing: -.01em; }
.badge-float {
  position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px;
  background: var(--surface); color: var(--accent); box-shadow: var(--shadow);
}

.v-voice { background: linear-gradient(140deg, var(--tint), var(--tint-2)); }
.wave { display: flex; align-items: center; gap: 6px; height: 110px; }
.wave i { width: 7px; height: 100%; border-radius: 7px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, var(--warm))); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .95s; }
.wave i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.3s; }
.wave i:nth-child(4n) { animation-delay: -.6s; }
.wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
.bubble {
  position: absolute; max-width: 64%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.b-user { bottom: 24px; left: 22px; border-bottom-left-radius: 4px; }
.b-ai { top: 62px; right: 22px; border-bottom-right-radius: 4px; background: var(--accent); color: var(--accent-ink); animation-delay: -3s; }

.q { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.q .ic { width: 13px; height: 13px; color: var(--soft); }
.v-rag { background: linear-gradient(140deg, var(--tint-2), var(--tint)); }

.rag-demo { width: 84%; display: grid; gap: 14px; }
.q.big { min-height: 44px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; }
.q.big span { overflow: hidden; text-overflow: ellipsis; }
.rag-answer { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.rag-answer .sk { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.rag-answer .w80 { width: 80%; }
.verified { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); font-size: 12px; font-weight: 500; }
.verified .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.verified b { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.rag-bars { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.rag-bars div { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.rag-bars i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.rag-bars i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--warm)); }
.rag-bars b { font-family: var(--display); color: var(--ink); text-align: right; }
.v-graph { background: linear-gradient(140deg, var(--tint-2), var(--tint)); }
.mini-graph { width: 88%; overflow: visible; }
.mini-graph .e { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
.mini-graph .e.loop { stroke: var(--warm); }
@keyframes dash { to { stroke-dashoffset: -22; } }
.mini-graph .n rect { fill: var(--surface); stroke: var(--accent); stroke-opacity: .45; stroke-width: 1.4; animation: nodeGlow 2.8s ease-in-out infinite; animation-delay: var(--d); }
.mini-graph .n.end rect { stroke-opacity: 1; }
.mini-graph .n text { font-family: var(--mono); font-size: 11px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
@keyframes nodeGlow { 0%, 35%, 100% { fill: var(--surface); } 15% { fill: var(--tint); stroke-opacity: 1; } }

.v-site { background: linear-gradient(140deg, var(--tint), var(--tint-2)); }

.mock { width: 88%; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); animation: float 8s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.mock-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--soft); }
.mock-shot { display: block; }
.mock-shot img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.pcard:hover .mock-shot img { transform: scale(1.03); }
.sk { height: 10px; border-radius: 6px; background: var(--surface-2); }
.w60 { width: 60%; height: 14px; } .w40 { width: 40%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.mock-cards span { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(140deg, #ffd9bd, #ffb38a); }
.mock-cards span:nth-child(2) { background: linear-gradient(140deg, #e6dcff, #c9b8ff); }
.mock-cards span:nth-child(3) { background: linear-gradient(140deg, #d6f5e4, #a9e8c6); }
.mock-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 12px; border-radius: 999px; background: var(--warm); color: #fff; font-size: 12px; font-weight: 600; }
.mock-btn .ic { width: 13px; height: 13px; stroke-width: 2.4; }

/* Skills: tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--muted); transition: all .25s var(--ease);
}
.tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.skill-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 28px; border-radius: 26px; min-height: 180px; align-content: flex-start;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.skill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; background: var(--surface-2);
  font-size: 14.5px; font-weight: 500; animation: pop .45s var(--ease) both; animation-delay: calc(var(--j) * 18ms);
  transition: background .2s, color .2s;
}
.skill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.skill:hover { background: var(--tint); color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.edu-card {
  position: relative; overflow: hidden; padding: 32px; border-radius: 26px; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; min-height: 280px;
}
.edu-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%); opacity: .7; }
.edu-card .kicker { color: #f3c13a; }
[data-theme="dark"] .edu-card { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .edu-card p { color: var(--muted); }
[data-theme="dark"] .edu-card .kicker { color: var(--accent); }
.edu-card h3 { font-size: clamp(22px, 2.3vw, 28px); position: relative; z-index: 1; }
.edu-card p { color: color-mix(in srgb, var(--bg) 70%, transparent); position: relative; z-index: 1; }
.icon-circle { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); position: relative; z-index: 1; margin-bottom: auto; }
.icon-circle .ic { width: 22px; height: 22px; }
.icon-circle.sm { width: 42px; height: 42px; margin: 0; background: var(--tint); color: var(--accent); }
.icon-circle.sm .ic { width: 19px; height: 19px; }
.cert-list { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 26px; }
.cert { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.cert + .cert { border-top: 1px solid var(--line); }
.cert > div { flex: 1; }
.cert h4 { font-size: 17px; letter-spacing: -.015em; }
.cert p { font-size: 14px; color: var(--muted); }

/* Contact CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) clamp(22px, 6vw, 80px);
  border-radius: 32px; color: #fff;
  background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .14), transparent 60%), radial-gradient(520px 320px at 90% 110%, rgba(234, 170, 0, .32), transparent 65%), linear-gradient(135deg, #1f071b 0%, #3a0f34 55%, #5a2150 100%);
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(34px, 5.4vw, 66px); margin: 6px auto 18px; max-width: 900px; color: #fff; position: relative; z-index: 1; }
.cta h2 em { color: #f3c13a; }
.cta > p { max-width: 560px; margin: 0 auto; color: rgba(255, 255, 255, .82); font-size: 17px; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; position: relative; z-index: 1; }
.round-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.round-btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.cta-email { margin-top: 20px; font-family: var(--mono); font-size: 13.5px; color: rgba(255, 255, 255, .7); position: relative; z-index: 1; }
.cta-rings { position: absolute; inset: 0; pointer-events: none; }
.cta-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); translate: -50% -50%; animation: ring 6s ease-out infinite; }
.cta-rings i:nth-child(1) { width: 300px; height: 300px; }
.cta-rings i:nth-child(2) { width: 300px; height: 300px; animation-delay: -2s; }
.cta-rings i:nth-child(3) { width: 300px; height: 300px; animation-delay: -4s; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }

/* Footer */
.footer { width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.footer .brand { color: var(--ink); }
.to-top:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .brand-name { display: none; }
  .nav-links a { padding: 8px 11px; }
  .chip-c { display: none; }
}
@media (max-width: 920px) {
  .menu-btn { display: grid; }
  .nav { border-radius: 26px; flex-wrap: wrap; row-gap: 0; }
  .nav-links {
    order: 3; width: 100%; flex-direction: column; gap: 2px; margin: 0; max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease), padding .3s;
  }
  .nav-links.open { max-height: 360px; padding: 6px 0 4px; }
  .nav:has(.nav-links.open) { background: var(--surface); }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
  .nav-actions { margin-left: auto; }
  .brand-name { display: inline; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 116px; }
  .about-grid, .cred-grid { grid-template-columns: 1fr; gap: 30px; }
  .stack-slot { position: static; height: auto; margin-bottom: 18px; }
  .pcard { top: 0; }
  .p-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .p-visual { min-height: 260px; }
}
@media (max-width: 600px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 15px; }
  .nav .pill-sm span { display: none; }
  .nav { gap: 10px; }
  .nav-actions { gap: 6px; }
  .brand { font-size: 14px; gap: 8px; }
  .nav .pill-sm { padding: 0; width: 40px; height: 40px; }
  .section { padding: 84px 0; }
  .hero-name { font-size: clamp(42px, 13vw, 60px); }
  .hero-ctas .pill { flex: 1 1 auto; }
  .float-chip { font-size: 12px; padding: 7px 11px; }
  .rag-demo { width: 90%; gap: 10px; }
  .rag-bars div { grid-template-columns: 92px 1fr 30px; font-size: 11px; }
  .hero-visual { padding-left: 0; padding-right: 0; }
  .chip-b { left: 0; }
  .bento { gap: 12px; }
  .tile { padding: 20px 18px; }
  .exp-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .exp-when { padding-top: 0; }
  .pcard { padding: 16px; border-radius: 26px; }
  .p-head { padding: 4px 4px 0; }
  .p-actions { width: 100%; }
  .p-body { padding: 4px; }
  .bubble { font-size: 12.5px; max-width: 76%; }
  .skill-cloud { padding: 18px; }
  .cert-list { padding: 4px 18px; }
  .cert { flex-wrap: wrap; }
  .footer { flex-direction: column; align-items: flex-start; }
}

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

@media (max-width: 400px) {
  .brand-name { display: none !important; }
}
