:root {
  --bg: #080a0d;
  --panel: #0d1117;
  --panel-2: #111720;
  --text: #f1f4f8;
  --muted: #8995a5;
  --line: rgba(255,255,255,.09);
  --accent: #b9ff55;
  --accent-2: #75a83b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 10;
}
.brand {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font: 500 12px "DM Mono", monospace;
  letter-spacing: .08em;
}
.brand span { transform: translateY(-1px); }
nav { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
nav a:hover, .header-link:hover { color: var(--text); }
.header-link { justify-self: end; color: var(--muted); font-size: 13px; }

.section-pad { max-width: var(--max); margin: 0 auto; padding: 110px 28px; }
.hero { min-height: 710px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-top: 75px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font: 500 11px "DM Mono", monospace; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 16px rgba(185,255,85,.5); }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(64px, 9vw, 118px); line-height: .87; letter-spacing: -.06em; margin: 22px 0 30px; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.lede { max-width: 670px; color: #adb7c4; font-size: 19px; line-height: 1.55; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); font-size: 13px; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.button.primary { color: #0a0d0b; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.button.ghost { background: rgba(255,255,255,.015); }
.mini-meta { display: flex; gap: 24px; color: #667180; font: 400 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }

.terminal { background: rgba(10,14,19,.9); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.34); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.terminal-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #3b434e; }
.terminal-bar label { margin-left: 10px; color: #596471; font: 400 10px "DM Mono", monospace; }
.terminal-body { padding: 25px; font: 500 12px/1.9 "DM Mono", monospace; color: #c9d1db; min-height: 355px; }
.terminal-body p { margin: 0; }
.muted { color: #5b6673; }
.accent { color: var(--accent); }
.ok { color: var(--accent); margin-right: 6px; }
.progress { height: 4px; margin-top: 22px; background: #1c232c; overflow: hidden; }
.progress i { display: block; width: 72%; height: 100%; background: var(--accent); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { width: 86%; } }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.strip > div { max-width: calc(var(--max) - 56px); margin: 0 auto; padding: 18px 28px; display: flex; justify-content: space-between; gap: 22px; color: #687482; font: 400 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading h2, .contact h2 { font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.05em; margin: 14px 0 20px; }
.section-heading > p:last-child { color: var(--muted); max-width: 580px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.project-card { min-height: 420px; position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(185,255,85,.22); }
.project-card.large { min-height: 500px; }
.project-card.wide { min-height: 450px; grid-column: 1 / -1; }
.project-number { color: #52606f; font: 400 11px "DM Mono", monospace; }
.project-kicker { color: var(--accent); font: 500 10px "DM Mono", monospace; letter-spacing: .13em; margin: 0 0 10px; }
.project-content { max-width: 600px; position: relative; z-index: 2; }
.project-content h3 { font-size: clamp(31px, 4vw, 50px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 14px; }
.project-content p { color: #a7b0bc; max-width: 600px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tags span { border: 1px solid var(--line); color: #7e8997; padding: 5px 8px; font: 400 10px "DM Mono", monospace; }
.project-glyph { position: absolute; right: 25px; bottom: 18px; color: rgba(185,255,85,.13); font: 400 130px/1 Inter, sans-serif; z-index: 0; user-select: none; }
.glyph-books { display:flex; gap:8px; align-items:flex-end; height:160px; font-size:0; }
.glyph-books span { width:24px; border:1px solid rgba(185,255,85,.15); background:rgba(185,255,85,.025); }
.glyph-books span:nth-child(1){height:92px}.glyph-books span:nth-child(2){height:130px}.glyph-books span:nth-child(3){height:110px}
.glyph-play { border: 1px solid rgba(185,255,85,.12); border-radius: 50%; width: 150px; height: 150px; display:grid; place-items:center; font-size:54px; }
.glyph-loop { font-size: 160px; }
.glyph-network { width: 180px; height: 150px; }
.glyph-network:before,.glyph-network:after { content:""; position:absolute; inset:22px 20px 28px 25px; border-left:1px solid rgba(185,255,85,.13); border-bottom:1px solid rgba(185,255,85,.13); transform:skewY(-28deg); }
.glyph-network i { position:absolute; width:10px; height:10px; border:1px solid rgba(185,255,85,.25); border-radius:50%; }
.glyph-network i:nth-child(1){left:22px;top:22px}.glyph-network i:nth-child(2){right:28px;top:55px}.glyph-network i:nth-child(3){left:66px;bottom:23px}.glyph-network i:nth-child(4){right:8px;bottom:20px}

.stack-section { border-top: 1px solid var(--line); }
.stack-layout { display:grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.big-statement { font-size: 36px; line-height: 1.1; letter-spacing: -.035em; max-width: 480px; }
.muted-copy { color: var(--muted); max-width: 430px; }
.stack-list > div { padding: 22px 0; border-top: 1px solid var(--line); display:grid; grid-template-columns: 120px 1fr; gap: 18px; }
.stack-list > div:last-child { border-bottom:1px solid var(--line); }
.stack-list span { color:#687482; font:500 10px "DM Mono",monospace; text-transform:uppercase; letter-spacing:.1em; }
.stack-list p { margin:0; color:#c3cad2; }

.about-section { border-top: 1px solid var(--line); }
.about-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items:start; }
.about-copy { color:#a6b0bc; max-width:680px; }
.about-copy p { margin-bottom: 20px; }
.about-copy .lead-copy { font-size: 26px; line-height:1.35; color:var(--text); letter-spacing:-.02em; }
.facts { border-top:1px solid var(--line); }
.fact { padding:16px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; }
.fact span { color:#677380; font:500 10px "DM Mono",monospace; text-transform:uppercase; }
.fact strong { text-align:right; font-size:13px; font-weight:500; }

.contact { text-align:center; border-top: 1px solid var(--line); padding-top: 125px; padding-bottom: 130px; }
.contact > p:not(.eyebrow) { color:var(--muted); max-width:560px; margin:0 auto; }
.contact-actions { justify-content:center; }
.footer { max-width: var(--max); margin:0 auto; padding: 26px 28px 40px; display:flex; justify-content:space-between; color:#4f5a66; font:400 10px "DM Mono",monospace; text-transform:uppercase; letter-spacing:.08em; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in { opacity:1; transform:none; }
.delay-1 { transition-delay:.1s; }.delay-2{transition-delay:.2s}

@media (max-width: 850px) {
  .site-header { grid-template-columns:1fr auto; }
  nav { display:none; }
  .header-link { grid-column:2; }
  .hero, .stack-layout, .about-grid { grid-template-columns:1fr; gap:50px; }
  .hero { min-height:auto; padding-top:55px; }
  .hero-panel { max-width:650px; }
  .project-grid { grid-template-columns:1fr; }
  .project-card.wide { grid-column:auto; }
  .strip > div { overflow:auto; justify-content:flex-start; }
}
@media (max-width: 560px) {
  .section-pad { padding:80px 20px; }
  .site-header { padding:16px 20px; }
  h1 { font-size: 64px; }
  .mini-meta { flex-direction:column; gap:6px; }
  .project-card, .project-card.large, .project-card.wide { min-height:390px; padding:20px; }
  .stack-list > div { grid-template-columns:1fr; gap:8px; }
  .footer { padding:22px 20px 30px; flex-direction:column; gap:8px; }
}
