:root {
  --bg: #F7F5F0;
  --ink: #1E2026;
  --muted: #636978;
  --line: #e2ddd2;
  --accent: #3458FF;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw;
  background: rgba(247, 244, 238, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: "DM Serif Display", Georgia, serif; font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.nav nav a { margin-left: 28px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav nav a:hover { color: var(--ink); }

main > section { padding: 0 6vw; max-width: 1180px; margin: 0 auto; }

.hero { padding-top: 12vh !important; padding-bottom: 8vh !important; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 15ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero-actions.center { justify-content: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { font-size: .88rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 10vh !important; }
.path { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.path h2 { font-size: 1.6rem; }
.path p { color: var(--muted); margin: 0; }
.tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }

.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.2em; }
.work { padding-bottom: 8vh !important; }
.project {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.cover {
  aspect-ratio: 16 / 10; border-radius: 18px; display: flex; align-items: flex-end;
  padding: 26px; color: #fff; overflow: hidden; position: relative;
}
.cover span { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.05; position: relative; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 45%);
}
.c1 { background: linear-gradient(135deg, #2f4bff, #8a5cff); }
.c2 { background: linear-gradient(135deg, #0f4c5c, #3aa6b9); }
.c3 { background: linear-gradient(135deg, #1f6f4a, #9fd36b); }
.c4 { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.c5 { background: linear-gradient(135deg, #1d1f24, #6b6f80); }
.meta { font-size: .85rem; color: var(--accent); font-weight: 600; margin: 0 0 .4em; }
.project h3 { font-size: 1.8rem; }
.project p { color: var(--muted); }
dl { margin: 1.2em 0 0; }
dt { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .9em; }
dd { margin: .2em 0 0; color: var(--muted); }
.link-note { font-size: .9rem; font-style: italic; margin-top: 1.2em; }

.about { padding-top: 6vh !important; padding-bottom: 10vh !important; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.about-grid > div:first-child p { font-size: 1.1rem; }
.skills { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.skills h3 { font-family: "Inter", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 1.2em 0 .3em; }
.skills h3:first-child { margin-top: 0; }
.skills p { margin: 0; color: var(--muted); font-size: .95rem; }

.contact {
  text-align: center; padding: 10vh 6vw !important; margin-bottom: 6vh !important;
  background: var(--ink); color: var(--bg); border-radius: 28px; max-width: 1080px !important;
}
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { color: #c9c6bf; max-width: 50ch; margin: 0 auto; }
.contact .btn { border-color: var(--bg); }
.contact .btn.primary { background: var(--bg); color: var(--ink); }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 0 40px; }

@media (max-width: 760px) {
  .paths, .project, .about-grid { grid-template-columns: 1fr; }
  .project { gap: 20px; }
  .nav nav a { margin-left: 16px; }
  .contact { margin: 0 4vw 6vh !important; }
}
/* project screenshots */
.media { display: block; }
.shot { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px rgba(29, 31, 36, .08); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* consistent image sizes */
.shot { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.cover span { font-weight: 400; }
.btn, .cover, .shot { transition: transform .2s ease, box-shadow .2s ease; }
.shot:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30, 32, 38, .12); }

/* image credits */
.credit { font-size: .8rem; color: var(--muted); margin: 8px 2px 0; }
