:root {
  --background: #ffffff;
  --foreground: #111111;
  --accent: #ff3d19;
  --gutter: clamp(18px, 2.5vw, 42px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

section[id],
footer[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px;
  color: #111111;
  background: #ffffff;
  overflow: hidden;
  mix-blend-mode: normal;
}

.logo,
.menu-button,
.navigation {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
  font-weight: 700;
  text-transform: none;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navigation {
  display: flex;
  gap: 28px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.navigation a {
  position: relative;
}

.navigation a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero */

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  color: #111111;
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 110%;
  object-fit: cover;
  transform: scale(1.03);
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0;
}

.eyebrow,
.section-number {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero h1 {
  max-width: 1200px;
  margin: 25px 0;
  font-size: clamp(4.2rem, 12vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.hero-link {
  width: max-content;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

/* Statement */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--gutter);
  align-items: center;
  max-width: 1400px;
  min-height: 80vh;
  margin: 0 auto;
  padding: 100px var(--gutter);
}

.large-statement {
  max-width: 1200px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 6vw, 7rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

/* Projects */

.projects {
  padding: 84px var(--gutter);
  background: #ffffff;
  color: #111111;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.construction-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38vh;
  max-width: 1400px;
  margin: 0 auto;
}

.construction-message p {
  margin: 0;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.project {
  margin-bottom: 72px;
}

.project-wide {
  width: min(100%, 1100px);
  margin: 0 auto 88px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

.project-lower {
  margin-top: 0;
}

.project-image-wrapper {
  overflow: hidden;
  background: #f4f4f4;
}

.project img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2, .7, .2, 1);
}

.project-wide img {
  aspect-ratio: 16 / 9;
}

.project:hover img {
  transform: scale(1.035);
}

.project-information {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.35);
  font-size: 13px;
  text-align: center;
}

.project-information h3 {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

/* Studio */

.studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  max-width: 1400px;
  min-height: auto;
  margin: 0 auto;
  padding: 160px var(--gutter) 52px;
  text-align: center;
}

.studio-copy {
  width: 100%;
  text-align: center;
}

.studio-copy h2 {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.studio-copy p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  line-height: 1.32;
  text-align: center;
}

/* Footer */

.footer {
  min-height: 75vh;
  padding: 72px var(--gutter) 30px;
  background: #111111;
  color: #ffffff;
}

.footnote {
  margin: 70px 0 10px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
  opacity: 0.9;
}

.contact-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: min(100%, 520px);
  text-align: center;
}

.email,
.phone {
  display: inline-block;
  margin-top: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}

.nzia-logo {
  display: block;
  width: 34ch;
  max-width: 100%;
  height: auto;
  margin: 24px auto 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  margin-top: 120px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  text-align: center;
  align-items: center;
}

@keyframes mosaic-shift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 160px 160px, 160px 160px;
  }
}

/* Scroll reveals */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  section[id],
  footer[id] {
    scroll-margin-top: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 48px;
    padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  }

  .logo {
    top: 50%;
    font-size: 28px;
    transform: translate(-50%, -50%);
  }

  .menu-button {
    display: block;
    justify-self: end;
    z-index: 101;
  }

  .navigation {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 96px var(--gutter) 40px;
    color: white;
    background: #111111;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
  }

  .navigation.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .navigation a {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-transform: none;
  }

  .statement,
  .section-heading,
  .studio {
    grid-template-columns: 1fr;
  }

  .statement {
    min-height: 65vh;
    padding-top: 84px;
  }

  .large-statement {
    margin-top: 24px;
  }

  .projects {
    padding-top: 82px;
  }

  .section-heading {
    gap: 28px;
    margin-bottom: 42px;
  }

  .project-wide {
    width: 100%;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-lower {
    margin-top: 0;
  }

  .project-information {
    grid-template-columns: 35px 1fr;
  }

  .project-information span:last-child {
    grid-column: 2;
  }

  .studio {
    min-height: auto;
    padding-top: 100px;
  }

  .studio-copy {
    margin-top: 18px;
  }

  .studio-copy p {
    margin-top: 0;
  }

  .footer {
    min-height: 60vh;
    padding-top: 56px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    margin-top: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}