:root {
  --background: #fafafa;
  --ink: #111;
  --body: rgba(0, 0, 0, 0.4);
  --muted: #b3b3b3;
  --content-width: 1100px;
  --page-gutter: 3vw;
  --font: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background: var(--background);
  font: 400 16px/2 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 48px var(--page-gutter) 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.site-header [aria-current="page"] {
  color: var(--ink);
}

.header-projects {
  justify-self: start;
}

.site-title {
  justify-self: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-self: end;
  gap: 23px;
}

.menu-toggle {
  display: none;
}

.home-intro {
  display: grid;
  min-height: 585px;
  padding: 208px var(--page-gutter) 160px;
  place-items: start center;
}

.home-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 3.125vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.7;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 var(--page-gutter) var(--page-gutter);
}

.project-card {
  min-height: min(41.3vw, 683px);
  overflow: hidden;
  background: var(--project-background);
}

.project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project-card a {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
}

.project-card img {
  width: 58%;
  max-height: 82%;
  object-fit: contain;
  transition: opacity 180ms ease, transform 220ms ease;
}

.project-card--airbutler img {
  width: 60.5%;
}

.project-card--ready-today img {
  width: 48%;
  max-height: 68%;
}

.project-card--baseline img {
  width: 72%;
  box-shadow: 0 20px 55px rgba(27, 54, 35, 0.16);
}

.project-card h2 {
  position: absolute;
  inset: 50% auto auto 50%;
  margin: 0;
  color: rgba(250, 250, 250, 0.74);
  font-size: clamp(28px, 2.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: color 180ms ease;
}

.project-card a:hover img,
.project-card a:focus-visible img {
  opacity: 0.72;
  transform: scale(1.015);
}

.project-card a:hover h2,
.project-card a:focus-visible h2 {
  color: #fff;
}

.project-card--ready-today h2,
.project-card--ready-today a:hover h2,
.project-card--ready-today a:focus-visible h2 {
  color: #0a2945;
}

.project-card--baseline h2,
.project-card--baseline a:hover h2,
.project-card--baseline a:focus-visible h2 {
  padding: 0.15em 0.45em;
  color: #202421;
  background: rgba(255, 255, 255, 0.8);
}

.page-statement {
  display: grid;
  min-height: 650px;
  padding: 190px var(--page-gutter) 120px;
  place-items: start center;
}

.page-statement p,
.page-statement h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 3.125vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.7;
  text-align: center;
}

.about-content,
.contact-content {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
  margin: 0 auto;
  padding-bottom: 130px;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 84px;
  align-items: start;
}

.about-copy h1 {
  margin: 0 0 46px;
  color: #333;
  font-size: clamp(34px, 2.6vw, 43px);
  line-height: 1.4;
}

.about-copy h2 {
  margin: 0 0 24px;
  color: #333;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
}

.about-copy p {
  margin: 0 0 24px;
}

.about-copy strong {
  color: #555;
  font-weight: 700;
}

.about-copy a,
.contact-content a {
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.about-portrait {
  margin: 104px 0 0;
}

.about-portrait img {
  width: 100%;
}

.contact-content {
  max-width: 684px;
}

.contact-content > p {
  margin: 0 0 42px;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form label {
  display: grid;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form label span {
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  color: #333;
  background: transparent;
  font: inherit;
  line-height: 1.5;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #777;
  outline: 1px solid #777;
  outline-offset: 1px;
}

.contact-form button {
  justify-self: start;
  padding: 14px 24px;
  border: 0;
  color: #fff;
  background: #333;
  font: 700 12px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-detail {
  padding-top: 95px;
}

.project-intro {
  width: min(calc(100% - (2 * var(--page-gutter))), 1455px);
  margin: 0 auto;
  padding: 0 0 80px;
}

.project-intro h1 {
  margin: 0 0 25px;
  color: #000;
  font-size: clamp(52px, 4.167vw, 69px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.project-intro p {
  max-width: 920px;
  margin: 0;
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
}

.project-images {
  display: grid;
  gap: 80px;
  padding: 0 var(--page-gutter);
}

.project-image {
  display: grid;
  margin: 0;
  padding: clamp(44px, 6vw, 100px);
  background: #fff;
  place-items: center;
}

.project-image img {
  width: 100%;
}

.image-chatty-banner {
  background: #333;
}

.image-chatty-banner img {
  max-width: 1050px;
}

.image-chatty-demo {
  background: transparent;
}

.image-chatty-demo img {
  width: 268px;
}

.project-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 85px var(--page-gutter) 100px;
  color: var(--muted);
  font-size: 14px;
}

.project-pagination [aria-current="page"] {
  color: var(--ink);
}

.not-found {
  display: grid;
  min-height: calc(100vh - 120px);
  padding: 180px var(--page-gutter);
  place-content: start center;
  text-align: center;
}

.not-found .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 10px 0 24px;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.2;
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 24px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 28px;
  }

  .header-projects {
    display: none;
  }

  .site-title {
    justify-self: start;
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
    padding: 5px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: 400 14px/1 var(--font);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: var(--page-gutter);
    display: none;
    min-width: 130px;
    padding: 14px 18px;
    background: var(--background);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  }

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

  .home-intro,
  .page-statement {
    min-height: 380px;
    padding-top: 125px;
    padding-bottom: 90px;
  }

  .home-intro h1,
  .page-statement p,
  .page-statement h1 {
    font-size: 34px;
    line-height: 1.35;
    text-align: left;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-card,
  .project-card:last-child:nth-child(odd) {
    grid-column: auto;
    min-height: 76vw;
  }

  .project-card img,
  .project-card--airbutler img {
    width: 72%;
  }

  .project-card--ready-today img {
    width: 54%;
  }

  .project-card--baseline img {
    width: 80%;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-portrait {
    grid-row: 1;
    margin: 0;
  }

  .project-detail {
    padding-top: 85px;
  }

  .project-intro {
    padding-bottom: 55px;
  }

  .project-intro h1 {
    font-size: 48px;
  }

  .project-images {
    gap: 32px;
    padding: 0;
  }

  .project-image {
    padding: 35px 24px;
  }

  .project-pagination {
    justify-content: flex-start;
    gap: 10px 18px;
    padding-top: 60px;
  }
}
