:root {
  --ink: #17201f;
  --cream: #f4f2eb;
  --orange: #e89b59;
  --line: #d9d9d0;
  --blue: #cedad8
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif
}

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

button,
input {
  font: inherit
}

button {
  cursor: pointer
}

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

h1,
h2,
h3,
p {
  margin: 0
}

:focus-visible {
  outline: 3px solid #ad5b27;
  outline-offset: 4px
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -80px;
  background: #fff;
  padding: 1rem;
  z-index: 100
}

.skip-link:focus {
  top: 1rem
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.header {
  height: 88px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--cream)
}

.logo {
  display: flex;
  gap: .65rem;
  align-items: center;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  line-height: 1.1;
  letter-spacing: .04em
}

.logo-mark {
  font-size: 2.2rem;
  letter-spacing: -.15em
}

.logo-mark span {
  color: var(--orange)
}

.header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .82rem;
  font-weight: 700
}

.header nav a:hover {
  text-decoration: underline
}

.nav-pill {
  border: 1px solid var(--ink);
  padding: .8rem 1.1rem;
  border-radius: 30px
}

.hero {
  position: relative;
  min-height: 720px;
  background: #dce2de;
  display: grid;
  grid-template-columns: 58% 42%;
  overflow: hidden
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#13242322 .6px, transparent .6px);
  background-size: 6px 6px;
  opacity: .25
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 9vw, 9rem) 1.5rem 6rem max(5vw, calc((100vw - 1280px)/2));
  max-width: 1000px
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .7rem;
  font-weight: 700
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem
}

.hero .eyebrow span {
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(4rem, 7.4vw, 8.5rem);
  letter-spacing: -.08em;
  line-height: .91;
  margin: 1.7rem 0 2rem
}

.hero h1 em {
  font-style: normal;
  color: #52716d
}

.period {
  color: var(--orange)
}

.hero-copy>p:not(.eyebrow) {
  font-size: 1.1rem;
  max-width: 420px;
  line-height: 1.5
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem
}

.hero-buttons>span {
  font-size: .75rem;
  color: #53615e
}

.primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  padding: 1.1rem 1.35rem;
  font-size: .85rem;
  font-weight: 700;
  transition: transform .2s, background .2s
}

.primary:hover {
  background: #34514b;
  transform: translateY(-3px)
}

.primary span {
  font-size: 1.2rem
}

.hero-visual {
  position: relative;
  min-width: 0
}

.visual-card {
  position: absolute;
  box-shadow: 0 25px 45px #18302a33;
  background: #fff;
  padding: 7px
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.visual-card.one {
  width: 65%;
  height: 58%;
  top: 11%;
  left: 8%;
  transform: rotate(-7deg)
}

.visual-card.two {
  width: 54%;
  height: 48%;
  top: 38%;
  right: 2%;
  transform: rotate(8deg)
}

.visual-card.three {
  width: 35%;
  height: 34%;
  bottom: 5%;
  left: -4%;
  transform: rotate(-4deg)
}

.visual-stamp {
  position: absolute;
  right: 12%;
  top: 8%;
  background: var(--orange);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.1;
  transform: rotate(10deg);
  z-index: 2
}

.hero-bottom {
  position: absolute;
  bottom: 1.5rem;
  left: max(5vw, calc((100vw - 1280px)/2));
  right: 5vw;
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700
}

.intro {
  padding: clamp(5rem, 9vw, 9rem) max(5vw, calc((100vw - 1280px)/2));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  border-bottom: 1px solid var(--line)
}

.intro h2,
.projects h2,
.closing h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1;
  font-size: clamp(2.8rem, 5vw, 5.8rem)
}

.intro p:last-child {
  max-width: 650px;
  margin-top: 1.8rem;
  color: #5f6a66;
  line-height: 1.7
}

.projects {
  padding: clamp(5rem, 8vw, 8rem) max(5vw, calc((100vw - 1280px)/2))
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 3rem
}

.projects-head .eyebrow {
  margin-bottom: 1.2rem
}

.projects h2 {
  max-width: 780px
}

.projects h2 span {
  color: var(--orange)
}

.projects-head>p {
  max-width: 200px;
  line-height: 1.5;
  color: #63716d;
  font-size: .85rem
}

