:root {
  --bg: #1d2021;
  --card-bg: #3c3836;
  --card-border: #665c54;
  --fg: #fbf1c7;
  --fg-muted: #a89984;
  --accent: #b8bb26;
  --orange: #fe8019;
  --red: #fb4934;
  --yellow: #fabd2f;
  --green: #b8bb26;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

/* hero */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
}

.terminal-window {
  max-width: 860px;
  width: 100%;
  background: #282828;
  border: 2px solid var(--orange);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.terminal-body { padding: 3rem 3rem 1.5rem; }

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

.terminal-dots { display: flex; gap: 0.4rem; }

.terminal-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.terminal-dot.red { background: #fb4934; }
.terminal-dot.yellow { background: #fabd2f; }
.terminal-dot.green { background: #b8bb26; }

.terminal-path {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.terminal-command {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--orange);
}

.prompt-sign { color: var(--fg-muted); }

.sep {
  border: none;
  border-top: 1px solid var(--card-border);
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-text { display: flex; flex-direction: column; gap: 1.25rem; }

.whoami-line {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 1rem;
  color: var(--orange);
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 1.3rem;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero-bullets { display: flex; flex-direction: column; gap: 0.5rem; }

.hero-bullets p {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 1.05rem;
  color: var(--fg-muted);
  overflow-wrap: break-word;
}

.hero-bullets p::before {
  content: "> ";
  color: var(--orange);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-buttons a {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 0.95rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-buttons a:hover {
  background: var(--orange);
  color: var(--bg);
}

.hero-image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame {
  width: 180px;
  height: 180px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  overflow: hidden;
}

.profile-frame img, .profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-placeholder {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange);
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

.blink-cursor { animation: blink 1s step-end infinite; }

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

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted);
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.75rem;
  text-align: center;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--orange);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding-top: 0.65rem;
}

.scroll-dot {
  width: 0.3rem;
  height: 0.5rem;
  background: var(--orange);
  border-radius: 50%;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* sections */

.section {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.section-heading {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--orange);
  padding-left: 0.75rem;
}

.section .terminal-body { padding: 1.25rem; }

.section-command {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-command .prompt-sign { color: var(--fg-muted); }

/* skills */

.skill-tag {
  font-size: 0.85rem;
  color: var(--fg-muted);
  border: 1px solid var(--card-border);
  border-radius: 0.25rem;
  padding: 0.3rem 0.7rem;
}

/* projects */

.project-card { margin-bottom: 1rem; }

.project-title {
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-tech {
  margin-bottom: 0.75rem;
}

.project-tech span {
  font-size: 0.75rem;
  color: var(--fg-muted);
  border: 1px solid var(--card-border);
  border-radius: 0.25rem;
  padding: 0.2rem 0.6rem;
  margin-right: 0.3rem;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-links a::before {
  content: "• ";
  color: var(--orange);
}

.project-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.project-links a:hover { color: var(--orange); }

/* contact */

.contact-output {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

.contact-output a {
  color: var(--fg-muted);
  text-decoration: none;
}

.contact-output a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* single page */

.page-wrap {
  max-width: 860px;
  width: 100%;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85rem;
}

/* mobile */

@media (max-width: 750px) {
  .terminal-body { padding: 2rem 2rem 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .profile-frame { width: 180px; height: 180px; }
  .scroll-indicator { display: none; }
  .desktop-br { display: none; }
  .hero-name { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section { padding: 0 2rem; }
}

.section {
