:root {
  --paper: #f3efe6;
  --ink: #1c1a16;
  --muted: #5e594f;
  --line: rgba(28, 26, 22, 0.14);
  --accent: #c4491d;
  --band: #161513;
  --band-ink: #f6f1e7;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#work, #stack, #approach { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 380;
  font-size: 17px;
  line-height: 1.5;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  background: var(--band);
  color: var(--band-ink);
}

.mark {
  font-family: "Fraunces", serif;
  font-weight: 620;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.top nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}

.top nav a {
  color: rgba(246, 241, 231, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.top nav a:hover { color: var(--band-ink); }

.hire {
  text-decoration: none;
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.hire:hover { background: var(--band-ink); color: var(--band); }

.hero, .work, .stack, .approach, .quotes, .close {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero { padding: 88px 0 36px; }

.kicker {
  margin: 0 0 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 500; letter-spacing: -0.03em; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.96;
  font-weight: 620;
}

.lede {
  max-width: 62ch;
  margin: 28px 0 0;
  font-size: 20px;
  color: var(--muted);
}

.lede.tight { margin-top: 12px; font-size: 18px; }

.hero-actions { display: flex; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 500;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn:hover { background: var(--accent); color: white; }

.stats {
  width: min(var(--max), calc(100% - 48px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div { padding: 22px 18px 22px 0; }

.stats strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.stats span { color: var(--muted); font-size: 14px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 8px;
}

.section-head h2, .approach h2, .close h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

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

.work { padding: 88px 0 20px; }

.cases { list-style: none; margin: 0; padding: 0; }

.cases li {
  display: grid;
  grid-template-columns: 52px 1.4fr 0.7fr 0.7fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cases li:last-child { border-bottom: 1px solid var(--line); }

.idx {
  font-family: "Fraunces", serif;
  color: var(--accent);
  font-size: 18px;
}

.cases h3 { margin: 0 0 4px; font-size: 28px; }

.role, .tags, .metric {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cases p { margin: 8px 0 0; }

.metric {
  font-family: "Fraunces", serif;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.metric a { color: var(--accent); }

.stack { padding: 72px 0; }

.stack ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
}

.stack li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: white;
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 24px 0 72px;
}

.approach ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.approach h3 { margin: 0 0 6px; font-size: 24px; }

.approach li p { margin: 0; color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 72px;
}

blockquote {
  margin: 0;
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}

blockquote p {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

blockquote footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.close { padding: 12px 0 88px; }

.close h2 { max-width: 16ch; margin: 0 0 24px; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 28px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .top nav { display: none; }
  .stats, .section-head, .approach, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cases li { grid-template-columns: 36px 1fr; }
  .metric, .tags { grid-column: 2; }
  .hero { padding-top: 48px; }
  h1 { max-width: none; }
}
