:root {
  --bg: #0b0b0d;
  --bg-raised: #131316;
  --amber: #f5a524;
  --amber-dim: #f5a52433;
  --text: #ededed;
  --text-dim: #8a8a92;
  --hairline: #1f1f23;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-brand-dot { color: var(--amber); }
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--amber);
}
.nav-link.disabled { opacity: 0.35; cursor: default; }

main { position: relative; z-index: 2; }

/* HERO */
.hero {
  padding: 140px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-inner { display: flex; flex-direction: column; gap: 40px; }

.terminal {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  max-width: 720px;
  box-shadow: 0 40px 80px -40px rgba(245, 165, 36, 0.08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #19191c;
  border-bottom: 1px solid var(--hairline);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-body {
  padding: 22px 20px 26px;
  font-family: var(--mono);
  font-size: 14px;
}
.terminal-line { color: var(--text); margin-top: 14px; }
.terminal-line:first-child { margin-top: 0; }
.prompt { color: var(--amber); margin-right: 8px; }
.terminal-out {
  color: var(--text-dim);
  margin-top: 6px;
  margin-left: 20px;
  min-height: 1.4em;
}
.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  color: var(--amber);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.meta-block { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.meta-value {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--amber-dim); }
  50% { box-shadow: 0 0 0 6px var(--amber-dim); }
}

/* PROJECTS */
.projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.section-head { margin-bottom: 44px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--text-dim);
  margin-top: 10px;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.tile {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tile:hover {
  border-color: #33333a;
  transform: translateY(-3px);
}
.tile-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.tile-status {
  position: absolute;
  top: 22px; right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-shipped { background: #34d058; }
.status-progress { background: var(--amber); animation: pulse2 1.8s ease-in-out infinite; }
.status-planned { background: #4a4a52; }
@keyframes pulse2 {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}
.status-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tile-name { font-size: 17px; font-weight: 700; }
.tile-tagline { font-size: 13px; color: var(--text-dim); }

.tile-add {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--text-dim);
  text-align: center;
}
.tile-add .tile-name { color: var(--text-dim); font-weight: 600; }

/* FOOTER */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.open { display: flex; }
.overlay-card {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px;
  animation: rise 0.25s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.overlay-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.overlay-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}
.overlay-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.overlay-tagline { color: var(--amber); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.overlay-desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 22px; white-space: pre-line; }
.overlay-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.overlay-features li {
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.overlay-features li::before {
  content: "—";
  color: var(--amber);
}
.overlay-links { display: flex; gap: 12px; flex-wrap: wrap; }
.overlay-link {
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.overlay-link:hover { border-color: var(--amber); background: var(--amber-dim); }
.overlay-link.primary { background: var(--amber); color: #0b0b0d; border-color: var(--amber); font-weight: 600; }
.overlay-link.primary:hover { opacity: 0.9; }

@media (max-width: 640px) {
  .hero { padding: 120px 18px 60px; }
  .terminal-body { font-size: 12.5px; }
  .nav-inner { padding: 16px 18px; }
}
