:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #111318;
  --muted: #667085;
  --line: #dfe3ea;
  --accent: #1d4ed8;
  --accent-2: #0f172a;
  --soft: #eaf0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246,247,249,.88);
  border-bottom: 1px solid rgba(223,227,234,.8);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-2); color: white; font-weight: 800; letter-spacing: -.03em;
}
.nav { display: flex; gap: 28px; font-size: 14px; color: #344054; }
.nav a:hover { color: var(--accent); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; }

.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.eyebrow, .section-kicker, .project-type {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent);
}
.hero h1 { font-size: clamp(52px, 7vw, 92px); line-height: .95; letter-spacing: -.06em; margin: 18px 0 24px; }
.hero h1 span { color: #6b7280; font-weight: 600; }
.hero-copy { max-width: 760px; font-size: 20px; color: #475467; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.btn { padding: 13px 18px; border-radius: 10px; font-weight: 700; border: 1px solid var(--line); }
.btn.primary { background: var(--accent-2); color: white; border-color: var(--accent-2); }
.btn.ghost { background: white; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.hero-card {
  position: relative; min-height: 390px; overflow: hidden; padding: 32px; border-radius: 28px;
  background: linear-gradient(145deg, #0f172a, #172554 58%, #1d4ed8);
  color: white; box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.orbit-1 { width: 260px; height: 260px; right: -70px; top: -50px; }
.orbit-2 { width: 170px; height: 170px; right: -18px; top: 20px; }
.robot-mark { font: 800 96px/1 IBM Plex Mono, monospace; opacity: .95; position: absolute; top: 55px; left: 30px; }
.hero-card > p { width: 65%; color: #dbeafe; }
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.hero-stat-row div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.hero-stat-row strong { display: block; font-size: 24px; }
.hero-stat-row span { font-size: 12px; color: #dbeafe; }

.section { padding: 96px 0; }
.section.alt { background: #eef1f5; }
.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; }
.section h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.045em; margin: 10px 0 0; }
.prose { font-size: 18px; color: #475467; }
.prose p:first-child { margin-top: 0; }

.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; min-height: 260px; }
.card-index { font: 500 12px IBM Plex Mono, monospace; color: #98a2b3; }
.card h3 { font-size: 22px; margin: 48px 0 8px; }
.card p { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-note { max-width: 420px; color: var(--muted); font-size: 14px; }
.project { background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.project.featured { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.project.compact { display: flex; flex-direction: column; }
.project-visual { position: relative; min-height: 280px; overflow: hidden; background: #dfe5ee; }
.project.featured .project-visual { min-height: 100%; }
.visual-label { position: absolute; top: 18px; left: 18px; z-index: 3; font: 700 11px IBM Plex Mono, monospace; letter-spacing: .08em; }
.project-content { padding: 28px; }
.project-content h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; margin: 8px 0 12px; }
.project-content > p { color: #5d6677; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 7px 10px; border-radius: 999px; background: #f2f4f7; border: 1px solid #e4e7ec; font-size: 12px; color: #475467; }
.project-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 26px; }
.project-metrics div { border-top: 1px solid var(--line); padding-top: 14px; }
.project-metrics strong { display: block; font-size: 22px; }
.project-metrics span { font-size: 12px; color: var(--muted); }

.lilquad { background: linear-gradient(145deg, #d7e2f6, #c3d4f0); }
.quad-body { position: absolute; width: 44%; height: 24%; left: 28%; top: 38%; background: #111827; border-radius: 18px; transform: perspective(500px) rotateX(8deg) rotateZ(-4deg); box-shadow: 0 18px 25px rgba(17,24,39,.25); }
.leg { position: absolute; width: 16%; aspect-ratio: 1; border: 12px solid #111827; border-left-color: transparent; border-radius: 50%; }
.l1 { left: 18%; top: 34%; transform: rotate(30deg); } .l2 { right: 18%; top: 34%; transform: rotate(210deg); }
.l3 { left: 22%; bottom: 18%; transform: rotate(10deg); } .l4 { right: 22%; bottom: 18%; transform: rotate(190deg); }
.cat { background: linear-gradient(145deg,#ece7df,#d5cec2); display:grid; place-items:center; }
.cat-mark { font-size: 110px; font-weight: 300; color:#3f3a34; }
.snake { background: linear-gradient(145deg,#d9ece8,#b9d9d2); display:grid; place-items:center; }
.snake-line { font: 700 70px IBM Plex Mono, monospace; letter-spacing:-.25em; color:#174b46; transform: translateX(-12px); }
.gait { background: linear-gradient(145deg,#e8e3f5,#cbc1ea); display:grid; place-items:center; }
.gait-dots { display:grid; grid-template-columns: repeat(2, 70px); gap:26px; }
.gait-dots i { width:70px; height:70px; border-radius:50%; background:#2f255d; box-shadow: inset 0 0 0 14px rgba(255,255,255,.2); }

.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.skill-grid div { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.skill-grid h3 { margin: 0 0 8px; }
.skill-grid p { margin: 0; color: var(--muted); }

.timeline { border-left: 1px solid var(--line); padding-left: 28px; }
.timeline-item { position: relative; padding: 0 0 40px 0; }
.timeline-item::before { content:""; position:absolute; left:-34px; top:7px; width:11px; height:11px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 6px var(--soft); }
.timeline-year { font: 500 12px IBM Plex Mono, monospace; color: var(--accent); }
.timeline h3 { margin: 6px 0 4px; font-size: 22px; }
.timeline p { margin:0; color:var(--muted); }

.contact-section { padding-top: 40px; }
.contact-card { background: var(--accent-2); color: white; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.contact-card .section-kicker { color: #93c5fd; }
.contact-card h2 { max-width: 720px; }
.contact-card p { color:#cbd5e1; }
.contact-links { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.contact-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 700; }

footer { padding: 28px 0 40px; }
.footer-wrap { display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:13px; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .project.featured, .contact-card { grid-template-columns: 1fr; }
  .cards.three, .project-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-card { min-height: 320px; }
  .section { padding: 72px 0; }
  .section-head { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 700px) {
  .nav { display:none; position:absolute; top:72px; left:0; right:0; background:white; border-bottom:1px solid var(--line); padding:18px 20px; flex-direction:column; }
  .nav.open { display:flex; }
  .menu-btn { display:block; }
  .hero h1 { font-size: 54px; }
  .hero-copy { font-size: 18px; }
  .skill-grid { grid-template-columns:1fr; }
  .contact-card { padding:32px 24px; }
  .footer-wrap { flex-direction:column; }
}
