:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #5a5a5a;
  --line: #e8e8e8;
  --max: 1320px;
  --pad: clamp(28px, 5vw, 72px);
  --gap-x: clamp(32px, 4vw, 64px);
  --gap-y: clamp(48px, 6vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 30px;
}

.brand {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* HOMEPAGE HERO */

.intro {
  padding: clamp(34px, 6vw, 84px) 0 clamp(64px, 8vw, 110px);
}

.intro h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.tagline {
  max-width: 900px;
  margin: 32px 0 0;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.015em;
}

/* HOMEPAGE GRID */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.project-card {
  margin: 0;
}

.project-card a {
  display: block;
  overflow: hidden;
  cursor: pointer;
  background: #f3f3f3;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #eeeeee;
  transition:
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 650ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card a:hover img,
.project-card a:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.04) saturate(1.04);
  opacity: 0.92;
}

.project-card figcaption {
  display: none;
}

/* BASIC TEXT PAGES */

.page-copy {
  max-width: 960px;
  padding: clamp(70px, 9vw, 130px) 0 clamp(90px, 10vw, 150px);
}

.page-copy h1 {
  max-width: 780px;
  margin: 0 0 56px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.page-copy p {
  margin: 0 0 1.15em;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* TESTIMONIALS */

.testimonials-page {
  max-width: 1120px;
}

.testimonials-page h1 {
  max-width: 720px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.testimonial-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 84px);
  max-width: 920px;
}

.testimonial {
  margin: 0;
  padding: 0 0 clamp(42px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.testimonial p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.testimonial footer {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

/* PROJECT PAGES */

.work-hero {
  max-width: 900px;
  padding: clamp(80px, 10vw, 150px) 0 clamp(50px, 7vw, 90px);
}

.work-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0 0 36px;
}

.work-copy {
  max-width: 760px;
}

.work-copy p {
  margin: 0 0 1.15em;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.back-link {
  display: inline-block;
  margin-bottom: 44px;
  font-size: 15px;
  color: var(--muted);
}

.work-images {
  display: grid;
  gap: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.work-images figure {
  margin: 0;
}

.work-images img {
  width: 100%;
  height: auto;
}

/* PROJECT NAV */

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 0 96px;
  border-top: 1px solid var(--line);
}

.project-nav a {
  font-size: 15px;
  color: var(--muted);
}

.project-nav span {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
}

/* FOOTER */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid #eeeeee;
  font-size: 13px;
  color: var(--muted);
}

/* MOBILE */

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 88px;
    padding-top: 24px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    gap: 18px;
    font-size: 15px;
  }

  .intro {
    padding: 48px 0 52px;
  }

  .intro h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .tagline {
    margin-top: 24px;
    font-size: 19px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }

  .page-copy h1 {
    font-size: clamp(38px, 10vw, 56px);
    margin-bottom: 44px;
  }

  .testimonial p {
    font-size: 20px;
  }

  .site-footer,
  .project-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}