:root {
  color-scheme: light;

  --paper: #f2f1ed;
  --white: #fbfbf8;
  --ink: #171817;
  --muted: #686b66;
  --line: #c8cac4;

  --orange: #f05a28;

  --dark: #202521;
  --dark-text: #edf0e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  background: var(--paper);
  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 17px;
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure {
  margin: 0;
}

button,
a {
  font: inherit;
}


/* header */

.site-header {
  position: relative;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding:
    max(20px, env(safe-area-inset-top))
    max(26px, env(safe-area-inset-right))
    20px
    max(26px, env(safe-area-inset-left));

  border-bottom: 1px solid var(--line);
}

.name {
  color: var(--ink);

  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;

  text-decoration: none;
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a,
nav button {
  border: 0;
  padding: 0;

  background: transparent;
  color: var(--ink);

  font-size: 15px;
  text-decoration: none;

  cursor: pointer;
}

nav a:hover,
nav button:hover {
  text-decoration: underline;
}


/* hero */

.hero {
  position: relative;

  min-height: 86vh;
  min-height: 86dvh;

  display: grid;
  grid-template-columns: 80px 1fr;
  align-content: center;

  padding:
    70px
    clamp(28px, 6vw, 90px);

  border-bottom: 1px solid var(--line);
}

.hero-number {
  padding-top: 17px;

  color: var(--orange);

  font-size: 14px;
  font-weight: 700;
}

.hero-copy {
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 22px;

  color: var(--muted);

  font-size: 14px;
}

.hero h1 {
  margin: 0;

  max-width: 1050px;

  font-size: clamp(62px, 10vw, 142px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.intro {
  width: min(560px, 100%);

  margin: 55px 0 0 auto;

  font-size: clamp(19px, 2vw, 25px);
}

.hero-spec {
  position: absolute;
  right: clamp(28px, 6vw, 90px);
  bottom: 25px;

  display: flex;
  gap: 35px;

  color: var(--muted);

  font-size: 12px;
}


/* work */

.work {
  padding:
    85px
    clamp(24px, 5vw, 70px)
    140px;
}

.section-heading {
  display: flex;
  justify-content: space-between;

  margin-bottom: 70px;

  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;

  font-size: 14px;
}

.section-heading p {
  margin: 0;
}

.project {
  margin-bottom: 150px;
}

.project-image {
  position: relative;

  background: #d8dad4;

  overflow: hidden;
}

.image-index {
  position: absolute;
  right: 12px;
  bottom: 10px;

  padding: 4px 6px;

  background: var(--paper);

  font-size: 11px;
}


/* first project */

.project-large .project-image {
  height: min(72vw, 820px);
}

.project-large .project-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  margin-top: 30px;
}


/* common info */

.project-type {
  margin: 0 0 13px;

  color: var(--orange);

  font-size: 13px;
  font-weight: 700;
}

.project h2 {
  margin: 0;

  font-size: clamp(37px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-description {
  max-width: 550px;

  margin: 0;

  font-size: 19px;
}

dl {
  grid-column: 2;

  margin: 35px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 110px 1fr;

  border-top: 1px solid var(--line);

  padding: 9px 0;
}

dt {
  color: var(--muted);

  font-size: 13px;
}

dd {
  margin: 0;

  font-size: 13px;
}


/* second */

.project-split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
}

.project-split .project-info {
  max-width: 480px;
}

.project-split .project-description {
  margin-top: 35px;
}

.project-split dl {
  margin-top: 40px;
}

.project-split .project-image {
  height: 720px;
}


/* dark project */

.project-dark {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  grid-template-rows: auto auto;

  background: var(--dark);
  color: var(--dark-text);
}

.dark-title {
  padding: 45px;
}

.dark-title > span {
  display: block;

  margin-bottom: 55px;

  color: #a7ada6;

  font-size: 13px;
}

.project-dark h2 {
  max-width: 450px;
}

.project-dark figure {
  min-height: 720px;
}

.dark-notes {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 50px;

  padding: 35px 45px 45px;

  border-top: 1px solid #555b55;
}

.dark-notes p {
  margin: 0;

  max-width: 420px;
}

.numbers {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.numbers span {
  color: #abb0aa;

  font-size: 12px;
}

.numbers b {
  display: block;

  margin-bottom: 7px;

  color: var(--dark-text);

  font-size: 31px;
  font-weight: 400;
}


/* sketch */

.sketch-project {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 70px;
  align-items: center;

  margin-bottom: 20px;
}

.sketch-copy {
  max-width: 430px;
}

.sketch-copy p:last-child {
  margin-top: 35px;
}

.sketch-image {
  height: 670px;

  background: white;
}


/* process */

.process {
  padding:
    120px
    clamp(24px, 7vw, 110px);

  background: var(--white);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-label {
  margin: 0 0 80px;

  color: var(--muted);

  font-size: 14px;
}

.process ol {
  list-style: none;

  margin: 0;
  padding: 0;
}

.process li {
  display: grid;
  grid-template-columns: 70px 0.8fr 1.2fr;
  gap: 30px;

  padding: 25px 0;

  border-top: 1px solid var(--line);
}

.process li > span {
  color: var(--orange);

  font-size: 13px;
  font-weight: 700;
}

.process strong {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
}

.process li p {
  margin: 3px 0 0;

  max-width: 570px;

  color: var(--muted);
}


/* about */

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(50px, 10vw, 150px);

  padding:
    150px
    clamp(24px, 7vw, 110px);
}

.about h2 {
  margin: 0;

  max-width: 800px;

  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.about-copy {
  align-self: end;

  max-width: 440px;

  font-size: 19px;
}


/* bench */

.bench {
  margin:
    20px
    clamp(24px, 7vw, 110px)
    130px;

  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.bench-label {
  display: flex;
  justify-content: space-between;

  padding: 10px 0;

  border-bottom: 1px solid var(--ink);

  font-size: 11px;
  font-weight: 700;
}

.bench-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bench-items p {
  margin: 0;

  min-height: 100px;

  display: flex;
  align-items: flex-end;

  padding: 14px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bench-items p:nth-child(3n) {
  border-right: 0;
}


/* contact */

.contact {
  min-height: 65vh;
  min-height: 65dvh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding:
    70px
    clamp(24px, 7vw, 110px);

  background: var(--orange);
  color: #16120e;
}

.contact p {
  margin: 0;

  font-size: clamp(43px, 8vw, 105px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact button {
  appearance: none;

  width: fit-content;

  border: 0;
  border-bottom: 1px solid currentColor;

  padding: 0 0 3px;

  background: transparent;
  color: inherit;

  font-size: 19px;

  cursor: pointer;
}


/* footer */

footer {
  display: flex;
  justify-content: space-between;

  padding:
    18px
    max(24px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));

  background: var(--ink);
  color: #e6e6df;

  font-size: 12px;
}


/* mobile */

@media (max-width: 720px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  nav {
    gap: 13px;
  }

  .hero {
    min-height: 89dvh;

    display: block;

    padding:
      85px
      20px
      75px;
  }

  .hero-number {
    margin-bottom: 35px;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 92px);
  }

  .intro {
    margin: 45px 0 0;
  }

  .hero-spec {
    left: 20px;
    right: 20px;
    bottom: 20px;

    justify-content: space-between;

    gap: 15px;
  }

  .work {
    padding:
      65px
      18px
      90px;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .project {
    margin-bottom: 100px;
  }

  .project-large .project-image {
    height: 64dvh;
  }

  .project-large .project-info,
  .project-split,
  .sketch-project {
    grid-template-columns: 1fr;
  }

  .project-large .project-info {
    gap: 28px;
  }

  dl {
    grid-column: auto;
  }

  .project-split {
    gap: 40px;
  }

  .project-split .project-image {
    height: 62dvh;
  }

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

  .dark-title {
    padding: 30px 22px 35px;
  }

  .dark-title > span {
    margin-bottom: 30px;
  }

  .project-dark figure {
    min-height: 60dvh;
  }

  .dark-notes {
    grid-column: 1;

    grid-template-columns: 1fr;

    padding: 30px 22px;
  }

  .numbers {
    margin-top: 20px;
  }

  .sketch-project {
    gap: 35px;
  }

  .sketch-image {
    height: 60dvh;
  }

  .process {
    padding:
      90px
      20px;
  }

  .process-label {
    margin-bottom: 50px;
  }

  .process li {
    grid-template-columns: 42px 1fr;
  }

  .process li p {
    grid-column: 2;
  }

  .about {
    grid-template-columns: 1fr;

    padding:
      100px
      20px;

    gap: 55px;
  }

  .bench {
    margin:
      0
      20px
      90px;
  }

  .bench-items {
    grid-template-columns: 1fr 1fr;
  }

  .bench-items p:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .bench-items p:nth-child(2n) {
    border-right: 0;
  }

  .contact {
    min-height: 72dvh;

    padding:
      55px
      20px;
  }
}