/* =========================================================
   Akshay Raj — Portfolio
   Plain CSS. Dark-first, light theme via [data-theme="light"].
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --accent:        #2ce8b4;
  --accent-2:      #6f9bff;
  --accent-3:      #b06bff;

  --bg:            #05070d;
  --bg-2:          #080b14;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);

  --text:          #e8ecf5;
  --text-2:        #a4adc2;
  --text-3:        #6e7891;

  --shadow:        0 24px 60px -20px rgba(0, 0, 0, .75);
  --glow:          0 0 0 1px rgba(44, 232, 180, .22), 0 12px 44px -14px rgba(44, 232, 180, .38);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ff-sans: "Space Grotesk", ui-sans-serif, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --container: 1200px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

[data-theme="light"] {
  --bg:          #f5f7fb;
  --bg-2:        #eef1f8;
  --surface:     rgba(12, 18, 33, .035);
  --surface-2:   rgba(12, 18, 33, .06);
  --line:        rgba(12, 18, 33, .1);
  --line-strong: rgba(12, 18, 33, .18);

  --text:   #0d1424;
  --text-2: #4a5468;
  --text-3: #79839a;

  --accent:   #00a884;
  --accent-2: #3b63d6;

  --shadow: 0 24px 60px -26px rgba(15, 25, 50, .28);
  --glow:   0 0 0 1px rgba(0, 168, 132, .25), 0 12px 40px -16px rgba(0, 168, 132, .35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #05070d; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: #05070d; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: var(--text-2); }

/* =========================================================
   backdrop layers
   ========================================================= */
.bg-canvas {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  opacity: .55; pointer-events: none;
}
[data-theme="light"] .bg-canvas { opacity: .38; }

.bg-grid {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
  opacity: .7;
}

.bg-orb {
  position: fixed; z-index: -5; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .3;
  animation: drift 24s var(--ease) infinite alternate;
}
.bg-orb--1 { top: -14vw; right: -10vw; background: radial-gradient(circle, var(--accent), transparent 66%); }
.bg-orb--2 { bottom: -18vw; left: -12vw; background: radial-gradient(circle, var(--accent-2), transparent 66%); animation-delay: -9s; }
[data-theme="light"] .bg-orb { opacity: .22; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 232, 180, .12), transparent 62%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 14px rgba(44, 232, 180, .7);
}

/* =========================================================
   loader
   ========================================================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__shield { width: 56px; color: var(--accent); animation: pulseShield 1.6s var(--ease) infinite; }
.loader__shield svg { width: 100%; height: auto; }
.loader__bar {
  width: 190px; height: 3px; border-radius: 99px;
  background: var(--surface-2); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loadSweep 1.15s var(--ease) infinite;
}
.loader__text {
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
@keyframes pulseShield {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.1); opacity: 1; }
}
@keyframes loadSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* =========================================================
   nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #04121b;
  box-shadow: 0 8px 22px -10px var(--accent);
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { font-size: 1.02rem; }

.nav__links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 99px;
  font-size: .9rem; color: var(--text-2);
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
  border-radius: 99px; background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
}
.nav__pill.is-on { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.burger span {
  display: block; width: 16px; height: 1.8px; margin: 3.5px auto;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger.is-open span:first-child { transform: translateY(2.7px) rotate(45deg); }
.burger.is-open span:last-child  { transform: translateY(-2.6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 99px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .35s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.btn--primary {
  color: #04121b; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px -14px var(--accent);
}
.btn--primary:hover { box-shadow: 0 20px 46px -14px var(--accent); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45), transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(130%); }

.btn--ghost { color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { color: var(--accent); box-shadow: var(--glow); }

/* =========================================================
   hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 64px; align-items: center;
}

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .78rem; color: var(--text-2);
  font-family: var(--ff-mono); letter-spacing: -.01em;
  backdrop-filter: blur(8px);
}
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(44,232,180,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(44,232,180,0); }
  100% { box-shadow: 0 0 0 0 rgba(44,232,180,0); }
}

.hero__title { margin: 22px 0 10px; line-height: .95; }
.hero__name {
  display: block;
  font-size: clamp(2.9rem, 7.6vw, 6rem);
  font-weight: 700; letter-spacing: -.045em;
  background: linear-gradient(120deg, var(--text) 18%, var(--accent) 52%, var(--accent-2) 78%, var(--text) 96%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__role {
  min-height: 2em;
  font-family: var(--ff-mono);
  font-size: clamp(.95rem, 1.9vw, 1.22rem);
  color: var(--accent);
  letter-spacing: -.02em;
}
.caret {
  display: inline-block; width: 9px; height: 1.05em;
  margin-left: 3px; vertical-align: -.18em;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede {
  max-width: 58ch; margin-top: 20px;
  color: var(--text-2); font-size: 1.03rem;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--text-2);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero__meta a { transition: color .3s var(--ease); }
.hero__meta a:hover { color: var(--accent); }

/* ---------- hero visual: terminal + stack strip ---------- */
.hero__visual { position: relative; display: grid; gap: 20px; align-content: center; }

