:root {
  --ink: #17181a;
  --base: #f2f1ef;
  --grey-body: #4a4c50;
  --grey-hero: #55575b;
  --grey-quote: #6b6d70;
  --grey-label: #85878b;
  --hairline: rgba(23, 24, 26, 0.14);
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;

  --section-pad-y: clamp(64px, 12vh, 150px);
  --hero-pad-top: clamp(88px, 18vh, 200px);
  --hero-pad-bottom: clamp(72px, 14vh, 160px);
  --hero-line-height: 0.9;
  --hero-gradient-angle: 96deg;
}

@media (max-width: 859.98px) {
  :root {
    --section-pad-y: clamp(48px, 9vh, 112px);
    --hero-pad-top: clamp(66px, 13.5vh, 150px);
    --hero-pad-bottom: clamp(54px, 10.5vh, 120px);
    --hero-line-height: 0.8;
    --hero-gradient-angle: 128deg;
  }
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

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

::selection {
  background: var(--ink);
  color: var(--base);
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    background: #fff;
  }
}

.container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Hero */

.hero {
  padding: var(--hero-pad-top) clamp(20px, 5vw, 72px) var(--hero-pad-bottom);
  background: linear-gradient(180deg, #d2d4d5 0%, #dfe0e0 40%, #ebebea 74%, #f2f1ef 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(66px, 10.5vw, 161px);
  line-height: var(--hero-line-height);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  background-image: linear-gradient(var(--hero-gradient-angle), var(--ink) 0%, #2c2e32 44%, #8a8d92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.5vh, 40px);
  margin-top: clamp(34px, 6vh, 64px);
}

.hero-statement {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 50px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: pretty;
}

.hero-desc {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: var(--grey-hero);
  max-width: 46ch;
  text-wrap: pretty;
}

/* Section scaffolding */

section {
  padding: var(--section-pad-y) clamp(20px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 7vh, 88px);
  padding-bottom: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--hairline);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-head .num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--grey-label);
}

.body-text {
  margin: 0;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.65;
  color: var(--grey-body);
  text-wrap: pretty;
}

/* What we do */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 96px);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Featured work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-text h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.work-text p {
  max-width: 40ch;
}

.work-link {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: opacity 300ms ease;
}

.work-link:hover {
  opacity: 0.55;
}

.work-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.8vw, 28px);
  align-items: start;
}

.work-images img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(23, 24, 26, 0.13)) drop-shadow(0 3px 7px rgba(23, 24, 26, 0.07));
}

.work-images .screen-2 {
  margin-top: clamp(18px, 3.2vw, 44px);
}

.work-images .screen-3 {
  display: none;
  margin-top: clamp(36px, 6.4vw, 88px);
}

@media (min-width: 940px) {
  .work-images {
    grid-column: span 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .work-images .screen-3 {
    display: block;
  }
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

@media (max-width: 859.98px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-figure {
  margin: 0;
  justify-self: start;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  width: 100%;
}

.about-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-lead {
  margin: 0;
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.about-text .body-text {
  text-wrap: pretty;
}

.about-quote {
  margin: 6px 0 0;
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.5;
  font-style: italic;
  color: var(--grey-quote);
}

/* Contact */

.contact-email {
  display: inline-block;
  font-size: clamp(35px, 5.6vw, 82px);
  line-height: 1.04;
  word-break: normal;
  overflow-wrap: normal;
  font-weight: 500;
  letter-spacing: -0.04em;
  padding-bottom: 0.08em;
  background-image: linear-gradient(96deg, var(--ink) 0%, #2c2e32 44%, #8a8d92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 300ms ease;
}

.contact-email:hover {
  opacity: 0.6;
}

.contact-copy {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.6;
  color: var(--grey-body);
  max-width: 46ch;
}

/* Footer */

footer {
  padding: clamp(40px, 7vh, 72px) clamp(20px, 5vw, 72px) clamp(36px, 6vh, 60px);
  border-top: 1px solid var(--hairline);
}

footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--grey-quote);
  max-width: 60ch;
  display: flex;
  flex-direction: column;
}

/* Reveal-on-scroll (see js/main.js) */

[data-reveal] {
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
