:root {
  --bg-1: #060908;
  --bg-2: #0d1713;
  --panel: rgba(8, 14, 11, 0.88);
  --text: #cdf6d6;
  --muted: #8cc69a;
  --accent: #59ff88;
  --accent-soft: rgba(89, 255, 136, 0.15);
  --border: rgba(89, 255, 136, 0.28);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  background: radial-gradient(circle at top, #163022 0%, var(--bg-2) 45%, #040605 100%);
  padding: 20px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 12, 10, 0.95) 0%, rgba(5, 8, 7, 0.95) 100%);
  box-shadow: 0 0 0 1px rgba(89, 255, 136, 0.07), 0 24px 90px rgba(0, 0, 0, 0.45);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.lights {
  display: flex;
  gap: 7px;
}

.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.red {
  background: #f87171;
}

.yellow {
  background: #fbbf24;
}

.green {
  background: #4ade80;
}

.topbar-title {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.topbar-right {
  margin-left: auto;
}

.layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 16px;
  padding: 16px;
}

.main-content,
.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.boot,
.window,
.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.boot {
  padding: 14px 16px;
}

.boot-line {
  margin: 4px 0;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 0.5s ease forwards;
}

.boot-line span {
  color: var(--accent);
}

.glow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 8px;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}

.window,
.panel {
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 0.45s ease forwards;
}

.window-head,
.panel-head {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.window-body {
  padding: 14px;
}

.window-body h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #e2ffe8;
}

.role {
  margin: 0 0 10px;
  color: var(--accent);
}

.lead,
.plain,
.job-copy,
.meta {
  line-height: 1.55;
  color: var(--text);
}

.plain {
  margin: 0;
}

.cmd {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 6px;
}

.type-line {
  margin: 0;
  min-height: 24px;
  white-space: normal;
}

.typing::after {
  content: "_";
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s steps(1, end) infinite;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: #b9ffd0;
  font-size: 12px;
}

.jobs {
  display: grid;
  gap: 12px;
}

.job {
  border: 1px solid rgba(89, 255, 136, 0.2);
  border-radius: 11px;
  padding: 10px;
  background: rgba(4, 8, 6, 0.72);
}

.job-years,
.job-title,
.job-copy,
.meta {
  margin: 0;
}

.job-years {
  color: var(--accent);
  font-size: 13px;
}

.job-title {
  margin-top: 4px;
  font-weight: 700;
  color: #d7ffe2;
}

.job-copy {
  margin-top: 6px;
}

.panel {
  padding-bottom: 10px;
}

.avatar-box {
  margin: 12px 14px;
  height: 86px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.45);
}

.meta {
  margin: 6px 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.stack-list {
  margin: 10px 14px 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.5;
}

.contact-link {
  display: block;
  margin: 10px 14px 0;
  color: #b4ffd0;
  text-decoration: none;
  word-break: break-word;
}

.contact-link:hover {
  color: var(--accent);
}

.top-gap {
  margin-top: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.35s;
}

.delay-3 {
  animation-delay: 0.55s;
}

.delay-4 {
  animation-delay: 0.75s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar-right {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .layout {
    padding: 12px;
    gap: 12px;
  }

  .window-body h2 {
    font-size: 22px;
  }

  .lead,
  .plain,
  .job-copy,
  .meta {
    font-size: 14px;
  }

  .footer {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .boot-line,
  .window,
  .panel {
    opacity: 1 !important;
    transform: none !important;
  }
}
