:root {
  --page-bg: #f7f5f3;
  --text-title-fill: #000000e5;
  --text-heading-fill: #000000d9;
  --text-body-fill: #000000bf;
  --text-meta-fill: #00000080;
  --text-dot-fill: #00000026;
  --radius: 16px;
  --content-width: 1200px;
  --container-width: 1650px;
  --section-gap: 200px;
  --block-gap: 64px;
  --grid-gap: 32px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-body-fill);
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

figure {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contain {
  object-fit: contain;
}

.direction-image {
  height: auto;
  object-fit: contain;
}

main {
  width: min(calc(100% - 48px), var(--container-width));
  margin: 0 auto;
  padding: 160px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.intro,
.project-copy {
  width: 640px;
  max-width: 100%;
}

.top-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.intro {
  position: relative;
}

.back-button {
  position: absolute;
  top: 8px;
  left: -88px;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: url("./assets/home/back-button.svg") center / 56px 56px no-repeat;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgb(0 0 0 / 0%);
  transition:
    transform 300ms cubic-bezier(0.4, 1, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.4, 1, 0.2, 1);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.back-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
}

.back-button:focus-visible {
  outline: 2px solid rgb(0 0 0 / 60%);
  outline-offset: 3px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  color: var(--text-title-fill);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 350;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 350;
  letter-spacing: -0.02em;
  font-size: 96px;
  line-height: 96px;
  margin-bottom: 16px;
}

h2 {
  color: var(--text-heading-fill);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 8px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  white-space: nowrap;
}

.meta span {
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  color: var(--text-meta-fill);
  font-size: 16px;
  line-height: 24px;
}

.meta .dot {
  font-family: "Geist", "Helvetica Neue", sans-serif;
  color: var(--text-dot-fill);
}

.summary,
.project-copy p {
  margin: 0;
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  color: var(--text-body-fill);
}

.summary {
  font-size: 20px;
  line-height: 32px;
}

.project-copy p {
  font-size: 18px;
  line-height: 28px;
}

.bullet-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--text-body-fill);
  display: grid;
  gap: 8px;
}

.bullet-list li {
  font-size: 18px;
  line-height: 28px;
}

.principles-block {
  width: min(100%, 688px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.principles-title {
  margin: 0 24px;
  color: #000000;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 336px));
  gap: 16px;
}

.principle-card {
  min-height: 128px;
  border-radius: 16px;
  border: 1px solid #0000000d;
  background: #ffffff;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.principle-card h3 {
  margin: 0;
  color: #000000d9;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.principle-card p {
  margin: 0;
  color: #000000bf;
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--block-gap);
}

.media-grid {
  width: min(100%, var(--content-width));
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.row {
  display: grid;
  gap: var(--grid-gap);
}

.row-680-488 {
  grid-template-columns: minmax(0, 680fr) minmax(0, 488fr);
}

.row-488-680 {
  grid-template-columns: minmax(0, 488fr) minmax(0, 680fr);
}

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

.row-720-448 {
  grid-template-columns: minmax(0, 720fr) minmax(0, 448fr);
}

.row-480-688 {
  grid-template-columns: minmax(0, 480fr) minmax(0, 688fr);
}

.row-680-488 > :first-child {
  aspect-ratio: 680 / 400;
}

.row-680-488 > :last-child {
  aspect-ratio: 488 / 400;
}

.row-488-680 > :first-child {
  aspect-ratio: 488 / 400;
}

.row-488-680 > :last-child {
  aspect-ratio: 680 / 400;
}

.row-584-584 > * {
  aspect-ratio: 584 / 420;
}

.row-584-584-direction > * {
  aspect-ratio: 1168 / 800;
}

.row-720-448 > :first-child {
  aspect-ratio: 720 / 420;
}

.row-720-448 > :last-child {
  aspect-ratio: 448 / 420;
}

.row-480-688 > :first-child {
  aspect-ratio: 480 / 420;
}

.row-480-688 > :last-child {
  aspect-ratio: 688 / 420;
}

.card,
.panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.feature {
  width: 100%;
}

.hero-media {
  max-width: 1200px;
}

.feature-wide {
  width: min(100%, 1625px);
}

.panel-fixed {
  aspect-ratio: calc(var(--panel-w) / var(--panel-h));
}

.direction-board {
  width: min(1625px, calc(100vw - 80px), 100%);
  aspect-ratio: calc(var(--panel-w) / var(--panel-h));
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(12px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 1400px) {
  main {
    width: min(calc(100% - 48px), 1200px);
    padding: 120px 0;
    gap: 180px;
  }

  h1 {
    font-size: 78px;
    line-height: 78px;
  }

  h2 {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-gap: 120px;
    --block-gap: 40px;
    --grid-gap: 20px;
  }

  main {
    width: min(calc(100% - 32px), 760px);
    padding: 80px 0;
  }

  .top-block {
    gap: 72px;
  }

  .intro,
  .project-copy,
  .principles-block {
    width: 100%;
    padding: 0 16px;
  }

  .back-button {
    position: static;
    margin: 0 0 32px;
  }

  h1 {
    font-size: 60px;
    line-height: 60px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .summary {
    font-size: 18px;
    line-height: 30px;
  }

  .row {
    grid-template-columns: 1fr !important;
  }

  .row > .card,
  .row > .panel {
    aspect-ratio: auto !important;
  }

  .row > .card > img,
  .row > .panel > img {
    height: auto;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .principles-block {
    width: 100%;
  }

  .principles-title {
    margin: 0;
  }

  .direction-board {
    width: min(1625px, calc(100vw - 48px), 100%);
  }

  .card,
  .panel {
    min-height: 0;
  }

}

@media (max-width: 640px) {
  main {
    width: calc(100% - 24px);
    padding: 56px 0;
    gap: 100px;
  }

  .top-block {
    gap: 56px;
  }

  h1 {
    font-size: 48px;
    line-height: 48px;
  }

  h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .meta {
    white-space: normal;
    flex-wrap: wrap;
    line-height: 1;
  }

  .direction-board {
    width: min(1625px, calc(100vw - 24px), 100%);
  }
}
