* {
  box-sizing: border-box;
}

body {
  background-color: #fdfaf6;
  padding: 0;
  margin: 0;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

@font-face {
  font-family: "EditorialNew";
  font-style: normal;
  font-weight: 200;
  src: url(/assets/fonts/PPEditorialNew/PPEditorialNew-Ultralight.woff2)
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "EditorialNew";
  font-style: normal;
  font-weight: 300;
  src: url(/assets/fonts/PPEditorialNew/PPEditorialNew-Regular.otf)
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 200;
  src: url(/assets/fonts/Inter/Inter_18pt-Light.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/fonts/Inter/Inter_18pt-Regular.ttf) format("truetype");
  font-display: swap;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4.2rem 4.4rem;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.h1 {
  font-size: 1.5rem;
  color: #2c2c2c;
  text-decoration: none;
}

.y-h1 {
  margin-left: -3px;
}

.nav-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

.nav-button span {
  background-color: #2c2c2c;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-button:hover span {
  background-color: #000;
}

.menu-items {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: -1;
  width: 100%;
  height: 100vh;
}

.menu-nav {
  display: flex;
  justify-content: flex-start;
  right: 0;
  padding: 2rem 3rem;
  position: fixed;
  top: 0;
}

.menu-links {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.menu-links p {
  font-family: "EditorialNew", serif;
  font-size: 4rem;
  font-weight: 200;
  margin: 0 !important;
  margin: 1rem 0;
  position: relative;
  color: #2c2c2c;
  text-transform: uppercase;
}

.menu-links a {
  text-decoration: none;
  color: #2c2c2c;
}

.text {
  height: 4.4rem;
  line-height: 4.4rem;
  overflow: hidden !important;
  position: relative;
  display: inline-block;
}

.text.play .letter {
  transform: translateY(-100%);
}

.text .letter {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.024, 1);
  position: relative;
}

.menu {
  background-color: #fdfaf6;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  color: #f2f0e8;
  display: flex;
  height: 100vh;
  justify-content: space-between;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  left: 0;
}

.menu-close,
.menu-open {
  cursor: pointer;
  z-index: 1000;
  overflow: hidden;
}

.menu-close {
  height: 20px;
  position: relative;
  width: 20px;
}

.menu-close img {
  position: absolute;
  height: 16px;
  width: 16px;
}

.menu-sub-col {
  flex: 1;
}
.menu-link,
.menu-sub-item {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.menu-bottom {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 1rem;
  width: 100%;
  padding: 0 6rem;
}
.menu-bottom p {
  margin: 0;
  color: #2c2c2c;
  font-weight: 100;
  font-size: 0.9rem;
}
.menu-bottom a {
  margin: 0;
  color: #2c2c2c;
  font-weight: 100;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom a {
  color: #2c2c2c;
  font-weight: 100;
  font-size: 1rem;
  text-decoration: none;
}

.legal-links img {
  vertical-align: middle;
}
.container {
  position: relative;
  width: 100%;
  height: calc(100vh - 0px);
  overflow: hidden;
  border: 30px solid #2c2c2c;
  opacity: 0;
  touch-action: none;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
  user-select: none;
}

.img-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 75%;
  overflow: hidden;
}

.img-preview img {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.minimap {
  position: absolute;
  bottom: 2rem;
  left: 74%;
  transform: translateX(-50%);
  width: 50%;
  height: 80px;
  overflow: hidden;
}

.items {
  position: relative;
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.item {
  flex: 0 0 auto;
  width: 60px;
  height: 100%;
  padding: 5px;
  cursor: pointer;
}

.indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100% !important;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid #000;
}

@media (max-width: 768px) {
  .loader-layout p {
    font-size: 1.7rem;
  }
  .border-wrapper {
    border: none;
  }

  header {
    padding: 1.4rem 1rem;
  }

  .menu-nav {
    padding: 1.6rem 1.5rem;
  }

  .menu-links p {
    font-size: 2.6rem !important;
  }

  .text {
    height: 3rem !important;
    line-height: 3rem !important;
  }

  .menu-bottom {
    padding: 0;
    justify-content: center;
  }

  .menu-bottom p:nth-child(1) {
    display: none;
  }

  .container {
    touch-action: none;
    border: none;
  }

  .minimap {
    position: absolute;
    bottom: 5em;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 80px;
    padding: 0 1rem;
    overflow: hidden;
    touch-action: none;
  }

  .items {
    display: flex;
    flex-direction: row;
    width: max-content;
    height: 100%;
    padding: 0 0.5rem;
    will-change: transform;
    touch-action: none;
  }

  .item {
    flex: 0 0 auto;
    width: 60px;
    height: 100%;
    padding: 5px;
    cursor: pointer;
  }

  .indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100% !important;
    pointer-events: none;
    box-sizing: border-box;
    border: 1px solid #000;
    margin-left: 1.5rem;
  }

  .img-preview {
    top: 45%;
    width: 85%;
    height: 60%;
  }

  .img-preview img {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .loader-layout p {
    font-size: 1.7rem;
  }
  .border-wrapper {
    border: none;
  }

  header {
    padding: 1.4rem 1rem;
  }

  .menu-nav {
    padding: 1.6rem 1.5rem;
  }

  .menu-links p {
    font-size: 3.4rem;
  }

  .text {
    height: 4.1rem;
    line-height: 4.1rem;
  }

  .menu-bottom {
    padding: 0;
    justify-content: center;
  }

  .menu-bottom p:nth-child(1) {
    display: none;
  }

  .container {
    touch-action: none;
    border: none;
  }

  .site-info {
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .minimap {
    position: absolute;
    bottom: 5em;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 80px;
    padding: 0 1rem;
    overflow: hidden;
    touch-action: none;
  }

  .items {
    display: flex;
    flex-direction: row;
    width: max-content;
    height: 100%;
    padding: 0 0.5rem;
    will-change: transform;
    touch-action: none;
  }

  .item {
    flex: 0 0 auto;
    width: 60px;
    height: 100%;
    padding: 5px;
    cursor: pointer;
  }

  .indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100% !important;
    pointer-events: none;
    box-sizing: border-box;
    border: 1px solid #000;
    margin-left: 1.5rem;
  }

  .img-preview {
    top: 45%;
    width: 85%;
    height: 60%;
  }

  .img-preview img {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
  .minimap {
    bottom: 1rem;
  }
  .menu-links p {
    font-size: 2.6rem !important;
  }

  .text {
    height: 3rem !important;
    line-height: 3rem !important;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1520px) {
  .menu-links p {
    font-size: 4.1rem;
  }
  .menu-bottom {
    padding: 0 4rem;
  }
  .text {
    height: 4.3rem;
    line-height: 4.3rem;
  }
}
