:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #16150f;
  --muted: #6b675c;
  --line: #e4e0d6;
  --accent: #b8860b;
  --accent-soft: #f3e7c6;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0d;
    --surface: #171714;
    --text: #f1eee6;
    --muted: #9c978a;
    --line: #2a2924;
    --accent: #e3b341;
    --accent-soft: #3a3020;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font: 28px/1 var(--serif); }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.btn-sm { color: var(--text) !important; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ea44f; box-shadow: 0 0 0 4px color-mix(in srgb, #2ea44f 20%, transparent); }
h1 { font: 400 clamp(52px, 10vw, 120px)/0.95 var(--serif); letter-spacing: -0.02em; margin: 28px 0 24px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 680px; }
.lead em { font-family: var(--serif); font-size: 1.2em; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 15px; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 400 44px/1 var(--serif); }
.stats span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
h2 { font: 400 clamp(40px, 6vw, 64px)/1 var(--serif); }
.sec-head p { color: var(--muted); max-width: 420px; }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card:hover .shot img { transform: scale(1.03); }
.body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.title { display: flex; justify-content: space-between; align-items: center; }
.title h3 { font: 400 30px/1.1 var(--serif); }
.arrow { color: var(--accent); font-size: 20px; transition: transform .2s; }
.card:hover .arrow { transform: translate(3px, -3px); }
.body p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); }
.host { font-size: 13px; color: var(--muted); }

/* Timeline */
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.when { color: var(--muted); font-size: 14px; padding-top: 6px; }
.timeline h3 { font: 400 26px/1.2 var(--serif); margin-bottom: 6px; }
.timeline h3 span { color: var(--accent); }
.timeline p { color: var(--muted); max-width: 720px; }

/* Stack + education */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two h2 { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.edu li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu b { display: block; font-weight: 500; }
.edu span { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { text-align: center; padding: 110px 0; }
.contact h2 { font-size: clamp(56px, 9vw, 104px); }
.contact p { color: var(--muted); max-width: 520px; margin: 18px auto 0; }
.contact .cta { justify-content: center; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 64px 0 48px; }
  .nav nav a:not(.btn-sm) { display: none; }
  .grid, .two { grid-template-columns: 1fr; }
  .two { gap: 56px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .stats { gap: 28px; }
  .btn { max-width: 100%; overflow-wrap: anywhere; }
}

/* Avatar */
.intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); padding: 3px; background: var(--bg); }
