:root {
  --black: #0a0a0a;
  --ink: #161616;
  --grey-700: #4a4a4a;
  --grey-500: #7a7a7a;
  --grey-200: #e4e4e4;
  --grey-100: #f4f4f4;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid #262626;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.wordmark-main {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
}

.wordmark-sub {
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #b5b5b5;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav a {
  text-decoration: none;
  color: #d0d0d0;
  padding: 6px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

/* Hero */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 104px 0 112px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: #9a9a9a;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 17ch;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  max-width: 20ch;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--grey-700);
}

.hero .lede {
  color: #c4c4c4;
}

.button {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 30px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--white);
}

/* Stats */

.stats {
  border-bottom: 1px solid var(--grey-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 44px 24px 44px 0;
}

.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--grey-200);
}

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--grey-700);
  max-width: 24ch;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-dark p,
.section-dark li {
  color: #c9c9c9;
}

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.split p + p {
  margin-top: 18px;
}

.list {
  margin-top: 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #2c2c2c;
}

.list li {
  padding: 14px 0;
  border-bottom: 1px solid #2c2c2c;
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--grey-200);
}

.card {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.card-index {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--grey-500);
  margin-bottom: 28px;
}

.card p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--grey-700);
}

/* Selected work */

.section-tint {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-200);
}

.work-list {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}

.work-item {
  display: grid;
  grid-template-columns: 56px 4fr 6fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--grey-200);
}

.work-index {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--grey-500);
  line-height: 1.5;
}

.work-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.work-kind {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.work-item p:not(.work-kind) {
  color: var(--grey-700);
}

.work-item p + p {
  margin-top: 16px;
}

/* Contact */

.section-contact {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-200);
}

.contact-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  overflow-wrap: anywhere;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-bottom-width: 2px;
}

/* Footer */

.site-footer {
  background: var(--black);
  color: #9a9a9a;
  font-size: 13.5px;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Small screens */

@media (max-width: 860px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .nav a[href="#consulting"] {
    display: none;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 28px 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--grey-200);
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
