:root {
  --bg: #0b0d0f;
  --panel: #101316;
  --panel-2: #15191d;
  --text: #f3f5f7;
  --muted: #9aa4ad;
  --line: #252b31;
  --accent: #9cff57;
  --accent-dim: rgba(156,255,87,.12);
  --max: 1180px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.grid-noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}

.site-header {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  font: 13px/1 var(--mono); border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.prompt { color: var(--accent); margin-right: 2px; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero { padding: 112px 0 104px; }
.hero-kicker, .eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.hero h1 {
  font-size: clamp(54px, 8vw, 112px); line-height: .94; letter-spacing: -.065em;
  max-width: 1100px; margin: 24px 0 32px; font-weight: 760;
}
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 790px; font-size: clamp(18px, 2vw, 24px); color: #c8ced4; margin: 0 0 34px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-meta strong { color: var(--text); font-weight: 500; }
.hero-meta i { color: #4c555e; font-style: normal; }
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 48px; padding: 0 18px; border: 1px solid var(--line); text-decoration: none;
  font: 13px/1 var(--mono); transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: #64707a; }
.button.primary { background: var(--accent); color: #0a0d0e; border-color: var(--accent); font-weight: 700; }
.button.ghost { background: rgba(255,255,255,.02); }

.status-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.status-grid { min-height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 22px; font-size: 12px; color: var(--muted); }
.status-grid b { color: var(--text); font-weight: 600; }
.status-live i { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px var(--accent); margin-right: 8px; }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section h2, .contact h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; margin: 18px 0 0; }
.section-note { color: var(--muted); margin: 0; max-width: 430px; }

.projects { border-top: 1px solid var(--line); }
.project-card {
  position: relative; display: grid; grid-template-columns: 70px 1.15fr .85fr; gap: 40px;
  padding: 42px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.project-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-dim), transparent 38%); opacity: 0; transition: opacity .2s ease; z-index: -1; }
.project-card:hover::before { opacity: 1; }
.project-index, .project-type { color: var(--muted); font-size: 12px; }
.project-type { color: var(--accent); margin-bottom: 12px; }
.project-card h3 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; letter-spacing: -.04em; margin: 0 0 18px; }
.project-card p { max-width: 620px; color: #b7c0c8; font-size: 17px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tags span { border: 1px solid var(--line); padding: 5px 8px; font-size: 10px; color: var(--muted); background: #0d1012; }
.project-ascii { align-self: center; justify-self: end; width: 100%; }
.project-ascii pre { margin: 0; color: #727e87; font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.project-card:hover .project-ascii pre { color: var(--accent); }

.terminal-section { background: #090b0c; border-block: 1px solid var(--line); }
.terminal { border: 1px solid #30363d; background: #080a0b; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.terminal-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 11px 14px; border-bottom: 1px solid #252b31; color: #6f7b84; font-size: 10px; }
.terminal-bar span:nth-child(2) { text-align: center; }
.terminal-bar span:last-child { text-align: right; }
.dots { letter-spacing: 4px; color: #66727a; }
.terminal-body { padding: 34px; font-size: 13px; color: #b9c2c9; }
.cmd { color: var(--accent); }
.terminal-list { margin: 26px 0 28px; }
.terminal-list div { display: grid; grid-template-columns: 48px 220px 1fr; gap: 18px; border-top: 1px dashed #252b31; padding: 14px 0; }
.terminal-list div:last-child { border-bottom: 1px dashed #252b31; }
.terminal-list b { color: #56616a; }
.terminal-list span { color: var(--text); }
.terminal-list em { color: #7e8992; font-style: normal; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.about-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.about-copy { color: #bbc3ca; font-size: clamp(18px, 2vw, 23px); }
.about-copy p:first-child { margin-top: 0; }
.personal-about { align-items: start; }
.portrait-wrap { position: relative; width: 190px; }
.portrait-frame {
  margin-top: 22px; border: 1px solid var(--line); background: #0a0c0e; padding: 10px;
  box-shadow: 18px 18px 0 rgba(156,255,87,.045);
}
.portrait-placeholder {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background:
    radial-gradient(circle at 50% 35%, rgba(156,255,87,.12), transparent 30%),
    linear-gradient(135deg, #11161a, #090b0c);
  border: 1px dashed #364139; color: var(--muted);
}
.portrait-initials { color: var(--accent); font-size: clamp(54px, 8vw, 92px); letter-spacing: -.08em; }
.portrait-hint { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.portrait-caption { margin: 13px 0 0; color: #68747d; font-size: 10px; }
.about-copy h2 { margin-top: 0; margin-bottom: 32px; }
.off-duty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 38px; }
.off-duty div { min-height: 128px; border: 1px solid var(--line); padding: 16px; background: rgba(255,255,255,.015); }
.off-duty span { display: block; font-size: 26px; margin-bottom: 18px; }
.off-duty strong { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.off-duty em { display: block; margin-top: 7px; color: #737f88; font-size: 10px; line-height: 1.5; font-style: normal; }

.history { margin-top: 72px; border-top: 1px solid var(--line); font-size: 12px; }
.history div { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.history span, .history em { color: var(--muted); font-style: normal; }

.contact { padding: 120px 0; background: var(--accent); color: #090c0d; }
.contact .eyebrow { color: #27311f; }
.contact-inner { max-width: 980px; margin-inline: auto; }
.contact h2 { font-size: clamp(54px, 7vw, 92px); max-width: 900px; }
.contact p:not(.eyebrow) { max-width: 700px; font-size: 20px; margin: 28px 0 38px; }
.contact .button.primary { background: #0b0d0f; color: var(--text); border-color: #0b0d0f; }
.site-footer { min-height: 86px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; font-size: 10px; color: #75808a; }
.site-footer span:nth-child(2) { text-align: center; }
.site-footer span:last-child { text-align: right; }
.site-footer b { color: var(--accent); }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { padding: 82px 0 72px; }
  .hero h1 { font-size: clamp(52px, 15vw, 82px); }
  .status-grid { grid-template-columns: 1fr 1fr; padding-block: 18px; }
  .section { padding: 84px 0; }
  .section-heading, .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait-wrap { width: 160px; }
  .portrait-frame { max-width: 160px; }
  .off-duty { grid-template-columns: 1fr; }
  .off-duty div { min-height: 0; }
  .project-card { grid-template-columns: 38px 1fr; gap: 16px; }
  .project-ascii { grid-column: 2; justify-self: start; margin-top: 18px; }
  .terminal-list div { grid-template-columns: 34px 1fr; }
  .terminal-list em { grid-column: 2; }
  .history div { grid-template-columns: 1fr 1fr; }
  .history em { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; padding-block: 24px; }
  .site-footer span:nth-child(2), .site-footer span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  * { transition: none !important; }
}

.boring-stuff { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 720px; }
.boring-stuff > p:not(.eyebrow) { color: var(--muted); margin: 12px 0 16px; line-height: 1.7; }
.text-link { color: var(--green); text-decoration: none; font-size: 12px; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 1050px) and (min-width: 801px) { .off-duty { grid-template-columns: repeat(2, 1fr); } }

.portrait-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}
