:root {
  --cream: #f7f1e8;
  --stone: #ddd1c2;
  --sand: #c9b69e;
  --terra: #ad785f;
  --olive: #5b5a4d;
  --brown: #2c2520;
  --dark: #17120f;
  --line: rgba(44, 37, 32, .18);
  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  color: var(--cream);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  font-family: var(--serif);
  font-size: clamp(54px, 10vw, 130px);
  letter-spacing: .12em;
}

.loader span {
  display: block;
  text-align: center;
  margin-top: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--sand);
}

.cursor {
  width: 18px;
  height: 18px;
  border: 1px solid var(--brown);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
  display: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--terra);
  z-index: 9000;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  padding: 28px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream);
  mix-blend-mode: difference;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .22em;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-img {
  height: 100%;
  transform: scale(1.08);
  animation: heroZoom 4s ease forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.50), transparent 60%);
}

.hero-title {
  position: absolute;
  left: 6vw;
  bottom: 8vh;
  color: var(--cream);
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: titleIn 1.4s ease 1.2s forwards;
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title p {
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero-title h1 {
  font-family: var(--serif);
  font-size: clamp(70px, 13vw, 190px);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.05em;
}

.hero-title span {
  display: block;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 58px);
  color: var(--stone);
}

.intro {
  padding: 150px 8vw 120px;
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 8vw;
  border-bottom: 1px solid var(--line);
}

.small-title {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--terra);
}

.intro h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 118px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.045em;
}

.intro-copy {
  grid-column: 2;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(44, 37, 32, .72);
}

.chapter {
  min-height: 120vh;
  position: relative;
  padding: 120px 8vw;
}

.chapter-number {
  position: absolute;
  top: 100px;
  left: 8vw;
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 230px);
  color: rgba(44, 37, 32, .08);
  line-height: 1;
}

.chapter-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: 8vw;
  padding-top: 90px;
}

.chapter-text p {
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  margin-bottom: 18px;
}

.chapter-text h2 {
  font-family: var(--serif);
  font-size: clamp(60px, 11vw, 170px);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.05em;
}

.chapter-text span {
  display: block;
  margin-top: 34px;
  line-height: 1.9;
  color: rgba(44, 37, 32, .68);
  font-size: 16px;
}

.image {
  position: absolute;
  overflow: hidden;
}

.image img {
  height: 100%;
  transition: transform 1.2s ease;
}

.image:hover img {
  transform: scale(1.06);
}

.image-large {
  width: 42vw;
  height: 70vh;
  right: 7vw;
  top: 160px;
}

.image-small {
  width: 24vw;
  height: 34vh;
  left: 12vw;
  bottom: 60px;
}

.quote-section {
  padding: 160px 8vw;
  background: var(--brown);
  color: var(--cream);
}

.quote-section h2 {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 150px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.05em;
  max-width: 1200px;
}

.texture {
  background: #eee6da;
}

.image-tall {
  width: 34vw;
  height: 86vh;
  left: 8vw;
  top: 160px;
}

.texture .chapter-text {
  margin-left: 50vw;
  padding-top: 130px;
}

.material-list {
  position: absolute;
  right: 8vw;
  bottom: 120px;
  display: grid;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 68px);
  color: rgba(44, 37, 32, .48);
}

.horizontal-gallery {
  padding: 140px 0 150px;
  overflow: hidden;
  background: var(--cream);
}

.gallery-head {
  padding: 0 8vw 70px;
}

.gallery-head p {
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  margin-bottom: 18px;
}

.gallery-head h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.045em;
  max-width: 900px;
}

.gallery-track {
  display: flex;
  gap: 28px;
  padding-left: 8vw;
  cursor: grab;
  will-change: transform;
}

.gallery-card {
  min-width: 420px;
  height: 620px;
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.gallery-card img {
  height: 100%;
  transition: transform 1s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card div {
  position: absolute;
  left: 26px;
  bottom: 26px;
  color: var(--cream);
}

.gallery-card p {
  font-family: var(--serif);
  font-size: 42px;
}

.gallery-card span {
  display: block;
  margin-top: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
}

.silence {
  background: #dacdbc;
}

.silence .chapter-text {
  margin-left: 0;
  padding-top: 100px;
}

.image-wide {
  width: 62vw;
  height: 64vh;
  right: 0;
  bottom: 100px;
}

.details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail {
  padding: 42px;
  min-height: 210px;
  border-right: 1px solid var(--line);
}

.detail:last-child {
  border-right: none;
}

.detail span {
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
}

.detail p {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1;
}

.final {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vw;
  background: var(--dark);
  color: var(--cream);
}

.final p {
  color: var(--sand);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 24px;
}

.final h2 {
  font-family: var(--serif);
  font-size: clamp(76px, 14vw, 210px);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.05em;
}

.final span {
  display: block;
  margin-top: 28px;
  max-width: 620px;
  line-height: 1.8;
  color: rgba(247, 241, 232, .7);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover:hover) and (pointer:fine) {
  .cursor {
    display: block;
  }

  body {
    cursor: none;
  }

  a,
  .gallery-track,
  .image {
    cursor: none;
  }
}

@media (max-width: 1000px) {
  .nav {
    padding: 22px;
  }

  .nav-links {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    grid-column: auto;
  }

  .chapter {
    min-height: auto;
    padding: 100px 6vw;
  }

  .chapter-text,
  .texture .chapter-text,
  .silence .chapter-text {
    margin-left: 0;
    padding-top: 40px;
  }

  .image,
  .image-large,
  .image-small,
  .image-tall,
  .image-wide {
    position: relative;
    width: 100%;
    height: 520px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 50px;
  }

  .material-list {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 60px;
  }

  .details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero-title {
    left: 20px;
    right: 20px;
  }

  .intro,
  .quote-section,
  .gallery-head {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-track {
    padding-left: 20px;
  }

  .gallery-card {
    min-width: 300px;
    height: 460px;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .detail {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 1000px) {
  .silence .chapter-text {
    width: 100%;
  }
}