:root {
  color-scheme: dark;
  --background: #101310;
  --surface: #151a16;
  --text: #e8eee8;
  --muted: #929d93;
  --line: #303a32;
  --green: #7ca783;
  --green-dark: #315b3a;
  --mono: "DM Mono", monospace;
  --sans: Manrope, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 6vw, 88px);
}
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -.08em; }
.wordmark span, .hero h1 span, .section-heading h2 span { color: var(--green); }
.header-link { color: var(--muted); font-size: 12px; }
.hero {
  position: relative;
  display: flex;
  min-height: min(780px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 86px;
  text-align: center;
}
.hero-kicker, .scroll-cue {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .13em;
}
.hero h1 {
  margin: 24px 0 38px;
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1;
}
.terminal {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid #29322b;
  border-radius: 10px;
  background: #121713;
  box-shadow: 0 24px 90px #0005, 0 0 55px #315b3a12;
  text-align: left;
  animation: terminal-enter 800ms cubic-bezier(.2,.7,.2,1) both;
}
.terminal-bar { display: flex; height: 42px; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid #252d27; }
.terminal-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #39433b; }
.terminal-bar small { margin-left: 8px; color: #879187; font: 10px var(--mono); }
.terminal-body { min-height: 88px; display: flex; align-items: center; overflow: hidden; margin: 0; padding: 20px clamp(14px, 4vw, 28px); font: clamp(12px, 2.5vw, 15px) var(--mono); white-space: pre; }
.code-muted { color: #718074; }
.code-function { color: #91b89a; }
.code-string { color: #c1d8a5; }
.cursor { display: inline-block; width: 7px; height: 1.1em; margin-left: 3px; background: var(--green); vertical-align: middle; animation: blink 1s steps(2, start) infinite; }
.scroll-cue { position: absolute; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 8px; }
.scroll-cue span { width: 1px; height: 25px; background: linear-gradient(var(--green), transparent); }
.section-wrap { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.skills { padding-top: 112px; padding-bottom: 120px; border-top: 1px solid #202720; }
.section-heading { margin-bottom: 38px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 500; letter-spacing: -.065em; }
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill-group { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.skill-group h3 { display: flex; gap: 12px; margin: 0 0 25px; font-size: 13px; font-weight: 500; }
.skill-group h3 span { color: var(--green); font: 10px var(--mono); }
.skill-list { display: grid; gap: 19px; }
.skill-item { display: grid; gap: 8px; }
.skill-label { display: flex; justify-content: space-between; gap: 12px; color: #cbd5cb; font-size: 11px; }
.skill-label span:last-child { color: #9bc5a0; font: 500 11px var(--mono); text-shadow: 0 0 12px #6b9b704d; }
.skill-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.skill-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 900ms cubic-bezier(.2,.7,.2,1);
}
.skill-item.is-visible .skill-fill { width: var(--skill-level); }
@keyframes blink { to { visibility: hidden; } }
@keyframes terminal-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .site-header { padding: 22px 24px; }
  .hero { min-height: 88svh; }
  .hero h1 { margin-bottom: 30px; }
  .skills { padding-top: 78px; padding-bottom: 84px; }
  .section-heading { margin-bottom: 38px; text-align: center; }
  .skill-groups { grid-template-columns: 1fr; }
  .skill-group { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.header-link .contact-icon { width: 16px; height: 16px; margin-left: 8px; vertical-align: middle; }
