:root {
  --bg: #0c1016;
  --surface: #121923;
  --surface-2: #17212e;
  --text: #eef3f8;
  --muted: #aeb9c7;
  --line: #263445;
  --accent: #8dc5ff;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand {
  width: 38px; height: 38px; display: grid; place-items: center;
  text-decoration: none; border: 1px solid var(--line); border-radius: 9px; font-weight: 800;
}
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
nav a:hover { color: var(--text); }
.hero { padding: 8rem 0 5rem; }
.eyebrow {
  color: var(--accent); text-transform: uppercase; letter-spacing: .14em;
  font-weight: 750; font-size: .76rem; margin: 0 0 1rem;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); max-width: 940px; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 0; }
h3 { font-size: 1.18rem; margin: 0; }
.lede { color: var(--muted); max-width: 770px; font-size: clamp(1.08rem, 2vw, 1.3rem); margin: 2rem 0; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 1rem; border: 1px solid var(--line);
  border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 700;
}
.button:hover { background: var(--surface); }
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; max-width: 760px; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .project {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 14px; padding: 1.35rem;
}
.card p, .project p { color: var(--muted); margin-bottom: 0; }
.project-top { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.project-top span { color: var(--accent); font-size: .8rem; white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem; color: var(--muted); background: var(--surface); }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline article {
  display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(320px, 1.5fr);
  gap: 1.5rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.timeline article > div p, .timeline article > p, .timeline time { color: var(--muted); margin: .3rem 0 0; }
.timeline time { white-space: nowrap; }
.contact { padding-bottom: 7rem; }
.contact > p:not(.eyebrow) { color: var(--muted); max-width: 720px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 1.4rem 0; font-size: .9rem; }
@media (max-width: 800px) {
  .hero { padding-top: 5rem; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: .35rem; }
  .project-top { align-items: flex-start; flex-direction: column; gap: .45rem; }
}
@media (max-width: 580px) {
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  h1 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
