:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #555555;
  --link: #0012ff;
  --rule: #000000;
  --mono: 'Fira Code', 'JetBrains Mono', 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

h1 { font-family: var(--mono); font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-family: var(--mono); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1.35; }
h4 { font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.35; }
p { font-size: 16px; line-height: 1.6; }
small, .small { font-size: 13px; line-height: 1.5; }

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

/* ---------- NAV ---------- */
nav.top { border-bottom: 1px solid var(--ink); }
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 18px;
}
nav.top .brand { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
nav.top .brand:hover { color: var(--link); }
nav.top .nav-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.top .nav-right a:not(.btn) { font-size: 14px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--link); border-color: var(--link); text-decoration: none; }
.btn.lg { font-size: 15px; padding: 16px 30px; }

/* ---------- HERO (homepage) ---------- */
.hero { padding: 100px 0 90px; }
.hero .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  color: var(--ink);
  font-weight: 600;
}
.hero h1 { font-size: 36px; margin-bottom: 28px; max-width: 28ch; }
.hero p.lede { font-size: 16px; color: var(--ink); max-width: 70ch; margin-bottom: 36px; }
.hero .cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero .cta-row a:not(.btn) { font-size: 14px; }

/* ---------- LOGO BAND ---------- */
.logos {
  border-top: 1px solid var(--ink);
  padding: 60px 0 68px;
}
.logos .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 600;
}
.logos .logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  align-items: center;
}
.logos .logo-row img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: 0.82;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logos .logo-row img:hover { filter: grayscale(0%); opacity: 1; }

