:root {
  --bg: #0b1311;
  --bg-deep: #070c0b;
  --surface: #111c19;
  --surface-2: #16241f;
  --line: rgba(190, 255, 225, 0.08);
  --line-strong: rgba(190, 255, 225, 0.16);
  --text: #c2cec9;
  --text-bright: #ecf3ef;
  --muted: #8a9a93;
  --accent: #00ff88;
  --accent-soft: rgba(0, 255, 136, 0.1);
  --accent-line: rgba(0, 255, 136, 0.35);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.icon { width: 1em; height: 1em; flex: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 300; padding: 8px 12px; border-radius: 6px; background: var(--surface); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 17, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-bright); font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand svg { width: 28px; height: 28px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 15px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links .nav-resume { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-family: var(--mono); font-size: 14px; }

.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--text-bright);
    font-size: 20px;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; background: var(--accent-soft); border-color: var(--accent); }
.btn .icon { width: 16px; height: 16px; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-solid:hover { background: #5cffb0; border-color: #5cffb0; color: var(--bg); }
.btn-lg { padding: 15px 24px; font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag { padding: 3px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text-bright); font-size: 14.5px; }

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.site-footer { border-top: 1px solid var(--line); padding-block: 26px 34px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

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