:root {
  --bg: #12151a;
  --surface: #1b1f27;
  --surface-2: #21262f;
  --line: #2b303b;
  --text: #ecece4;
  --muted: #8b92a0;
  --ok: #5fd98a;
  --mint: #6addba;
  --mint-dim: #408872;
}

::selection {
  background: var(--mint);
  color: #12151a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.display {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- NAV ---------- */

.console-nav {
  background: rgba(18,21,26,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.console-nav .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.console-nav .brand .dot {
  color: var(--mint);
}

.console-nav .nav-link {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem !important;
}

.console-nav .nav-link:hover {
  color: var(--text);
}

/* ---------- HERO ---------- */

.hero {
  padding: 7.5rem 0 4rem;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow .ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95,217,138,0.6);
  animation: ping 2.2s infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(95,217,138,0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(95,217,138,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95,217,138,0);
  }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.1rem;
}

.hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

/* ---------- TELEMETRY GAUGE (signature element) ---------- */

.gauge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.gauge-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.gauge-bar span.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #3a4150;
}

.gauge-bar .title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* ---------- SKILLS TELEMETRY (signature element) ---------- */

.skill-body {
  padding: 1.6rem 1.6rem 1.4rem;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  width: 112px;
  flex: none;
}

.skill-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mint-dim), var(--mint));
}

.skill-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  width: 28px;
  text-align: right;
  flex: none;
}

.gauge-readout {
  margin-top: 0.3rem;
  border-top: 1px solid var(--line);
}

.gauge-readout .stat-item {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  text-align: center;
  background: transparent;
}

.gauge-readout .stat-item:last-child {
  border-right: none;
}

.gauge-readout .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.gauge-readout .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.15rem;
}

.gauge-readout .v.ok {
  color: var(--ok);
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .ping {
    animation: none;
  }
}

/* ---------- SECTIONS ---------- */

section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
}

.divider {
  border-top: 1px solid var(--line);
}

/* ---------- HERO AVATAR ---------- */

.profile-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--mint-dim);
  overflow: hidden;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-chip .who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.profile-chip .who .name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.profile-chip .who .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- WORK CARDS ---------- */

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}

.work-card:hover {
  border-color: var(--mint-dim);
  transform: translateY(-3px);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 2;
}

.work-media .placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.work-body {
  padding: 1.6rem;
}

.work-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--mint-dim);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.work-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.work-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.work-card .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-block;
  margin-top: 1rem;
}

.work-card:hover .arrow {
  color: var(--mint);
}

/* ---------- ABOUT ---------- */

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  display: inline-block;
  margin: 0 0.4rem 0.5rem 0;
}

.about-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- CONTACT ---------- */

.contact-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
}

.contact-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 2rem;
}

.btn-console {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  background: var(--mint);
  color: #14151a;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-weight: 500;
}

.btn-console:hover {
  background: var(--mint);
  color: #14151a;
}

.social-row a {
  color: var(--muted);
  font-size: 1.3rem;
  margin: 0 0.7rem;
}

.social-row a:hover {
  color: var(--mint);
}

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

footer .mono {
  font-size: 0.78rem;
  color: var(--muted);
}

footer .ok {
  color: var(--ok);
}

.chip:hover {
  border-color: var(--mint-dim);
  transform: translateY(-3px);
}

