:root {
  --ink: #16191c;
  --ink-soft: #4a5158;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --rule: #d2cbbd;
  --slate: #50748a;
  --gold: #f4aa2f;
  --hero: #0e1418;
  --hero-text: #f4f0e8;
  --hero-muted: #b8c1c7;
  --max: 70rem;
  --header-h: 4.25rem;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--slate);
}

a:hover {
  color: var(--ink);
}

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

::selection {
  background: #50748a;
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.75rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2.75rem), var(--max));
  margin-inline: auto;
}

.hero,
.work,
.recent,
.approach,
.contact {
  scroll-margin-top: var(--header-h);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--hero);
  color: var(--hero-text);
  border-bottom: 1px solid transparent;
}

.site-header.is-light {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  width: 2.1rem;
  height: auto;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--hero-text);
}

.site-header.is-light .site-nav a {
  color: var(--ink-soft);
}

.site-header.is-light .site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

/* Hero */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: var(--hero);
  color: var(--hero-text);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: 50%;
  width: min(24rem, 48vw);
  height: min(24rem, 48vw);
  transform: translateY(-48%);
  background: url("../img/logo-icon.svg") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.h1-amp {
  color: #d5dce1;
  font-weight: 500;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--hero-muted);
}

.hero-actions {
  margin: 0 0 2.75rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  color: var(--ink);
  background: #ffc14d;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid #243038;
  list-style: none;
  color: var(--hero-muted);
}

/* Work */

.work {
  padding: 4.5rem 0 4.25rem;
}

.leads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.lead {
  display: flex;
  flex-direction: column;
  padding: 0 1.75rem;
  border-right: 1px solid var(--rule);
}

.lead:first-child {
  padding-left: 0;
}

.lead:last-child {
  padding-right: 0;
  border-right: 0;
}

.lead h3 {
  margin: 0 0 0.8rem;
  min-height: calc(1.25em * 2);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead-body {
  margin: 0;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.35rem;
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  min-height: 3.6rem;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.proof li {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

/* Recent work */

.recent {
  padding: 4.25rem 0 4.5rem;
  background: var(--paper-2);
}

.projects {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
  border-top: 1px solid var(--rule);
}

.projects li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}

.projects h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.projects p {
  margin: 0;
  color: var(--ink-soft);
}

/* Approach */

.approach {
  padding: 4.25rem 0 4.75rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(7.5rem, 11rem) 1fr;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.steps h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact */

.contact {
  padding: 4.5rem 0 4.75rem;
  background: var(--hero);
  color: var(--hero-text);
}

.contact .section-head h2 {
  color: var(--hero-text);
}

.promises {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.promises li {
  padding: 0.7rem 0;
  border-top: 1px solid #243038;
  color: var(--hero-muted);
}

.promises li:last-child {
  border-bottom: 1px solid #243038;
}

.contact-lines {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.contact-lines a {
  color: var(--hero-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.contact-lines a:hover {
  color: var(--gold);
}

.contact-hint {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #8b969d;
}

/* Footer */

.site-footer {
  background: #0a0f12;
  color: #8b969d;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-footer a {
  color: #c5ced3;
  text-decoration: none;
}

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

/* Breakpoints */

@media (max-width: 900px) {
  .leads {
    grid-template-columns: 1fr;
    padding-top: 0;
    border-top: 0;
  }

  .lead,
  .lead:first-child,
  .lead:last-child {
    padding: 1.5rem 0;
    border-right: 0;
    border-top: 1px solid var(--rule);
  }

  .lead h3 {
    min-height: 0;
  }

  .proof {
    min-height: 0;
  }

  .steps li {
    grid-template-columns: 2.2rem 1fr;
  }

  .steps p {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 1.75rem), var(--max));
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    color: inherit;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: inherit;
    border-bottom: 1px solid #243038;
    padding: 0.35rem 1.25rem 1rem;
  }

  .site-header.is-light .site-nav {
    border-bottom-color: var(--rule);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .hero::after {
    opacity: 0.04;
    right: -7rem;
  }

  .hero h1 {
    margin-bottom: 1.6rem;
  }

  .hero-actions {
    margin-bottom: 2.25rem;
  }

  .contact-hint {
    display: block;
    margin: 0.35rem 0 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}
