@font-face {
  font-family: 'Edict Display';
  src: url('assets/fonts/EdictDisplay-Regular.woff2') format('woff2'),
       url('assets/fonts/EdictDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('assets/fonts/PPNeueMontreal-615.woff2') format('woff2'),
       url('assets/fonts/PPNeueMontreal-615.woff') format('woff');
  font-weight: 615;
  font-style: normal;
  font-display: swap;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  outline: none;
}

body {
  background-color: #fff;
}

::selection {
  background-color: #000;
  color: #fff;
}

::-moz-selection {
  background-color: #000;
  color: #fff;
}

h2 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 30px;
  font-family: 'PP Neue Montreal', sans-serif;
}

.wrapper {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
  padding: 40px;
  position: relative;
}

.wrapper:after {
  content: '';
  position: absolute;
  top: 40px;
  right: calc(80px + 7 * 20px + 8 * ((100% - 80px - 23 * 20px) / 24));
  width: 1px;
  height: calc(100% - 80px);
  background-color: rgba(0, 0, 0, 0.2);
}

.madeworks-logo {
  position: absolute;
  top: 40px;
  left: 40px;
}

.madeworks-logo h1 {
  display: none;
}

.madeworks-logo svg {
  width: 310px;
  height: 81px;
  display: block;
}

.content-block {
  grid-column: 3 / 13;
  grid-row: 1 / 2;
  opacity: 0;
  animation: fade-in 0.5s ease forwards 0.2s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-block {
  grid-column: 1 / 7;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-end;
  padding-top: 118px;
}

.image-block .lazy-container {
  width: 100%;
  height: 0;
  padding-bottom: 125%;
  position: sticky;
  bottom: 40px;
}

@keyframes image-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.image-block .lazy-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.image-block .lazy-container img.is-loaded {
  animation: image-fade-in 0.5s ease-in-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .image-block .lazy-container img.is-loaded {
    animation: none;
    opacity: 1;
  }
}

.content-block {
  position: relative;
  grid-column: 17 / 25;
  padding-bottom: 80px;
  margin-bottom: 40px;
}

.content-block:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.content-block.first {
  grid-row: 1;
  animation-delay: 0.2s;
}

.content-block.second {
  grid-row: 2;
  animation-delay: 0.25s;
}

.content-block p {
  font-size: 32px;
  font-family: 'Edict Display', serif;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}

.footer-block {
  grid-column: 17 / 25;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 18px;
  opacity: 0;
  animation: fade-in 0.5s ease-in-out forwards 0.3s;
}

.footer-block span,
.footer-block p,
.footer-block a {
  font-size: 13px;
  font-family: 'PP Neue Montreal', sans-serif;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.footer-block a {
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
}

.button {
  display: inline-flex;
  column-gap: 10px;
  align-items: center;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 40px;
  padding: 0 20px;
  color: #000;
  font-size: 13px;
  font-family: 'PP Neue Montreal', sans-serif;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.button svg path {
  transition: fill 0.2s;
  -webkit-transition: fill 0.2s;
  -moz-transition: fill 0.2s;
  -ms-transition: fill 0.2s;
  -o-transition: fill 0.2s;
}

.button:hover,
.button:focus {
  background: #000;
  color: #fff;
}

.button:hover svg path,
.button:focus svg path {
  fill: #fff;
}

@media (max-width: 1400px) {
  .wrapper:after {
    right: calc(80px + 9 * 20px + 10 * ((100% - 80px - 23 * 20px) / 24));
  }

  .madeworks-logo svg {
    width: 260px;
    height: 70px;
  }

  .content-block,
  .footer-block {
    grid-column: 15 / 25;
  }

  .image-block {
    grid-column: 1 / 9;
  }
}

@media (max-width: 1024px) {
  .wrapper:after {
    right: calc(80px + 12 * 20px + 13 * ((100% - 80px - 23 * 20px) / 24));
  }

  .madeworks-logo svg {
    width: 220px;
    height: 60px;
  }

  .content-block,
  .footer-block {
    grid-column: 12 / 25;
  }

  .image-block {
    grid-column: 1 / 9;
  }
}

@media (max-width: 900px) {
  .wrapper {
    padding: 40px 20px 20px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .madeworks-logo {
    left: 0;
    top: 0;
    position: relative;
    grid-column: span 2;
    grid-row: 1;
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
  }

  .madeworks-logo svg {
    width: 180px;
    height: 48px;
  }

  .wrapper:after {
    display: none;
  }

  .content-block {
    grid-column: span 2;
    margin-bottom: 20px;
    padding-bottom: 60px;
  }

  .content-block.first {
    grid-row: 2;
  }

  .content-block.second {
    grid-row: 3;
    margin-bottom: 0;
  }

  .content-block.second:after {
    display: none;
  }

  .content-block p {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .image-block {
    grid-column: span 1;
    grid-row: 4;
    padding-top: 0;
    margin-bottom: 60px;
  }

  .image-block .lazy-container {
    position: relative;
    bottom: auto;
  }

  .footer-block {
    grid-column: span 2;
    grid-row: 5;
  }

  h2 {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

@media (max-width: 530px) {
  .madeworks-logo svg {
    width: 140px;
    height: 38px;
  }

  .image-block {
    grid-column: span 2;
  }
}