:root{
  --bg: #ffffff;
  --text: rgba(10,12,16,.92);
  --muted: rgba(10,12,16,.62);
  --faint: rgba(10,12,16,.44);
  --line: rgba(10,12,16,.12);
  --panel: rgba(10,12,16,.03);
  --panel2: rgba(10,12,16,.05);
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius: 18px;
  --radius2: 22px;
  --max: 1120px;
  --accent: #2f6bff;
}

*{ box-sizing:border-box; }
html,body{ min-height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-color: rgba(10,12,16,.25); }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

body.page-white{
  background: var(--bg);
  color: var(--text);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(10,12,16,.14);
  background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(0,0,0,.02));
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  text-decoration:none !important;
  font-weight:600;
}
.btn:hover{ filter: brightness(1.02); }
.btn-small{ padding:10px 14px; border-radius: 12px; }

.hero{
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(47,107,255,.08), transparent 55%),
    radial-gradient(900px 520px at 100% 10%, rgba(0,0,0,.03), transparent 55%);
}

.hero-inner{
  padding: 48px 0 40px;
}

.page-back{
  margin: 0 0 18px;
}

.page-back-link{
  font-size: 13px;
  color: var(--faint);
  text-decoration: none !important;
  letter-spacing: .02em;
}

.page-back-link:hover{
  color: var(--muted);
  text-decoration: underline !important;
  text-decoration-color: rgba(10,12,16,.22);
}

.kicker{
  margin:0 0 14px;
  color: var(--faint);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
}

h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 70ch;
}

.hero-cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top: 18px;
}

.mini-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}

.mini-title{
  font-weight:600;
  margin-bottom:6px;
}

.mini-body{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section{
  padding: 48px 0;
}

.section-muted{
  background: linear-gradient(180deg, rgba(10,12,16,.02), rgba(10,12,16,0));
}

.section-head{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom: 18px;
  text-align:center;
}

.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-head p{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h3{
  margin:0 0 8px;
  font-size: 18px;
}

.panel p{
  margin:0 0 12px;
  color: var(--muted);
  line-height:1.55;
}

.bullets{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.project-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration:none !important;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.project-card:hover{
  transform: translateY(-2px);
  border-color: rgba(47,107,255,.28);
  background: var(--panel2);
}

.project-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.project-title{
  font-weight: 600;
}

.project-year{
  color: var(--faint);
  font-size: 12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.project-desc{
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-meta{
  font-size: 12px;
  color: var(--faint);
}

.section-actions{
  margin-top: 18px;
  text-align:center;
}

@media (max-width: 980px){
  .hero-cards{ grid-template-columns: 1fr 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}