/* ---------- SECTION SCAFFOLD ---------- */
section { padding: 80px 0; border-top: 1px solid var(--ink); }
.section-head { margin-bottom: 48px; }
.section-head .num {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p.kicker { color: var(--muted); font-size: 14px; max-width: 60ch; }

/* ---------- SERVICES ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.service-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card .tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.service-card .tag.tech       { color: #0693e3; }
.service-card .tag.design     { color: #9b51e0; }
.service-card .tag.strategy   { color: #cf2e2e; }
.service-card .tag.operations { color: #008047; }
.service-card h3 { font-size: 16px; }
.service-card p { color: var(--ink); font-size: 14px; line-height: 1.6; }

/* ---------- PROJECTS ---------- */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.project {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project .emoji { font-size: 22px; line-height: 1; }
.project .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 600;
}
.project .meta .role { color: var(--ink); }
.project h3 { font-size: 16px; }
.project p { color: var(--ink); font-size: 14px; line-height: 1.6; }
.project ul.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project ul.tags li::before { content: "/ "; }
.project ul.tags li:first-child::before { content: ""; }
.project a.link { font-size: 13px; }

/* ---------- TESTIMONIALS ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.quote {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote blockquote { font-size: 14px; line-height: 1.65; color: var(--ink); font-weight: 400; }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote .who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink); }
.quote .who .name { font-size: 13px; font-weight: 700; }
.quote .who .role {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---------- NEWSLETTER ---------- */
.newsletter { padding: 80px 0; }
.newsletter .num {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.newsletter h2 { margin-bottom: 14px; max-width: 28ch; }
.newsletter p { font-size: 16px; max-width: 60ch; margin-bottom: 28px; }

/* ---------- FINAL CTA ---------- */
.final { text-align: left; padding: 100px 0; border-top: 1px solid var(--ink); }
.final h2 { font-size: 36px; margin-bottom: 24px; max-width: 24ch; line-height: 1.2; }
.final p { font-size: 16px; max-width: 60ch; margin-bottom: 36px; color: var(--ink); }

/* ---------- PAGE HEADER (subpages) ---------- */
.page-head { padding: 70px 0 56px; }
.page-head .crumb {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.page-head .crumb a { color: var(--link); }
.page-head h1 { font-size: 36px; margin-bottom: 18px; max-width: 28ch; }
.page-head p.intro { font-size: 16px; max-width: 70ch; color: var(--ink); }

/* ---------- ARTICLE BODY (subpages) ---------- */
.article-section { padding: 0 0 90px; border-top: 1px solid var(--ink); }
.article-section.with-pad-top { padding-top: 60px; }
.article {
  max-width: 70ch;
  padding: 60px 0 0;
}
.article h2 { margin: 40px 0 14px; font-size: 18px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 28px 0 10px; font-size: 15px; }
.article h4 { margin: 24px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.article p { margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.article ul, .article ol { margin: 0 0 18px 1.5em; }
.article li { margin-bottom: 6px; font-size: 15px; line-height: 1.65; }
.article a { color: var(--link); }
.article hr { margin: 32px 0; border: none; border-top: 1px solid var(--ink); }
.article .source-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

/* ---------- LATEST (TIMELINE LIST) ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.case {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case .emoji { font-size: 22px; line-height: 1; }
.case .year { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.case h3 { font-size: 16px; }
.case p { font-size: 14px; line-height: 1.6; }
.case a.link { font-size: 13px; align-self: flex-start; }

.latest-list { border-top: 1px solid var(--ink); }
.latest {
  border-bottom: 1px solid var(--ink);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 56px 160px 1fr;
  gap: 18px;
  align-items: baseline;
}
.latest .emoji { font-size: 22px; line-height: 1; }
.latest .date {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.latest .body { display: flex; flex-direction: column; gap: 6px; }
.latest .body .kind {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.latest .body .title { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.latest .body a.link { font-size: 13px; align-self: flex-start; }

/* ---------- MUSINGS LIST ---------- */
.musing-list {
  border-top: 1px solid var(--ink);
}
.musing {
  border-bottom: 1px solid var(--ink);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
}
.musing h3 { font-size: 17px; margin-bottom: 6px; }
.musing h3 a { color: var(--ink); text-decoration: none; }
.musing h3 a:hover { color: var(--link); text-decoration: underline; }
.musing p { font-size: 14px; color: var(--muted); margin: 0; }
.musing .arrow { font-family: var(--mono); font-size: 18px; color: var(--ink); }
.musing:hover .arrow { color: var(--link); }

/* ---------- FOOTER ---------- */
footer { padding: 36px 0 40px; border-top: 1px solid var(--ink); }
footer .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer .brand { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
footer a.brand:hover { color: var(--link); }
footer .links { display: flex; gap: 22px; font-size: 13px; flex-wrap: wrap; align-items: center; }
footer .social { display: inline-flex; gap: 14px; align-items: center; margin-left: 4px; }
footer .social a { display: inline-flex; align-items: center; justify-content: center; padding: 0; border-bottom: 0; text-decoration: none; color: var(--ink); }
footer .social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
footer .social a:hover { color: var(--link); }
footer .copy {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}


footer .copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
footer .copy a:hover { color: var(--link); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .service-grid, .project-list, .quote-grid { grid-template-columns: 1fr 1fr; }
  .logos .logo-row { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .logos .logo-row img { height: 110px; }
}
@media (max-width: 800px) {
  .case-grid { grid-template-columns: 1fr; }
  .latest { grid-template-columns: 36px 1fr; row-gap: 6px; }
  .latest .date { grid-column: 2; }
  .latest .body { grid-column: 2; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  nav.top .inner { padding: 18px 22px; flex-direction: column; align-items: flex-start; gap: 12px; }
  nav.top .nav-right { width: 100%; gap: 18px; }
  nav.top .nav-right .btn { background: transparent; color: var(--ink); border: 0; padding: 0; font-size: 14px; font-weight: 400; box-shadow: none; }
  nav.top .nav-right .btn:hover { background: transparent; border: 0; color: var(--link); }
  section { padding: 60px 0; }
  .hero { padding: 60px 0; }
  .hero h1, .final h2 { font-size: 28px; }
  .page-head h1 { font-size: 28px; }
  .service-grid, .project-list, .quote-grid { grid-template-columns: 1fr; }
  .logos .logo-row { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
  .logos .logo-row img { height: 80px; }
}
