:root {
  --text: #111;
  --muted: #555;
  --line: #b8b8b8;
  --page-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

main {
  width: min(calc(100% - 64px), var(--page-width));
  margin: 0 auto;
}

.page-header {
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--line);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.project-data {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.introduction {
  max-width: 820px;
  padding: 54px 0 46px;
}

.introduction p {
  margin: 0 0 1.25em;
}

.introduction p:last-child {
  margin-bottom: 0;
}

.video-section {
  padding: 0 0 64px;
}

video {
  display: block;
  width: min(100%, 900px);
  height: auto;
  background: #000;
}

.gallery-section {
  padding: 42px 0 70px;
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.gallery-item:hover img {
  opacity: 0.82;
}

footer {
  padding: 24px 0 50px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

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

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  html {
    font-size: 17px;
  }

  main {
    width: calc(100% - 32px);
  }

  .page-header {
    padding: 36px 0 28px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 4rem);
  }

  .project-data {
    margin-top: 20px;
  }

  .introduction {
    padding: 36px 0;
  }

  .video-section {
    padding-bottom: 42px;
  }

  .gallery-section {
    padding: 24px 0 44px;
    border-top-width: 2px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: auto;
  }

  .gallery-item img {
    height: auto;
    object-fit: contain;
  }
}
