/* ===== Base ===== */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--accent);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #1e40af; }

/* ===== Hero ===== */
.hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.hero-title {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-blurb {
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  justify-self: center;
}

.hero-photo img,
.avatar-fallback {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #1e40af; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Sections ===== */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 32px;
}

.section-num {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 10px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.about-story p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--ink-soft);
}

.about-story strong { color: var(--ink); }

.about-facts h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.facts-heading { margin-top: 28px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.facts strong { color: var(--ink); }

/* ===== Projects ===== */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.project-featured {
  border-top: 4px solid var(--accent);
}

.project-body { padding: 32px 36px; }

.project-tag {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.project h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.project p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
}

.project-points {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
}

.project-points li { margin-bottom: 6px; }

/* ===== Contact ===== */
.section-contact { text-align: center; }

.contact-lead {
  margin: 0 auto 28px;
  max-width: 50ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer p { margin: 0; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 32px;
    text-align: center;
  }

  .hero-blurb { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }

  .hero-photo img,
  .avatar-fallback {
    width: 180px;
    height: 180px;
  }

  .about-grid { grid-template-columns: 1fr; }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }

  .section { padding: 56px 20px; }
  .project-body { padding: 24px 22px; }
}
