:root {
  --paper: #ece8df;
  --ink: #171716;
  --blue: #3156ec;
  --line: rgba(23, 23, 22, 0.2);
  --pad: clamp(20px, 3.2vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px var(--pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.nav {
  display: flex;
  justify-self: end;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}

.nav a,
.footer a {
  position: relative;
}

.nav a::after,
.footer a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.nav a:hover::after,
.footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero {
  min-height: 100svh;
  padding: clamp(120px, 15vh, 180px) var(--pad) 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  width: min(360px, 35vw);
  margin-left: auto;
  color: #54524d;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-title {
  margin: auto 0;
  padding: 5vh 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(55px, 10.25vw, 174px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero-title > span {
  display: block;
}

.hero-title > span:nth-child(3) {
  text-align: right;
  padding-right: 0.06em;
}

.hero-title-line {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 32px);
  color: var(--blue);
}

.hero-title em,
.about h2 em,
.contact h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
  text-transform: none;
}

.hero-orbit {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(64px, 8vw, 120px);
  height: clamp(64px, 8vw, 120px);
  color: var(--ink);
}

.hero-orbit svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 18s linear infinite;
}

.hero-orbit text {
  fill: currentColor;
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  letter-spacing: 0.11em;
}

.hero-orbit > span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2.4vw, 36px);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.hero-bottom p {
  width: min(430px, 50%);
  margin: 0;
  font-size: clamp(15px, 1.25vw, 20px);
}

.text-link {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.text-link span {
  color: var(--blue);
  font-size: 22px;
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translate(4px, 4px);
}

.section {
  padding: clamp(90px, 12vw, 180px) var(--pad);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.eyebrow {
  margin: 0;
  color: #5c5952;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.section-heading sup {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.filters {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 24px 0 54px;
}

.filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 9vw 2vw;
  align-items: start;
}

.project {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.project.is-hidden {
  display: none;
}

.project-large {
  grid-column: 1 / span 7;
}

.project-tall {
  grid-column: 9 / span 4;
  margin-top: 15vw;
}

.project-small {
  grid-column: 2 / span 4;
}

.project-wide {
  grid-column: 7 / span 6;
  margin-top: 9vw;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d5d0c6;
}

.project-large .project-image {
  aspect-ratio: 1.45 / 1;
}

.project-tall .project-image {
  aspect-ratio: 0.78 / 1;
}

.project-small .project-image {
  aspect-ratio: 0.82 / 1;
}

.project-wide .project-image {
  aspect-ratio: 1.4 / 1;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1),
    filter 0.5s ease;
}

.project:hover .project-image img {
  transform: scale(1.035);
  filter: saturate(1);
}

.project-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  font-size: 21px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.project:hover .project-arrow {
  opacity: 1;
  transform: translate(0);
}

.project-info {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.project-info h3 {
  margin: 0 0 3px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.project-info p,
.project-info > span {
  margin: 0;
  color: #68655e;
  font-size: 11px;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 6fr 3fr;
  gap: 5vw;
  margin-top: clamp(70px, 10vw, 160px);
  background: var(--ink);
  color: var(--paper);
}

.about-number {
  color: var(--blue);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(44px, 6vw, 90px);
  font-weight: 500;
  line-height: 0.8;
}

.about .eyebrow {
  color: #8b8983;
}

.about h2 {
  margin: clamp(52px, 7vw, 100px) 0 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 4.25vw, 66px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.about h2 em {
  color: var(--blue);
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  margin-top: 76px;
  font-size: clamp(14px, 1.15vw, 17px);
}

.about-copy p {
  margin: 0;
}

.services {
  align-self: end;
}

.services ol {
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid #464541;
  list-style: none;
}

.services li {
  padding: 15px 0;
  border-bottom: 1px solid #464541;
  font-size: 14px;
}

.services li span {
  display: inline-block;
  width: 34px;
  color: #77756f;
  font-size: 9px;
}

.contact {
  padding-bottom: 30px;
  background: var(--blue);
  color: #fff;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 20px;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.contact-top > p:last-child {
  margin: 0;
  font-size: 12px;
}

.contact h2 {
  margin: clamp(70px, 9vw, 140px) 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(54px, 11.4vw, 180px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-align: center;
  text-transform: uppercase;
}

.contact h2 em {
  display: inline-block;
  padding-left: 0.5em;
}

.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(16px, 3vw, 46px);
  letter-spacing: -0.05em;
}

.contact-mail span {
  transition: transform 0.3s ease;
}

.contact-mail:hover span {
  transform: translate(5px, -5px);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 90px;
  font-size: 10px;
  text-transform: uppercase;
}

.footer div {
  display: flex;
  gap: 24px;
}

.footer > a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
  }

  .menu-icon i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease;
  }

  .menu-open .menu-icon i:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-open .menu-icon i:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: var(--pad);
    background: var(--blue);
    color: #fff;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(32px, 10vw, 64px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-open .header {
    position: fixed;
    color: #fff;
  }

  .hero {
    min-height: 740px;
  }

  .hero-meta {
    width: 100%;
    margin: 0;
  }

  .hero-title {
    font-size: clamp(50px, 15vw, 90px);
  }

  .hero-title-line {
    flex-wrap: wrap;
  }

  .hero-title > span:nth-child(3) {
    text-align: left;
  }

  .hero-bottom p {
    width: 65%;
  }

  .project-grid {
    gap: 70px 16px;
  }

  .project-large,
  .project-wide {
    grid-column: 1 / -1;
  }

  .project-tall {
    grid-column: 6 / -1;
    margin-top: 0;
  }

  .project-small {
    grid-column: 1 / span 5;
  }

  .project-wide {
    margin-top: 0;
  }

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

  .about-number {
    position: absolute;
    top: var(--pad);
    right: var(--pad);
  }

  .about-content {
    padding-top: 80px;
  }

  .services {
    margin-top: 40px;
  }
}

@media (max-width: 540px) {
  .header {
    padding-top: 19px;
  }

  .hero {
    padding-top: 105px;
    padding-bottom: 24px;
  }

  .hero-meta {
    width: 80%;
  }

  .hero-title {
    line-height: 0.88;
  }

  .hero-title-line {
    justify-content: flex-start;
    gap: 8px;
  }

  .hero-orbit {
    width: 58px;
    height: 58px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-bottom p {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    margin-bottom: 34px;
    padding-bottom: 4px;
  }

  .filter {
    flex: 0 0 auto;
  }

  .project-grid {
    display: block;
  }

  .project {
    margin: 0 0 58px;
  }

  .project-large .project-image,
  .project-tall .project-image,
  .project-small .project-image,
  .project-wide .project-image {
    aspect-ratio: 0.95 / 1;
  }

  .project-arrow {
    opacity: 1;
    transform: none;
  }

  .about-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
  }

  .contact-top {
    gap: 20px;
  }

  .contact h2 {
    margin: 80px 0;
  }

  .contact h2 em {
    padding-left: 0;
  }

  .footer {
    grid-template-columns: 1fr auto;
    gap: 26px;
    margin-top: 65px;
  }

  .footer div {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
