*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --text: #1D1D1F;
  --muted: #86868B;
  --accent: #0066CC;
  --border: #E5E5EA;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Lora', Georgia, serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background: #0055aa;
  border-color: #0055aa;
  text-decoration: none;
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--muted);
  text-decoration: none;
}

/* ── Avatar ── */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Divider ── */
.divider {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Sections ── */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Projects grid ── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.project-card {
  background: var(--bg);
  padding: 1.5rem;
  transition: background 0.15s;
  cursor: default;
}

.project-card:hover {
  background: var(--surface);
}

.project-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: block;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.project-tech {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag.live {
  background: #F0F7FF;
  color: #0055aa;
  border-color: #B8D4F5;
}

/* ── Skills ── */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 400;
}

/* ── Contact ── */
.contact-box {
  background: var(--surface);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-box p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 380px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}