:root {
  --bg: #0b0d10;
  --surface: #12161c;
  --surface-2: #171c23;
  --text: #f5f7fa;
  --muted: #a6adb8;
  --line: #262c35;
  --accent: #87f5c1;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(135, 245, 193, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.nav { display: flex; gap: 24px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--text); }

.section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.eyebrow, .section-kicker, .card-label, .mini-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 980px;
  margin-bottom: 30px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
h3 { font-size: 1.25rem; }

.hero-text, .body-copy, .contact-section > p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.button.primary { background: var(--accent); color: #07110d; }
.button.secondary { border: 1px solid var(--line); background: var(--surface); }

.hero-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.hero-card p { color: var(--muted); }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(135, 245, 193, 0.1);
  margin-bottom: 28px;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.mini-grid div { padding-top: 18px; border-top: 1px solid var(--line); }
.mini-label { display: block; color: var(--muted); margin-bottom: 6px; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.body-copy p + p { margin-top: 22px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.section-note { color: var(--muted); max-width: 360px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  transition: transform 170ms ease, border-color 170ms ease;
}
.project-card:hover { transform: translateY(-4px); border-color: #3b4654; }
.project-card.featured { grid-column: span 2; min-height: 340px; }
.project-card p { color: var(--muted); max-width: 760px; }
.project-topline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.tag {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.project-links { margin-top: auto; }
.project-links a { color: var(--accent); text-decoration: none; font-weight: 700; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.skill-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.skill-group p { color: var(--muted); }

.contact-section { text-align: left; }
.contact-section h2 { max-width: 820px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; }
.contact-links a { color: var(--accent); text-decoration: none; font-weight: 700; }

.site-footer {
  min-height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .nav { display: none; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; min-height: auto; }
  .hero-card { max-width: 620px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .section-heading { display: block; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: min(calc(100% - 28px), var(--max-width)); }
  .section { padding: 78px 0; }
  h1 { font-size: 3.25rem; }
  .mini-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
