:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --text: #141414;
  --muted: #5e5e5e;
  --line: #e7e7e3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { width: min(1080px, 92%); margin: 0 auto; }
header { position: sticky; top: 0; background: rgba(248,248,246,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 0; flex-wrap: wrap; }
.project-switch {
  position: relative;
  display: flex;
  gap: .8rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: .2rem 3.6rem .2rem .1rem;
  scrollbar-width: thin;
}
.project-switch::after {
  content: "→";
  position: sticky;
  right: -1px;
  width: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 1rem;
  background: linear-gradient(to right, rgba(248,248,246,0), rgba(248,248,246,.92));
  pointer-events: none;
}
.project-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem .72rem;
  font-size: .84rem;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.project-pill:hover { color: var(--text); }
.project-pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.mono { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
a { color: inherit; text-decoration: none; }
.hero { padding: 4.5rem 0 2rem; }
h1 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.08; margin: .4rem 0 .8rem; }
.lead { color: var(--muted); max-width: 70ch; }
.section { padding: 2.6rem 0; }
.image-main { width: 100%; height: clamp(300px, 56vw, 700px); object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery img { width: 100%; height: clamp(180px, 30vw, 320px); object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.block { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 1rem; margin-top: 1rem; }
.footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); margin-top: 2rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }