:root {
  --paper: #f5f6f3;
  --paper-2: #eceee7;
  --ink: #101318;
  --muted: #59616d;
  --soft: #8a919c;
  --rule: #d9dde3;
  --rule-dark: #c3c9d2;
  --accent: #1f4fd8;
  --accent-ink: #173aa3;
  --signal: #d9552f;
  --tint: #eef1f6;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 246, 243, .92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  flex: none;
}
.brand:hover { text-decoration: none; }
.mark-wrap { display: inline-flex; width: 22px; height: 22px; color: var(--accent); }
.mark { width: 22px; height: 22px; }
.brand-slash { color: var(--soft); font-weight: 400; }
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}
.main-nav a {
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

.header-cta {
  flex: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 1px;
  transition: background .15s ease, color .15s ease;
}
.header-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: .99; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
}

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

.meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--soft);
  margin: 0 0 10px;
}

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  font-size: 14px;
  letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.text-link {
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 2px;
}
.text-link:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero { border-bottom: 1px solid var(--rule); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(64px, 9vw, 120px) 0 clamp(52px, 7vw, 86px);
  align-items: start;
}

.hero-copy h1 { max-width: 14ch; text-wrap: balance; }
.hero-copy .lede { margin-top: 24px; }

.hero-aside {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 3vw, 40px);
}

.focus-list { list-style: none; margin: 0 0 20px; padding: 0; }
.focus-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.focus-list span { color: var(--muted); }
.focus-list strong { font-weight: 500; }

.aside-note { font-size: 13.5px; line-height: 1.6; color: var(--soft); }

/* ---------- sections ---------- */

.section { padding: clamp(54px, 7vw, 90px) 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(30px, 4vw, 48px); }
.section-head h2 { max-width: 20ch; }
.section-lede { color: var(--muted); margin-top: 12px; max-width: 46ch; }

.row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- work index ---------- */

.work-list { border-bottom: 1px solid var(--rule); }

.work-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 190px 72px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.work-row:first-child { border-top: 2px solid var(--ink); }
.work-row:hover { text-decoration: none; }
.work-row:hover .work-title strong { color: var(--accent); }

.work-no { font-family: var(--mono); font-size: 11.5px; color: var(--soft); }
.work-title strong { display: block; font-size: 1.22rem; font-weight: 600; letter-spacing: -.015em; }
.work-title span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; max-width: 62ch; }
.work-sector {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
}
.work-year { font-family: var(--mono); font-size: 11.5px; text-align: right; color: var(--soft); }

/* ---------- practice / stats ---------- */

.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.practice { border-top: 1px solid var(--rule-dark); padding: 24px 0 32px; }
.practice .index {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--soft);
  margin-bottom: 13px;
}
.practice h3 { margin-bottom: 8px; }
.practice p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- notes cards ---------- */

.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.note-card { border-top: 1px solid var(--rule-dark); }
.note-card a { display: block; padding: 20px 0 28px; color: var(--ink); text-decoration: none; }
.note-card a:hover { text-decoration: none; }
.note-card h3 { margin-bottom: 9px; text-wrap: balance; }
.note-card p { color: var(--muted); font-size: 14.5px; }
.note-card .arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.note-card a:hover h3 { color: var(--accent); }
.note-card a:hover .arrow { border-bottom-color: var(--accent); }

/* ---------- cta ---------- */

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(46px, 6vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: var(--paper); max-width: 22ch; }
.cta-band p { color: #b6bcc6; margin-top: 12px; max-width: 50ch; font-size: 15px; }

/* ---------- page head ---------- */

.page-head { padding: clamp(54px, 7vw, 96px) 0 clamp(34px, 4.5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 18ch; text-wrap: balance; }
.page-head .lede { margin-top: 20px; }

/* ---------- prose ---------- */

.prose { font-size: 17px; line-height: 1.72; color: #24272e; }
.prose h2 {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  margin: 2.1em 0 .6em;
  letter-spacing: -.02em;
}
.prose h3 { margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

.plain-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.plain-list li {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  color: var(--muted);
  font-size: 15px;
}
.plain-list li:first-child { border-top: 0; }

.callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 2em 0;
  color: var(--ink);
  font-size: 16px;
}

.small { font-size: 13px; color: var(--soft); }

/* ---------- about / contact ---------- */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 1.4em 0 2.4em; }
.principles > div { border-top: 1px solid var(--rule-dark); padding-top: 16px; }
.principles h3 { margin-bottom: 7px; font-size: 1.05rem; }
.principles p { font-size: 14.5px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; margin-bottom: 36px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: 12px; }
.big-mail {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
  word-break: break-word;
}
.contact-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- case study ---------- */

.case { padding: clamp(44px, 6vw, 72px) 0 clamp(54px, 7vw, 84px); }
.breadcrumb {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--soft);
  margin: 0 0 28px;
}
.breadcrumb span { color: var(--rule-dark); margin: 0 6px; }

.case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.case-title h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); max-width: 18ch; }
.case-title .lede { margin-top: 20px; }

