:root {
  --bg: #0a0a0f;
  --fg: #e6e8ef;
  --fg-muted: #7d8597;
  --fg-dim: #475065;
  --accent: #9945ff;
  --accent-2: #14f195;
  --border: #1c2230;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ─── ambient canvas background ──────────────────────────────────── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
  mask-image: linear-gradient(
    to right,
    #000 0%,
    transparent calc(50% - 360px),
    transparent calc(50% + 360px),
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    transparent calc(50% - 360px),
    transparent calc(50% + 360px),
    #000 100%
  );
}

/* ─── main column ────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 24px 56px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
a:hover { border-bottom-color: var(--accent-2); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── hero ───────────────────────────────────────────────────────── */
.hero h1 {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero .tag {
  font-family: var(--mono);
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 4px;
}
.hero .status {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.05);
  letter-spacing: 0.04em;
}
.hero .status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(20, 241, 149, 0.6);
}
.hero .bio {
  margin-top: 22px;
  color: #c4cad8;
  font-size: 15px;
  max-width: 56ch;
}
.hero .links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
}
.hero .links a { color: var(--fg); }
.hero .links a:hover { color: var(--accent-2); }

/* ─── sections ───────────────────────────────────────────────────── */
section { margin-top: 56px; }

h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.muted-inline { color: var(--fg-muted); font-weight: 400; }

/* work */
.role { font-size: 14px; }
.role + .role { margin-top: 26px; }
.role .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.role .when {
  color: var(--fg-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.role ul { list-style: none; padding-left: 0; }
.role ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  color: #a8aebd;
  font-size: 14px;
}
.role ul li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* projects + achievements */
ul.projects {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 13px;
}
ul.projects li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 140ms ease;
  border: 1px solid transparent;
  margin: 0 -12px;
}
ul.projects li:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(153, 69, 255, 0.18);
}
ul.projects li a { color: var(--fg); }
ul.projects li a:hover { color: var(--accent-2); border-bottom-color: transparent; }
ul.projects li span { color: var(--fg-muted); font-size: 12px; }
ul.projects li .static { color: var(--fg); }

/* footer */
footer {
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* ─── motion ─────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

::selection { background: rgba(153, 69, 255, 0.35); color: white; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  main { padding: 48px 20px 40px; }
  ul.projects li { flex-direction: column; gap: 2px; padding: 6px 10px; margin: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  #bg { opacity: 0.2; }
  .hero .status .dot { animation: none; }
}
