:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #0f151d;
  --line: #274f78;
  --text: #9cbfdf;
  --muted: #40607f;
  --bright: #dbe9ff;
  --accent: #4da3ff;
  --shadow: none;
  --radius: 0;
  --cursor-speed: 1.05s;
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.top-chrome {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 15;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.content {
  width: min(100%, 1024px);
  margin: 0 auto;
  padding: 6.5rem 1.25rem 7.5rem;
}

.panel {
  padding: 0;
  margin: 0 0 3rem;
}

.section-command {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.section.is-active .section-command::before,
.panel.is-active .section-command::before {
  content: "▋ ";
  animation: cursorBlink var(--cursor-speed) steps(1, end) infinite;
}

.hero-section {
  padding-top: 0.25rem;
}

.whoami-block {
  margin-bottom: 1.15rem;
}

.whoami-name {
  color: var(--bright);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 0.45rem;
}

.whoami-subtitle {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.whoami-readout {
  margin: 0;
  padding: 0;
  color: var(--text);
  white-space: pre-wrap;
  max-width: 58ch;
}

.boot-sequence {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.boot-line {
  opacity: 0;
  animation: bootLine 0.26s ease forwards;
}

.boot-line:nth-child(1) {
  animation-delay: 0.08s;
}

.boot-line:nth-child(2) {
  animation-delay: 0.24s;
}

.boot-line:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-title {
  margin: 0 0 1rem;
  color: var(--bright);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-copy {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--text);
}

.hero-lines {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--bright);
}

.label {
  color: var(--muted);
  display: inline-block;
  width: 7ch;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  color: var(--bright);
  background: rgba(13, 17, 23, 0.92);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  padding: 1rem;
  background: rgba(15, 21, 29, 0.72);
  border: 1px solid var(--line);
}

.skill-group h2 {
  margin: 0 0 0.85rem;
  color: var(--bright);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.tree-block {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}

.sys-info {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(15, 21, 29, 0.72);
}

.sys-row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 1rem;
  padding: 0.15rem 0;
}

.sys-row span:first-child {
  color: var(--muted);
}

.sys-row span:last-child,
.contact-value {
  color: var(--bright);
}

.status-dot {
  display: inline-block;
  color: var(--accent);
  animation: dotPulse 1.1s steps(1, end) infinite;
}

.experience-grid {
  display: grid;
  gap: 1rem;
}

.experience-card {
  background: rgba(15, 21, 29, 0.72);
  border: 1px solid var(--line);
}

.experience-frame {
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
  line-height: 1;
  font-size: 0.95rem;
}

.experience-body {
  padding: 0.95rem 1rem;
}

.experience-title {
  color: var(--bright);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.experience-meta {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.experience-list {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}

.projects-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: rgba(15, 21, 29, 0.72);
  color: var(--text);
  position: relative;
  outline: none;
}

.project-card.is-active {
  color: var(--bright);
}

.project-frame {
  position: absolute;
  left: 0;
  right: 0;
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
  line-height: 1;
  font-size: 0.95rem;
}

.project-frame-top {
  top: 0;
}

.project-frame-bottom {
  bottom: 0;
}

.project-frame-top::before {
  content: attr(data-line-top);
}

.project-frame-bottom::before {
  content: attr(data-line-bottom);
}

.project-body {
  padding: 0.95rem 1rem 1rem;
}

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.project-title {
  color: var(--bright);
  font-size: 1.1rem;
  min-width: 0;
}

.project-card.is-active .project-title::before {
  content: "> ";
  color: var(--accent);
}

.project-repo {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
  justify-self: end;
}

.project-repo:hover,
.project-repo:focus-visible {
  color: var(--bright);
  text-decoration: underline;
}

.project-copy {
  margin-bottom: 0.9rem;
  max-width: 68ch;
}

.section-note {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
}

.contact-prompt {
  margin: 0 0 1rem;
  color: var(--bright);
  white-space: pre-wrap;
}

.cursor-block {
  color: var(--accent);
  animation: cursorBlink var(--cursor-speed) steps(1, end) infinite;
}

.contact-output {
  display: grid;
  gap: 0.2rem;
}

.contact-line {
  color: var(--muted);
}

.mobile-hint {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 11;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 2.15rem;
  padding: 0 1rem;
  background: #0a0f14;
  color: var(--bright);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.status-left {
  justify-self: start;
}

.status-center {
  justify-self: center;
  color: var(--muted);
  text-align: center;
}

.status-right {
  justify-self: end;
  color: var(--accent);
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.86);
}

.help-modal {
  position: relative;
  z-index: 1;
  width: min(90vw, 840px);
  padding: 1rem;
  background: rgba(10, 15, 20, 0.98);
  color: var(--text);
}

.help-command {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.help-table {
  margin: 0;
  white-space: pre-wrap;
  color: var(--bright);
}

.help-overlay[hidden] {
  display: none;
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes dotPulse {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.28;
  }
}

@keyframes bootLine {
  from {
    opacity: 0;
    transform: translateY(0.15rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 760px) {
  .content {
    padding-inline: 1rem;
    padding-top: 5.75rem;
  }

  .statusbar {
    display: none;
  }

  .mobile-hint {
    display: block;
  }

  .top-chrome {
    top: 0.8rem;
    right: 0.85rem;
  }

  .sys-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .help-modal {
    width: min(94vw, 100%);
  }
}