:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #6d6d6d;
  --card: #f8fdff;
  --max: 1152px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 88px));
  margin: 0 auto;
  padding: 43px 0 18px;
  border-bottom: 3px solid var(--ink);
}

.brand {
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #525252;
}

.main-nav a {
  transition: color 140ms ease;
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
}

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

h1,
h2,
p {
  margin-top: 0;
}

.summary-hero {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 116px;
  min-height: 502px;
  padding-top: 74px;
}

.summary-hero h1,
.about-layout h1,
.about-stack h2,
.contact-page h1 {
  margin-bottom: 44px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
}

.summary-hero p,
.about-layout p,
.contact-page p,
.case-copy p {
  color: var(--muted);
  font-weight: 200;
}

.summary-hero p {
  max-width: 502px;
  margin-bottom: 27px;
}

.me-block {
  position: relative;
  align-self: start;
  padding-top: 260px;
}

.me-block h2 {
  margin: 0;
  font-size: 72px;
  line-height: 0.9;
  font-weight: 500;
}

.me-block p {
  margin-top: 12px;
}

.me-trigger {
  all: unset;
  display: inline-block;
  cursor: pointer;
}

.me-photo-stage {
  position: absolute;
  top: 10px;
  left: 0;
  width: 150px;
  height: 150px;
  opacity: 0;
  pointer-events: none;
}

.me-photo-stage.is-visible {
  opacity: 1;
}

.me-photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 45px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 215px;
  min-height: 39px;
  border: 1px solid var(--ink);
  padding: 8px 18px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  transition: background-color 140ms ease, color 140ms ease;
}

.button:hover,
.button:focus-visible {
  background: #080808;
  color: #fefcff;
}

.section {
  padding-top: 4px;
  padding-bottom: 180px;
}

.portfolio-heading,
.page-title h1 {
  margin-bottom: 44px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 500;
}

.portfolio-heading {
  margin-bottom: 60px;
}

@media (min-width: 901px) {
  .portfolio-heading {
    transform: translateY(14px);
  }
}

.portfolio-heading span,
.page-title h1 span {
  font-size: 17px;
  font-weight: 700;
}

.page-title {
  padding: 84px 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px 61px;
  padding-bottom: 100px;
}

.project-card {
  text-align: center;
}

.project-link {
  display: block;
}

.project-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 341 / 294;
  border: 1px solid var(--ink);
  background: var(--card);
}

.project-logo-wrap img {
  max-width: 46%;
  max-height: 56%;
  object-fit: contain;
}

.project-card:nth-child(1) .project-logo-wrap img {
  max-width: 40%;
  image-rendering: auto;
}

.project-card:nth-child(2) .project-logo-wrap img {
  max-width: 56%;
  max-height: 64%;
}

.project-card:nth-child(3) .project-logo-wrap img {
  max-width: 38%;
}

.dots {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 4px;
}

.project-copy {
  padding-top: 24px;
}

.project-copy strong {
  display: block;
  margin-bottom: 11px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}

.project-copy > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-copy .tag-list {
  margin-top: 11px;
}

.tag-list li {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 9px 1px;
  background: #fff;
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
}

.about-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 116px;
  padding-top: 84px;
  padding-bottom: 110px;
}

.about-summary p {
  margin-bottom: 27px;
}

.about-summary .button {
  margin-top: 24px;
}

.about-stack article {
  margin-bottom: 73px;
}

.about-stack h2 {
  margin-bottom: 42px;
}

.about-stack p {
  max-width: 540px;
}

.contact-page {
  min-height: 1194px;
  padding-top: 96px;
  text-align: center;
}

.contact-page h1 {
  margin-bottom: 42px;
}

.case-study {
  padding: 44px 0 90px;
  text-align: center;
}

.case-title h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
}

.case-title h1 span {
  font-size: 14px;
  font-weight: 500;
}

.case-title .tag-list {
  margin-bottom: 31px;
}

.case-hero-media {
  width: min(680px, 100%);
  margin: 0 auto 56px;
}

.case-hero-media.planb {
  width: min(341px, 100%);
}

.case-hero-media.bookatask,
.case-hero-media.seller,
.case-hero-media.promote,
.case-hero-media.setaboutmusic {
  width: min(920px, 100%);
}

.case-hero-media video {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.case-copy {
  width: min(520px, 100%);
  margin: 0 auto 58px;
}

.case-copy h2 {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.case-copy p {
  font-size: 14px;
}

.case-media-stack {
  display: grid;
  justify-items: center;
  gap: 54px;
}

.media-item {
  width: min(680px, 100%);
  margin: 0;
}

.media-item img,
.media-item video {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.media-video video {
  border: 1px solid var(--ink);
}

figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 200;
}

.case-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .site-header,
  main {
    width: calc(100% - 36px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 28px;
  }

  .brand {
    font-size: 38px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .summary-hero,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 52px;
  }

  .me-block {
    padding-top: 0;
    padding-right: 170px;
    min-height: 150px;
  }

  .me-photo-stage {
    top: 0;
    right: 0;
    left: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-logo-wrap {
    aspect-ratio: 341 / 260;
  }

  .hero-actions,
  .case-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contact-page {
    min-height: 700px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .summary-hero h1,
  .about-layout h1,
  .about-stack h2,
  .contact-page h1,
  .portfolio-heading,
  .page-title h1,
  .case-title h1 {
    font-size: 31px;
  }

  .me-block h2 {
    font-size: 64px;
  }

  .button {
    width: 100%;
  }
}
