:root{
  --bg: #0a0c0f;
  --bg-alt: #101317;
  --card: #14171c;
  --border: #23272e;
  --border-soft: #1a1d22;
  --text: #e7e5e0;
  --text-dim: #878d96;
  --text-dimmer: #565b62;
  --orange: #ff7a2e;
  --orange-soft: rgba(255,122,46,0.12);
  --green: #6fd88a;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
code, .mono{ font-family:'JetBrains Mono', monospace; }

::selection{ background: var(--orange); color:#0a0c0f; }

a{ color: inherit; text-decoration:none; }

.noise{
  position: fixed; inset:0; pointer-events:none; opacity:0.035; z-index:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
}

.wrap{ max-width: 760px; margin:0 auto; padding: 0 24px; position:relative; z-index:1; }

/* ---------- HERO / terminal window ---------- */
header{ padding: 72px 0 40px; }

.term{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.term-bar{
  display:flex; align-items:center; gap:8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dot{ width:10px; height:10px; border-radius:50%; }
.dot.red{ background:#ff5f56; }
.dot.yellow{ background:#ffbd2e; }
.dot.green{ background:#27c93f; }
.term-title{
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dimmer);
}
.term-body{ padding: 28px 28px 32px; }

.prompt-line{
  font-size: 13px;
  color: var(--text-dimmer);
  margin-bottom: 18px;
  display:flex; gap:8px;
}
.prompt-line .sym{ color: var(--green); }

h1{
  font-family:'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
h1 .accent{ color: var(--orange); }

.role{
  margin-top: 10px;
  font-family:'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--text-dim);
  min-height: 20px;
}
.role .cursor{
  display:inline-block; width:8px; height:16px; background:var(--orange);
  margin-left:4px; vertical-align:-2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.bio{
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 58ch;
}

.tags{
  margin-top: 20px;
  display:flex; flex-wrap:wrap; gap:8px;
}
.tag{
  font-family:'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-dim);
}

/* ---------- SECTION LABEL ---------- */
.section-label{
  font-family:'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display:flex; align-items:center; gap:10px;
  margin: 56px 0 22px;
}
.section-label::after{
  content:''; flex:1; height:1px; background: var(--border);
}

/* ---------- GIT LOG EXPERIENCE ---------- */
.log{ position:relative; padding-left: 28px; }
.log::before{
  content:'';
  position:absolute; left:5px; top:6px; bottom:6px;
  width:2px;
  background: linear-gradient(to bottom, var(--orange), var(--border) 85%);
}

.commit{ position:relative; padding-bottom: 34px; opacity:0; transform: translateY(10px); animation: rise .5s ease forwards; }
.commit:last-child{ padding-bottom: 0; }
.commit:nth-child(1){ animation-delay: .05s; }
.commit:nth-child(2){ animation-delay: .15s; }
.commit:nth-child(3){ animation-delay: .25s; }

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

.commit-node{
  position:absolute; left:-28px; top:4px;
  width:12px; height:12px; border-radius:50%;
  background: var(--bg);
  border: 2px solid var(--text-dimmer);
}
.commit.head .commit-node{
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.commit-head-tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255,122,46,0.35);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.commit-meta{
  font-family:'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dimmer);
  margin-bottom: 6px;
  display:flex; flex-wrap:wrap; gap: 4px 10px;
}
.commit-meta .hash{ color: var(--green); }

.commit-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.commit-card:hover{
  border-color: rgba(255,122,46,0.4);
  transform: translateX(2px);
}

.commit-title{
  font-family:'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.commit-company{
  font-size: 13.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}
.commit-desc{
  font-size: 13.5px;
  color: var(--text-dim);
}
.commit-desc + .commit-desc{ margin-top: 6px; }
.commit-desc .plus{ color: var(--green); margin-right: 6px; }

.commit-loc{
  margin-top: 12px;
  font-family:'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dimmer);
  display:flex; align-items:center; gap:6px;
}

/* ---------- FOOTER ---------- */
footer{
  margin-top: 60px;
  padding: 28px 0 60px;
  border-top: 1px solid var(--border-soft);
  font-family:'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dimmer);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
footer .accent{ color: var(--orange); }

@media (max-width: 520px){
  .term-body{ padding: 22px 18px 26px; }
  header{ padding: 44px 0 24px; }
  .log{ padding-left: 22px; }
  .commit-node{ left:-22px; }
}

@media (prefers-reduced-motion: reduce){
  .role .cursor{ animation: none; }
  .commit-card{ transition: none; }
  .commit{ animation: none; opacity:1; transform:none; }
}