:root {
  --page-pad-x: clamp(1.35rem, 3.55vw, 4.35rem);
  --ink: #080808;
  --muted: #333;
  --rule: #8c8c8c;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Bricolage Grotesque", sans-serif;
  background-image: url(assets/arc.svg);
  background-position: center bottom;
  background-repeat: no-repeat;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 0vw, 4.7rem) var(--page-pad-x) clamp(1.35rem, 2.7vw, 2.5rem);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(13rem, 1fr) minmax(16rem, 1fr);
  align-items: start;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 0.95rem);
  width: fit-content;
}

.brand-mark {
  width: clamp(4.15rem, 5vw, 5.25rem);
  height: auto;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-size: clamp(2.35rem, 3.15vw, 3rem);
  line-height: 0.83;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  top: 2px;
}

.studio-label {
  margin: 1.05rem 0 0;
  font-size: 13px;
  line-height: 1.12;
  justify-self: center;
  text-align: center;
}

.contact {
  margin: 1rem 0 0;
  font-style: normal;
  text-align: right;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.14rem;
}

.contact strong {
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.35rem;
}

.projects {
  margin-top: clamp(11rem, 26vh, 20.25rem);
}

.projects h1 {
  margin: 0 0 clamp(1.85rem, 3vw, 2.6rem);
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.31rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.75vw, 4.5rem);
}

.project-card {
  min-width: 0;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.5s ease;
}

.project-card img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

.project-card p {
  margin: 1.08rem 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.site-footer {
  margin-top: auto;
  padding-top: clamp(5rem, 15vh, 12.2rem);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .studio-label {
    justify-self: end;
    text-align: right;
  }

  .contact {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    margin-top: 1.5rem;
  }

  .projects {
    margin-top: clamp(5rem, 13vh, 8rem);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2rem;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding-top: 1.5rem;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  .studio-label,
  .contact {
    justify-self: auto;
    text-align: left;
    margin: 0;
  }

  .contact {
    letter-spacing: 0.08rem;
  }

  .contact strong,
  .projects h1 {
    letter-spacing: 0.22rem;
  }

  .projects {
    margin-top: 4.5rem;
  }

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

  .project-card p {
    margin-top: 0.8rem;
  }

  .site-footer {
    padding-top: 4.5rem;
  }
}
