/* ---------- Design tokens ---------- */
:root{
  --paper:#F4F2EE;
  --ink:#1A1A1A;
  --muted:#6B6B6B;
  --card:#EBE7E0;
  --hair:#D8D3CA;
  --lilac-tint:#EEE0FC;
  --lilac-soft:#DBBEFB;
  --lilac:#B982F7;
  --lilac-deep:#7C3AD6;
  --font:"Inter","Helvetica Neue",Arial,sans-serif;
  --max-width:960px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ background:var(--paper); }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }

img{ max-width:100%; display:block; }

/* ---------- Header / nav ---------- */
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:var(--max-width);
  margin:0 auto;
  padding:32px 24px 24px;
}

.wordmark{
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.site-nav{ display:flex; gap:24px; }

.site-nav a{
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"]{ color:var(--ink); }

/* ---------- Footer ---------- */
.site-footer{
  max-width:var(--max-width);
  margin:80px auto 0;
  padding:24px 24px 40px;
  border-top:1px solid var(--hair);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:var(--muted);
}

.site-footer .links{ display:flex; gap:16px; }

.site-footer a:hover{ color:var(--lilac-deep); }

/* ---------- Hero / work index (home) ---------- */
.hero{ max-width:var(--max-width); margin:0 auto; padding:40px 24px 56px; }

.hero h1{
  font-size:clamp(28px, 4vw, 44px);
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1.15;
  max-width:640px;
  margin-bottom:16px;
}

.hero .intro{
  color:var(--muted);
  max-width:480px;
  font-size:16px;
}

.work-index{
  list-style:none;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px 80px;
  border-top:1px solid var(--hair);
}

.visually-hidden{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.work-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--hair);
  gap:16px;
}

.work-row-main{ display:flex; flex-direction:column; gap:4px; }

.work-row .num{ color:var(--lilac-deep); font-weight:700; margin-right:8px; }

.work-row .title{ font-size:18px; font-weight:700; }

.work-row .desc{ color:var(--muted); font-size:14px; }

.work-row .year{ color:var(--muted); font-size:13px; white-space:nowrap; }

.work-row:hover .title{ color:var(--lilac-deep); }

/* ---------- Case study template ---------- */
.cs-title{
  max-width:var(--max-width);
  margin:0 auto;
  padding:8px 24px 0;
  font-size:clamp(24px, 3.5vw, 36px);
  font-weight:700;
  letter-spacing:-0.01em;
}

.cs-meta{
  max-width:var(--max-width);
  margin:0 auto;
  padding:16px 24px 32px;
  display:flex;
  gap:24px;
  color:var(--muted);
  font-size:13px;
  border-bottom:1px solid var(--hair);
}

.cs-hero{ max-width:var(--max-width); margin:32px auto; padding:0 24px; }

.cs-hero .imgph{
  background:var(--card);
  border-radius:4px;
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.cs-layout{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px 80px;
  display:flex;
  gap:48px;
}

.cs-sidebar{
  width:140px;
  flex-shrink:0;
  position:sticky;
  top:32px;
  align-self:flex-start;
}

.cs-sidebar a{
  display:block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  border-left:2px solid var(--hair);
  padding:6px 0 6px 12px;
  margin-bottom:4px;
}

.cs-sidebar a.active{ color:var(--ink); border-left-color:var(--lilac); }

.cs-content{ flex:1; min-width:0; }

.cs-section{ margin-bottom:56px; scroll-margin-top:32px; }

.cs-section .lbl{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--lilac-deep);
  margin-bottom:12px;
}

.cs-section p{ color:#3A3A3A; max-width:640px; margin-bottom:16px; }

.cs-section .imgph{
  background:var(--card);
  border-radius:4px;
  aspect-ratio:16/9;
  margin:16px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

@media (max-width:800px){
  .cs-layout{ flex-direction:column; gap:0; }
  .cs-sidebar{ display:none; }
}

/* ---------- About page ---------- */
.about{ max-width:var(--max-width); margin:0 auto; padding:8px 24px 80px; }

.about .intro{ max-width:600px; color:#3A3A3A; font-size:17px; margin-bottom:48px; }

.about section{ margin-bottom:48px; }

.about .lbl{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--lilac-deep);
  margin-bottom:16px;
}

.process-list{ list-style:none; display:flex; flex-direction:column; gap:16px; }

.process-item .step-title{ font-weight:700; margin-bottom:4px; }

.process-item p{ color:var(--muted); font-size:14px; max-width:560px; }

.timeline-row{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--hair);
  font-size:14px;
  gap:16px;
}

.timeline-row .role{ font-weight:700; }

.timeline-row .org{ color:var(--muted); }

.timeline-row .dates{ color:var(--muted); white-space:nowrap; font-size:13px; }

/* ---------- Contact page ---------- */
.contact{ max-width:var(--max-width); margin:0 auto; padding:8px 24px 100px; }

.contact h1{
  font-size:clamp(28px, 4vw, 40px);
  font-weight:700;
  letter-spacing:-0.01em;
  max-width:560px;
  margin-bottom:24px;
}

.contact .links{ display:flex; flex-direction:column; gap:12px; }

.contact .links a{
  font-size:18px;
  font-weight:700;
  color:var(--lilac-deep);
}

.contact .links a:hover{ text-decoration:underline; }