.case-facts dl { margin: 0; display: grid; gap: 12px; }
.case-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 9px;
}
.case-facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
}
.case-facts dd { margin: 0; font-size: 13.5px; text-align: right; }

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  gap: clamp(40px, 6vw, 80px);
  padding-top: 44px;
  align-items: start;
}
.case-main.prose { font-size: 17.5px; }
.case-main.prose h2 { margin-top: 1.9em; }
.case-main.prose h2:first-child { margin-top: 0; }

.case-main blockquote {
  margin: 2.2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
}

.case-side {
  position: sticky;
  top: 92px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.case-side h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 8px;
}
.role-list { list-style: none; padding: 0; margin: 0 0 16px; }
.role-list li { border-bottom: 1px solid var(--rule); padding: 9px 0; font-size: 14px; }

.case-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.next-case { text-align: right; color: var(--ink); max-width: 40ch; }
.next-case .eyebrow { margin-bottom: 8px; }
.next-case strong { display: block; font-size: 1.02rem; font-weight: 600; }

/* ---------- blog ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(44px, 6vw, 80px);
  align-items: start;
}

.blog-aside {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.latest { display: block; color: var(--ink); padding-bottom: 18px; text-decoration: none; }
.latest:hover { text-decoration: none; }
.latest .meta { margin-bottom: 7px; }
.latest strong { display: block; font-size: 1.12rem; line-height: 1.3; margin-bottom: 8px; }
.latest span:last-child { display: block; color: var(--muted); font-size: 13.5px; }
.latest:hover strong { color: var(--accent); }

.blog-aside hr { border: 0; border-top: 1px solid var(--rule); margin: 18px 0; }
.aside-links { list-style: none; padding: 0; margin: 18px 0 0; }
.aside-links li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }

.year-block { margin-bottom: 38px; }
.year {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 0;
}

.note-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 54px;
  gap: 26px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.note-row:hover { text-decoration: none; }
.note-row:hover strong { color: var(--accent); }
.note-date { font-family: var(--mono); font-size: 10.5px; color: var(--soft); }
.note-main strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 5px; }
.note-main span { display: block; color: var(--muted); font-size: 14px; }
.note-read { font-family: var(--mono); font-size: 10.5px; color: var(--soft); text-align: right; }

/* ---------- article ---------- */

.article { padding: clamp(44px, 6vw, 76px) 0 clamp(54px, 7vw, 84px); }
.article h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 18ch; text-wrap: balance; }
.article .lede { margin-top: 20px; }
.article-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }

.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  margin-top: 34px;
}
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: .82;
  padding: 7px 10px 0 0;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
}
.article-body h2 {
  font-family: var(--sans);
  font-size: 1.42rem;
  margin: 2.1em 0 .6em;
  letter-spacing: -.02em;
}

.article-foot { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--rule); }
.related { list-style: none; padding: 0; margin: 18px 0 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #e9ebef; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr .8fr; gap: 40px; }
.footer-brand p { color: #99a1ad; font-size: 13.5px; max-width: 34ch; margin-top: 14px; }
.brand-light { color: #fff; }
.brand-light .mark-wrap { color: #7d9bff; }
.site-footer h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #98a0ac;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #e9ebef; }
.site-footer a:hover { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #2a2f37;
  margin-top: 44px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8b929e;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .case-head, .case-body, .blog-layout, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 24px; }
  .case-side, .blog-aside { position: static; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-grid, .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-row { grid-template-columns: 44px minmax(0, 1fr); }
  .work-sector, .work-year { grid-column: 2; text-align: left; }
  .note-row { grid-template-columns: 120px minmax(0, 1fr); }
  .note-read { display: none; }
  .cta-inner, .row-head, .case-foot { flex-direction: column; align-items: flex-start; }
  .next-case { text-align: left; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; min-height: 0; }
  .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    padding-top: 5px;
    border-top: 1px solid var(--rule);
    overflow-x: auto;
    font-size: 13px;
  }
  .main-nav a { padding: 6px 0; white-space: nowrap; }
  .header-cta { margin-left: auto; }
  .brand-sub, .brand-slash { display: none; }
  .note-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .note-row { grid-template-columns: 1fr; gap: 5px; }
  .note-date { order: 2; }
  .footer-base { flex-direction: column; }
}
