:root {
  --accent: #5e8c6a;
  --accent-dark: #466b51;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-tint: #eef4f0;
  --border: #e6e9e6;
  --border-soft: #d9e6dc;
  --text: #1b1f23;
  --text-muted: #5b6572;
  --text-faint: #9aa0a6;
  --mesh-rgb: 94, 140, 106;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

#site-mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
button { cursor: pointer; font-family: 'IBM Plex Mono', monospace; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.blink-cursor { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  z-index: 10;
}
header .brand { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 600; letter-spacing: 0.5px; text-decoration: none; color: var(--text); }
header .brand .dot { color: var(--accent); }
header nav { display: flex; gap: 28px; flex-wrap: wrap; }
header nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-decoration: none; color: var(--text-muted);
  position: relative; padding-bottom: 4px;
}
header nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.2s ease;
}
header nav a:hover::after { width: 100%; }
header nav a.active { color: var(--text); }
header nav a.active::after { width: 100%; }

main { max-width: 880px; margin: 0 auto; padding: 24px; }
section { padding: 24px 0; }
.page-header { padding: 56px 0 8px; }
.page-header .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; }
.page-header h1 { margin: 10px 0 0; font-size: 36px; line-height: 1.2; font-weight: 600; }

.hero { padding: 72px 0 40px; position: relative; border-radius: 12px; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.2; font-weight: 600; }
.hero .welcome { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 620px; }
.hero .cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; padding: 11px 20px;
  text-decoration: none; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 600; border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(94, 140, 106, 0.3); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }

.featured {
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.featured .title { font-size: 15px; font-weight: 600; }
.featured .desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

h2.section-title { margin: 0 0 18px; font-size: 24px; font-family: 'IBM Plex Mono', monospace; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.tab:hover { transform: translateY(-1px); }
.tab.active { background: var(--accent); color: #ffffff; border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: cardIn 0.4s ease both;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(94, 140, 106, 0.14); border-color: var(--accent); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card .badge {
  display: inline-flex; align-self: flex-start; padding: 4px 10px;
  background: var(--surface-tint); border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent);
}
.card .name { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; }
.card .desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex-grow: 1; }
.card .card-footer { font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.4; }
.card .link { color: var(--accent); text-decoration: none; }
.card .pending { color: var(--text-faint); }
a.card { text-decoration: none; color: inherit; cursor: pointer; }

.stack-heading { display: flex; align-items: baseline; gap: 10px; margin: 36px 0 16px; }
.stack-heading .eyebrow { margin: 0; }
.stack-heading::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.stack-heading:first-child { margin-top: 0; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.skill-chip:hover { border-color: var(--accent); color: var(--text); }

.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--surface); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 140, 106, 0.12);
}
.contact-form textarea { resize: vertical; }
.btn-send {
  align-self: flex-start; padding: 11px 22px; background: var(--accent); color: #ffffff;
  border: none; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(94, 140, 106, 0.3); }
.contact-direct { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.contact-direct .label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.contact-direct a { font-family: 'IBM Plex Mono', monospace; text-decoration: none; }
.contact-email { font-size: 14px; color: var(--accent); }
.contact-social { font-size: 13px; color: var(--text-muted); }
.form-status { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); min-height: 16px; }

footer {
  max-width: 880px; margin: 0 auto; padding: 24px 24px 56px;
  border-top: 1px solid var(--border); text-align: center;
}
footer .credit { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .card, .tab, .btn-primary, .btn-secondary { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .blink-cursor { animation: none !important; }
}
