:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --ink: #141a26;
  --muted: #5b6270;
  --line: #dedad0;
  --accent: #2f7a55;
  --accent-soft: #86e0b0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171b23;
    --ink: #eef0f3;
    --muted: #9aa1ad;
    --line: #2a2f39;
    --accent: #6fd39f;
    --accent-soft: #1f5a3c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--accent); }
@media (max-width: 760px) { .nav ul { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: .15s; }
.social:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding: 72px 0 88px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px color-mix(in srgb, #4ade80 25%, transparent); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -1.5px; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h1 em, h2 em { color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.portrait { position: relative; max-width: 380px; justify-self: end; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--accent-soft); border-radius: 200px 200px 8px 8px; }
.badge { position: absolute; left: -24px; bottom: 28px; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; font-size: 13px; box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.badge b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 56px; }
  .portrait { order: -1; width: 128px; justify-self: start; }
  .portrait img { border-radius: 50%; aspect-ratio: 1; }
  .badge { display: none; }
}

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats div { padding: 26px 20px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
section { padding: 96px 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.head p { color: var(--muted); max-width: 380px; margin: 0; }
.more { font-weight: 600; font-size: 14px; }

/* projects */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(0 0 0 / .08); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), var(--line)); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.result { font-size: 14px; font-weight: 600; color: var(--accent); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tags span { font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.platform { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .grid, .grid.three { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about p { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.stack { display: grid; gap: 14px; }
.stack div { border-top: 1px solid var(--line); padding-top: 14px; }
.stack b { display: block; margin-bottom: 4px; }
.stack span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* newsletter + contact */
.panel { background: var(--ink); color: var(--bg); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.panel h2 { font-size: clamp(32px, 4vw, 46px); }
.panel p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 14px 0 0; }
.panel .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); justify-self: start; }
.panel .btn.ghost { background: transparent; color: var(--bg); }
.panel .actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; } }

footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* link-in-bio page */
.bio { max-width: 460px; margin: 0 auto; padding: 48px 20px 40px; text-align: center; }
.bio img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.bio h1 { font-size: 34px; letter-spacing: -.8px; }
.bio .lede { font-size: 16px; margin: 10px auto 22px; }
.bio .socials { justify-content: center; margin-bottom: 28px; }
.bio-links { display: grid; gap: 12px; }
.btn-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: .15s; }
.btn-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-link.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-link small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.btn-link.primary small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.bio footer { margin-top: 36px; display: block; border: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