/* soft aurora behind the panel, standing in for the old portrait glow */
.hero__visual::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -22% -14%;
  background:
    radial-gradient(46% 42% at 28% 26%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(46% 42% at 76% 72%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
  filter: blur(58px);
  opacity: .7;
  animation: drift 20s var(--ease) infinite alternate;
}
[data-theme="light"] .hero__visual::before { opacity: .5; }

.terminal {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.terminal:hover { border-color: var(--line-strong); }
.terminal__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.terminal__bar i:first-child { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span {
  margin-left: 8px; font-family: var(--ff-mono);
  font-size: .68rem; color: var(--text-3);
}
.terminal__body {
  padding: 18px 20px 22px;
  font-family: var(--ff-mono); font-size: .8rem; line-height: 1.95;
  color: var(--text-2);
  min-height: 232px;
  white-space: pre-wrap; word-break: break-word;
}
.terminal__body .t-cmd { color: var(--accent); }
.terminal__body .t-ok  { color: #4ade80; }
.terminal__body .t-warn{ color: #fbbf24; }
.terminal__body .t-dim { color: var(--text-3); }
.caret--term { width: 7px; height: .95em; vertical-align: -.12em; }

.stack-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stack-strip li {
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  backdrop-filter: blur(10px);
  font-family: var(--ff-mono); font-size: .72rem; white-space: nowrap;
  color: var(--text-2);
  transition: transform .35s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.stack-strip li:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--glow);
}
.stack-strip li:nth-child(3n+2):hover { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.stack-strip li:nth-child(3n+3):hover { color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 45%, transparent); }

/* ---------- scroll hint ---------- */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px; border-radius: 99px; background: var(--accent);
  animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   stats
   ========================================================= */
.stats { padding: 10px 0 40px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; padding: 1px;
  border-radius: var(--r-lg);
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  padding: 30px 22px; text-align: center;
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  backdrop-filter: blur(10px);
  transition: background .35s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat__num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label {
  display: block; margin-top: 6px;
  font-size: .78rem; color: var(--text-2); letter-spacing: .01em;
}

/* =========================================================
   sections
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 760px; margin-bottom: 52px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--ff-mono); font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.15;
}
.section__sub { margin-top: 16px; color: var(--text-2); font-size: 1rem; max-width: 62ch; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards ---------- */
.card {
  position: relative; overflow: hidden;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(44,232,180,.09), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
  transition: transform .4s var(--ease), color .4s var(--ease), background .4s var(--ease);
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg); background: var(--accent); color: #04121b; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .92rem; }

.card--accent { border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.card--accent .card__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.about__text p { color: var(--text-2); margin-bottom: 16px; font-size: 1rem; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.about__cards { display: grid; gap: 16px; }

/* ---------- skills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 9px 17px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .85rem; color: var(--text-2);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease);
}
.filter:hover { color: var(--text); transform: translateY(-2px); border-color: var(--line-strong); }
.filter.is-active {
  color: #04121b; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
  box-shadow: 0 10px 26px -12px var(--accent);
}

.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  font-family: var(--ff-mono); font-size: .8rem; color: var(--text-2);
  transition: transform .35s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .35s var(--ease), opacity .3s, filter .3s;
  cursor: default;
}
.skill:hover {
  transform: translateY(-3px);
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--glow);
}
.skill.is-hidden {
  display: none;
}
.skill.is-enter { animation: popIn .42s var(--ease) both; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* ---------- experience ---------- */
.exp {
  padding: 34px 34px 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.exp__head {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.exp__role { font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; }
.exp__org { color: var(--text-2); font-size: .95rem; margin-top: 4px; }
.exp__date {
  padding: 7px 15px; border-radius: 99px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: var(--ff-mono); font-size: .76rem;
}

.timeline { position: relative; margin-top: 30px; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: .45;
}
.tl { position: relative; padding: 0 0 30px; }
.tl__dot {
  position: absolute; left: -30px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.tl:hover .tl__dot { transform: scale(1.3); background: var(--accent); }
.tl h4 { font-size: 1.03rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.tl p { color: var(--text-2); font-size: .93rem; }
.tl p strong { color: var(--text); font-weight: 600; }
.tl__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tl__tags span {
  padding: 4px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--ff-mono); font-size: .7rem; color: var(--text-3);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tl:hover .tl__tags span { color: var(--text-2); border-color: var(--line-strong); }

/* ---------- research ---------- */
.research {
  position: relative; overflow: hidden;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.research:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.research__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sev {
  padding: 4px 12px; border-radius: 7px;
  font-family: var(--ff-mono); font-size: .68rem;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.sev--crit { background: rgba(239, 68, 68, .16); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.sev--high { background: rgba(249, 115, 22, .16); color: #fb923c; border: 1px solid rgba(249,115,22,.35); }
.research__cve { font-family: var(--ff-mono); font-size: .74rem; color: var(--text-3); }
.research h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.research p { color: var(--text-2); font-size: .93rem; }
.research p strong { color: var(--text); }
.research__meta {
  display: grid; gap: 8px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.research__meta li {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--ff-mono); font-size: .76rem; color: var(--text-2);
}
.research__meta span {
  min-width: 68px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; font-size: .66rem;
}

.achievements { margin-top: 20px; }
.ach {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.ach svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.ach p { color: var(--text-2); font-size: .92rem; }
.ach strong { color: var(--text); font-weight: 600; }

/* ---------- credentials ---------- */
.creds {
  padding: 30px 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(10px);
}
.creds__title {
  font-family: var(--ff-mono); font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.cert {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.cert:first-of-type { border-top: 0; padding-top: 0; }
.cert__badge {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700;
}
.cert h4 { font-size: .97rem; font-weight: 600; letter-spacing: -.02em; }
.cert p { font-size: .82rem; }
.pill {
  padding: 5px 12px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--ff-mono); font-size: .7rem; color: var(--text-2);
}
.pill--ok  { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.1); }
.pill--wip { color: #fbbf24; border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.1); }

.creds__note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.creds__note p { color: var(--text-2); font-size: .88rem; }
.creds__dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- contact ---------- */
.contact { padding-bottom: 110px; }
.contact__panel {
  position: relative; overflow: hidden;
  padding: 62px 48px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 68%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact__glow {
  position: absolute; top: -55%; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  filter: blur(70px); pointer-events: none;
}
.contact__title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.15;
}
.contact__sub { margin: 16px auto 0; max-width: 56ch; color: var(--text-2); }

.contact__links {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 40px 0 36px;
  text-align: left;
}
.clink {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.clink:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: var(--glow); }
.clink__ico {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); color: var(--accent);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.clink:hover .clink__ico { background: var(--accent); color: #04121b; }
.clink__ico svg { width: 18px; height: 18px; }
.clink__body { display: grid; font-size: .84rem; font-weight: 500; min-width: 0; }
.clink__body { overflow-wrap: anywhere; }
.clink__body small {
  font-family: var(--ff-mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}

/* ---------- footer ---------- */
.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--text-3);
}

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, color .3s, border-color .3s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--line-strong); transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* =========================================================
   reveal animation
   ========================================================= */
/* Only hide content when JS is available to bring it back. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .terminal { max-width: 560px; }
  .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 92px 24px 28px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
    z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__link { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
  .nav__pill { display: none; }
  .burger { display: block; }
  .nav .btn--ghost { display: none; }
  .section { padding: 76px 0; }
  .exp { padding: 26px 22px 12px; }
  .contact__panel { padding: 46px 24px; }
}

@media (max-width: 620px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: 1fr; }
  .hero { padding: 118px 0 70px; }
  .hero__meta { flex-direction: column; gap: 12px; }
  .terminal__body { font-size: .72rem; padding: 14px 15px 18px; min-height: 200px; }
  .stack-strip li { font-size: .68rem; padding: 7px 12px; }
  .cert { grid-template-columns: auto 1fr; }
  .cert .pill { grid-column: 2; justify-self: start; }
  .to-top { right: 14px; bottom: 14px; }
}

/* =========================================================
   accessibility / motion
   ========================================================= */
@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; }
  .bg-canvas, .cursor-glow { display: none; }
}

@media print {
  .nav, .to-top, .loader, .bg-canvas, .bg-grid, .bg-orb,
  .cursor-glow, .scroll-progress, .scroll-hint, .terminal { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
