.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  padding-top: 132px;
  padding-bottom: 80px;
}

.section {
  margin-top: var(--section-gap);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section__head p {
  margin-top: 8px;
  color: var(--text-2);
}

.page-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.page-header .body-lg {
  margin-top: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page {
    padding-top: 48px;
    padding-bottom: 140px;
  }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.96);
  filter: blur(16px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transform: none;
    filter: none;
  }
}

html.is-page-leaving body > :not(.wallpaper):not(.nav):not(.music):not(.intro):not(script) {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(6px);
  transition:
    opacity 200ms cubic-bezier(0.4, 0, 1, 1),
    transform 200ms cubic-bezier(0.4, 0, 1, 1),
    filter 200ms cubic-bezier(0.4, 0, 1, 1);
}

html.is-page-entering body > :not(.wallpaper):not(.nav):not(.music):not(.intro):not(script) {
  animation: page-enter 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-page-leaving body > *,
  html.is-page-entering body > * {
    transition: none !important;
    animation: none !important;
  }
}
