:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --dim: #888888;
  --type-hero: clamp(72px, 9vw, 120px);
  --type-h2: clamp(32px, 4vw, 52px);
  --type-body: 18px;
  --type-label: 12px;
  --type-small: 11px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: var(--ink);
  border-radius: 0;
}

h1,
h2,
p,
a,
nav a {
  transition: opacity 0.7s ease-out;
}

.fade-target {
  opacity: 0;
}

.fade-target.fade-visible {
  opacity: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  padding-left: max(48px, 6vw);
  padding-right: max(48px, 6vw);
}

.site-header {
  padding-top: 32px;
}

.site-header .layout-grid {
  align-items: center;
}

.nav-brand {
  grid-column: 1 / 4;
  line-height: 0;
}

.nav-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-links {
  grid-column: 10 / 13;
  justify-self: end;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1;
  color: var(--dim);
  text-decoration: none;
}

.nav-links a:hover,
.hero-cta:hover,
.contact a:hover {
  text-decoration: underline;
}

main {
  position: relative;
}

.hero,
.approach,
.services,
.process,
.contact {
  position: relative;
}

.hero {
  min-height: 90vh;
  margin-bottom: 200px;
}

.hero-grid {
  padding-top: 17.5vh;
  row-gap: 0;
}

.hero-wordmark-wrap {
  grid-column: 1 / 13;
  margin-left: -6vw;
}
.hero-wordmark {
  width: 62vw;
  height: auto;
}

#kubism-dot {
  transform: translateX(-18px);
  opacity: 0;
}

.hero-title {
  grid-column: 1 / 11;
  margin-top: 40vh;
  margin-left: 15vw;
  font-size: var(--type-hero);
  font-weight: 500;
  line-height: 1.05;
}

.hero-body,
.approach p,
.services-grid p,
.process-grid p {
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.hero-body {
  grid-column: 7 / 13;
  margin-top: 156px;
  margin-left: 5vw;
  max-width: 560px;
}

.hero-cta {
  grid-column: 7 / 13;
  margin-top: 48px;
  margin-left: 5vw;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.approach {
  margin-bottom: 160px;
}

.approach .layout-grid {
  margin-top: 360px;
  margin-left: 15vw;
}

.approach p {
  font-size: 22px; /* zamiast 18px */
  grid-column: 3 / 10;
}

.selected-work {
  margin-top: 400px;
  margin-bottom: 200px;
  position: relative;
}

.selected-work-content {
  grid-column: 3 / 12;
  display: grid;
  margin-top: 102px;
  row-gap: 64px;
}

.selected-work-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
}

.selected-work-image-wrap {
  width: 100%;
}

.selected-work-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.services {
  padding-top: 120px;
  margin-left: -5vh;
  margin-bottom: 200px;
}

.services .layout-grid {
  margin-top: 120px;
}

.services-grid {
  grid-column: 7 / 13;
  margin-left: 10vw;
  margin-top: 102px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 48px;
  column-gap: 4vw;
}

.services-grid article:first-child {
  transform: translate(5vw, -6vh);
}

.services-grid article:nth-child(3) {
  transform: translate(-5vh, 6vh);
}

.section-label {
  grid-column: 1 / 3;
  margin: 0 0 48px;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.process-grid article {
  margin: 0;
}

.services-grid h2,
.process-grid h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.process {
  padding-top: 120px;
  margin-top: 240px;
  margin-bottom: 200px;
}

.process-grid {
  grid-column: 4 / 11;
  margin-left: -10vh;
  margin-top: 102px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 96px;
}

.process-grid article:nth-child(2) {
  transform: translateX(2.5vh);
}

.process-grid article:nth-child(3) {
  transform: translateX(5vh);
}

.process-grid article:nth-child(4) {
  transform: translateX(7.5vh);
}

.item-number {
  margin: 0 0 16px;
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact {
  margin-top: 160px;
  margin-bottom: 160px;
  padding-bottom: 160px;
}

.contact .layout-grid {
  margin-top: 360px;
}

.contact h2 {
  grid-column: 1 / 13;
  margin-left: 23vw;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
}

.contact a {
  grid-column: 1 / 13;
  margin-left: 23vw;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

.site-footer {
  padding-bottom: 32px;
}

.site-footer p {
  margin: 0;
  font-size: var(--type-small);
  font-weight: 400;
  color: var(--dim);
}

.site-footer p:first-child {
  grid-column: 1 / 4;
}

.site-footer p:last-child {
  grid-column: 10 / 13;
  justify-self: end;
}

@media (max-width: 768px) {
  .layout-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-brand {
    grid-column: 1 / 6;
  }

  .nav-links {
    grid-column: 7 / 13;
  }

  .hero-title {
    font-size: clamp(48px, 10vw, 72px);
    grid-column: 1 / 13;
  }

  .hero-wordmark-wrap,
  .hero-body,
  .hero-cta,
  .approach p,
  .section-label,
  .services-grid,
  .process-grid,
  .contact h2,
  .contact a {
    grid-column: 1 / 13;
  }

  .hero-wordmark-wrap {
    margin-left: 0;
  }

  .selected-work-content {
    grid-column: 1 / 13;
  }

  .selected-work-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .services-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .site-footer p:first-child {
    grid-column: 1 / 7;
  }

  .site-footer p:last-child {
    grid-column: 7 / 13;
  }
}