.toolbar {
  display: flex;
  gap: 2rem;
  align-items: start;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem
}

.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 910px
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 30px;
  padding: .6rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  transition: background .2s, color .2s
}

.filters button:hover,
.filters button[aria-pressed=true] {
  background: var(--ink);
  color: #fff
}

.search {
  position: relative;
  min-width: 230px
}

.search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  padding: .65rem 2rem .65rem .25rem;
  outline: 0
}

.search input:focus {
  border-bottom-width: 2px
}

.search span:not(.sr-only) {
  position: absolute;
  right: .2rem;
  top: .25rem;
  font-size: 1.5rem
}

.result-count {
  margin: 2rem 0 1rem;
  font-size: .78rem;
  color: #6c7672
}

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

.project-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e9e9e2;
  transition: transform .25s, box-shadow .25s
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px #22352c18
}

.project-card[hidden] {
  display: none
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: #d5d8d2
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.project-card:hover img {
  transform: scale(1.04)
}

.card-image span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .45rem .55rem;
  font-size: .72rem;
  font-weight: 700
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 230px
}

.card-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem
}

.card-meta span {
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .4rem .55rem
}

.card-body h3 {
  font-family: 'Space Grotesk';
  font-size: 1.45rem;
  letter-spacing: -.04em
}

.card-body p {
  font-size: .85rem;
  color: #6c7672;
  line-height: 1.55;
  margin: .6rem 0 1.5rem
}

.card-body>a {
  font-size: .82rem;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between
}

.card-body>a span {
  font-size: 1.1rem
}

.empty {
  padding: 3rem;
  text-align: center;
  background: white
}

.closing {
  background: #1e2a28;
  color: #fff;
  padding: clamp(5rem, 9vw, 9rem) max(5vw, calc((100vw - 1280px)/2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end
}

.closing .eyebrow {
  grid-column: 1/-1;
  color: var(--orange)
}

.closing h2 {
  max-width: 900px
}

.closing .primary {
  background: var(--orange);
  color: #14211d;
  white-space: nowrap
}

footer {
  background: #111b19;
  color: #b9c4c0;
  padding: 2.5rem max(5vw, calc((100vw - 1280px)/2));
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: .75rem
}

footer span:first-child {
  color: white;
  font-weight: 700
}

footer a:hover {
  text-decoration: underline
}

@media(max-width:1100px) {
  .hero {
    grid-template-columns: 1fr 35%
  }

  .hero h1 {
    font-size: clamp(3.8rem, 8vw, 7rem)
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .toolbar {
    flex-direction: column
  }

  .search {
    width: 100%
  }
}

@media(max-width:700px) {
  .header {
    height: 70px;
    padding: 0 1.25rem
  }

  .header nav {
    gap: 1rem
  }

  .header nav a:not(.nav-pill) {
    display: none
  }

  .hero {
    display: block;
    min-height: 760px
  }

  .hero-copy {
    padding: 5rem 1.25rem 20rem
  }

  .hero h1 {
    font-size: clamp(3.5rem, 13vw, 6rem)
  }

  .hero-visual {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    height: 260px
  }

  .visual-card.one {
    width: 40%;
    height: 75%;
    top: 2%;
    left: 7%
  }

  .visual-card.two {
    width: 42%;
    height: 70%;
    top: 20%;
    right: 10%
  }

  .visual-card.three {
    width: 24%;
    height: 60%;
    bottom: 0;
    left: 37%
  }

  .visual-stamp {
    width: 80px;
    height: 80px;
    font-size: .6rem;
    top: -25px;
    right: 5%
  }

  .hero-bottom {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem
  }

  .hero-buttons {
    flex-wrap: wrap
  }

  .intro,
  .projects,
  .closing {
    padding: 5rem 1.25rem
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .projects-head {
    display: block
  }

  .projects-head>p {
    margin-top: 1.5rem
  }

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

  .closing {
    grid-template-columns: 1fr
  }

  .closing .eyebrow {
    grid-column: auto
  }

  footer {
    padding: 2.5rem 1.25rem;
    flex-direction: column
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important
  }
}

.closing .whatsapp-contact {
  grid-column: 2;
  justify-self: start
}

@media(max-width:700px) {
  .closing .whatsapp-contact {
    grid-column: auto
  }
}