/* ============================================================
   GLOBAL.CSS
   @font-face → reset → typography → utilities →
   header → menu → button → modal → card → preloader → misc
   ============================================================ */


/* ============================================================
   @FONT-FACE
   ============================================================ */

@font-face {
  font-display: swap;
  font-family: LZ;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/lz.woff2) format("woff2"), url(/fonts/lz.woff) format("woff");
}

@font-face {
  font-display: swap;
  font-family: Neue-Montreal;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/neuemontreal.woff2) format("woff2"), url(/fonts/neuemontreal.woff) format("woff");
}

@font-face {
  font-display: swap;
  font-family: PPNeue-Montreal;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/ppneuemontreal-italic.woff2) format("woff2"), url(/fonts/ppneuemontreal-italic.woff) format("woff");
}


/* ============================================================
   RESET
   ============================================================ */

*,
:after,
:before {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word;
}

#__next,
#root {
  isolation: isolate;
}

button {
  background-color: transparent;
  border: none;
  padding: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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


/* ============================================================
   TYPOGRAPHY — base scale (--ratio + html/body)
   ============================================================ */

@media (aspect-ratio >= 1440/800) {
  :root { --ratio: 0.125vh; }
}
@media (aspect-ratio <= 1440/800) {
  :root { --ratio: 0.06944vw; }
}
@media (width <= 800px) and (aspect-ratio >= 320/568) {
  :root { --ratio: 0.17606vh; }
}
@media (width <= 800px) and (aspect-ratio <= 320/568) {
  :root { --ratio: 0.3125vw; }
}

html {
  font-size: clamp(7px, 14px, 10 * var(--ratio));
  overscroll-behavior: none;
}

@media (min-width: 801px) {
  html {
    touch-action: auto;
  }
}

body {
  font-family: Neue-Montreal, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
  text-rendering: optimizelegibility;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}

body.locked {
  overflow: hidden;
}


/* ============================================================
   TYPOGRAPHY — scale classes
   ============================================================ */

.display {
  font-family: Neue-Montreal, sans-serif;
  font-size: 12rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}
@media (min-width: 801px) {
  .display {
    font-size: 15.2rem;
  }
}

.display-b {
  font-family: LZ, serif;
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .display-b {
    font-size: 9rem;
  }
}

.h1 {
  font-family: Neue-Montreal, sans-serif;
  font-size: 8rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
@media (min-width: 801px) {
  .h1 {
    font-size: 10rem;
    line-height: .925;
  }
}

.h2 {
  font-family: Neue-Montreal, sans-serif;
  font-size: 4.8rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
@media (min-width: 801px) {
  .h2 {
    font-size: 7.8rem;
    line-height: .925;
  }
}

.h3 {
  font-family: Neue-Montreal, sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
@media (min-width: 801px) {
  .h3 {
    font-size: 4.6rem;
    line-height: .925;
  }
}

.h4 {
  font-family: LZ, serif;
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .h4 {
    font-size: 4.8rem;
  }
}

.h5 {
  font-family: Neue-Montreal, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
@media (min-width: 801px) {
  .h5 {
    font-size: 4.2rem;
    line-height: .925;
  }
}

.h5b {
  font-family: Neue-Montreal, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
@media (min-width: 801px) {
  .h5b {
    font-size: 3.6rem;
    line-height: .925;
  }
}

.h6 {
  font-family: LZ, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .h6 {
    font-size: 3.2rem;
  }
}

.h7 {
  font-family: LZ, serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .h7 {
    font-size: 2.4rem;
  }
}

.p-l {
  font-family: Neue-Montreal, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
@media (min-width: 801px) {
  .p-l {
    font-size: 1.4rem;
  }
}

.p-s {
  font-family: Neue-Montreal, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
@media (min-width: 801px) {
  .p-s {
    font-size: 1.2rem;
  }
}

.label-serif {
  font-family: LZ, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .label-serif {
    font-size: 1.4rem;
  }
}

.label-l {
  font-family: Neue-Montreal, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .label-l {
    font-size: 1.4rem;
  }
}

.label-s {
  font-family: Neue-Montreal, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 801px) {
  .label-s {
    font-size: 1.2rem;
  }
}

.decoration-i {
  font-family: PPNeue-Montreal, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.decoration {
  font-family: Neue-Montreal, sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: -.04em;
  letter-spacing: 0;
  line-height: 1;
}


/* ============================================================
   COLOR UTILITIES
   ============================================================ */

.c-white    { color: #fff; }
.c-black    { color: #000; }
.c-white-50 { color: hsla(0, 0%, 100%, .5); }
.c-black-50 { color: rgba(0, 0, 0, .5); }
.c-light-grey { color: #e0dfdf; }
.c-grey     { color: #5e5d5d; }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

#app {
  height: 100%;
  transition: background-color .5s cubic-bezier(.445, .05, .55, .95);
  width: 100%;
}
#app.dark  { background-color: #000; }
#app.light { background-color: #fff; }
@media (min-width: 801px) {
  #app { 
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  }


.page {
  height: 100%;
  inset: 0;
  position: relative;
  width: 100%;
}
@media (min-width: 801px) {
  .page {
    position: relative;
  }
}

.page.page-transition { z-index: 6; }

.page-content {
  height: 100%;
  inset: 0;
  position: relative;
  width: 100%;
}
@media (min-width: 801px) {
  .page-content { 
    position: relative;
  }
}

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.h-fulls { height: 100svh; }

.w-fulls { width: 100%; }
@media (min-width: 801px) {
  .w-fulls { width: 100vw; }
}

.block         { display: block; }
.pointer-none  { pointer-events: none; }
.pointer-auto  { pointer-events: auto; }
.uppercase     { text-transform: uppercase; }
.clip          { overflow: hidden; }

.img-full {
  width: 100%;
  height: 100%;
  inset: 0;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
}

.side-60 { width: 100%; }
@media (min-width: 801px) {
  .side-60 { width: 61.111%; }
}

.side-40 { width: 100%; }
@media (min-width: 801px) {
  .side-40 { width: 38.8889%; }
}

.contained { padding-inline: 1.6rem; }
@media (min-width: 801px) {
  .contained { padding-inline: 0; }
}


/* ============================================================
   UTILITY ELEMENTS
   ============================================================ */

.hint-underline {
  cursor: default;
  position: relative;
}
.hint-underline:before {
  content: "";
  display: none;
  height: 130%;
  left: -30%;
  position: absolute;
  top: -15%;
  width: 160%;
}
@media (min-width: 801px) {
  .hint-underline:before { display: block; }
}

.hint {
  left: calc(50% - .75rem);
  position: absolute;
  top: 1rem;
}

.arrow {
  display: block;
  width: 2.8rem;
}

.arrow-stroke {
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.25;
}

.path-line {
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.25;
}

.split-text {overflow: hidden;}
.split-text .line { overflow: hidden; }
.split-text.padded .line { padding-inline: 1px; }

.split-wrapper {
  overflow: hidden;
  padding: 1px;
}

.split-element {
  display: block;
  transform: translate3d(0, 110%, 0);
}

.text span { display: block; }
.text-line-wrapper { overflow: hidden; }
.text-line { transform: translate3d(0, 110%, 0); }

#highlight-container {
  height: 100%;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */

.logo-link {
  align-items: center;
  aspect-ratio: 1/1;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: color .3s cubic-bezier(.445, .05, .55, .95);
}

.logo {
  display: block;
  height: 1.2rem;
  width: 1.3rem;
}

.header {
  align-items: center;
  background-color: #000;
  display: flex;
  height: 4.8rem;
  left: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}
.header .logo-link { color: #e0dfdf; }
.header.alt-color .logo-link { color: #000; }
@media (min-width: 801px) {
  .header {
    background-color: transparent;
    padding: 1rem 2rem;
    position: absolute;
  }
}

.header__container {
  align-items: center;
  display: flex;
  flex-direction: row;
  padding: 1rem 1.6rem;
}
@media (min-width: 801px) {
  .header__container { padding: 1rem 0; }
}

.header__btn-close {
  margin-left: auto;
  position: absolute;
  right: 1.6rem;
  top: 1rem;
}
@media (min-width: 801px) {
  .header__btn-close {
    position: relative;
    right: auto;
    top: auto;
  }
}

.header__content {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
@media (min-width: 801px) {
  .header__content { padding-right: 1.8rem; }
}

.header__border {
  background-color: #fff;
  bottom: 0;
  height: 1px;
  left: 0;
  opacity: .1;
  position: absolute;
}

.btn-menu {
  align-items: center;
  color: #e0dfdf;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 2.8rem;
  justify-content: center;
  position: relative;
  transition: color .3s cubic-bezier(.445, .05, .55, .95);
  width: 2.8rem;
}
.btn-menu.alt-color { color: #000; }

.btn-menu__lines {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .5rem 0;
  justify-content: center;
  width: 2.8rem;
}


/* ============================================================
   MENU / NAV
   ============================================================ */

.menu {
  color: #e0dfdf;
  display: none;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  z-index: 4;
}
.menu.visible { display: flex; }
.menu.light   { color: #000; }
.menu.light .menu__bg { background-color: #f6f6f6; }
.menu.light .menu__wrapper { padding: 7.8rem 1.6rem 2rem; }
@media (min-width: 801px) {
  .menu.light .menu__wrapper { padding: 4.4rem 5.4rem 4.4rem 10rem; }
}
.menu.light .nav-border    { opacity: 1; }
.menu.light .socials       { border-top: 1px solid #e0dfdf; }
@media (min-width: 801px) {
  .menu.light .socials { border-top: none; }
}
.menu.light .socials__item { color: #00000080; }

.menu__bg {
  background-color: #000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
}

.menu__border {
  background-color: #fff;
  height: 1px;
  left: 0;
  opacity: .1;
  position: absolute;
  top: calc(4.8rem - 1px);
}

.menu__wrapper {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overscroll-behavior: none;
  padding: 7.8rem 1.6rem calc(env(safe-area-inset-bottom) + 2rem);
  position: relative;
}
@media (min-width: 801px) {
  .menu__wrapper {
    overflow-y: hidden;
    padding: 10rem 5.4rem 4.4rem;
  }
}

.menu-secondary {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  margin-top: 1.2rem;
}
@media (min-width: 801px) {
  .menu-secondary { margin-top: auto; }
}

.menu-list__wrapper {
  color: #e0dfdf;
  margin-block: 1.6rem;
}
.menu-list__wrapper.light { color: #000; }
.menu-list__wrapper.light .menu-list__item-link { color: #00000080; }
@media (min-width: 801px) {
  .menu-list__wrapper { margin-block: 0; }
  .menu-list__wrapper:nth-of-type(2) { margin-left: 5.4rem; }
}

.menu-list__title {
  margin-bottom: .4rem;
  overflow: hidden;
}

.menu-list__title-line {
  display: block;
  transform: translate3d(0, 110%, 0);
}

.menu-list__item {
  margin-top: 1.2rem;
  overflow: hidden;
}

.menu-list__item-container {
  transform: translate3d(0, 110%, 0);
}

.menu-list__item-link {
  color: #ffffff80;
  cursor: pointer;
  transition: opacity .3s cubic-bezier(.445, .05, .55, .95);
}
.menu-list__item-link:hover { opacity: .5; }

/* nav links */
.nav-list__item:nth-of-type(2) .nav-link { margin-top: 4rem; }
@media (min-width: 801px) {
  .nav-list__item:nth-of-type(2) .nav-link {
    margin-top: 0;
    padding-top: 2.8rem;
  }
}

.nav-link {
  display: flex;
  padding-bottom: 2rem;
  position: relative;
  transition: opacity .3s cubic-bezier(.445, .05, .55, .95);
}
.nav-link.disabled { opacity: .35; }
@media (min-width: 801px) {
  .nav-link { padding-bottom: 3.6rem; }
}

.nav-link__content {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.nav-block {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}
@media (min-width: 801px) {
  .nav-block {
    overflow: initial;
    width: auto;
  }
}

.nav-inline {
  display: flex;
  flex-direction: column;
}
@media (min-width: 801px) {
  .nav-inline { flex-direction: row; }
}

.nav-photo {
  background: url(./home-bali.i3on8xff.webp) 50% no-repeat;
  background-size: cover;
  display: none;
  height: 6.4rem;
  margin-inline: 2rem;
  width: 11.3rem;
}
@media (min-width: 801px) {
  .nav-photo { display: inline-block; }
}

.alone-word {
  --offset: 0;
  transform: translate(calc(-13.8rem * var(--offset)));
}

.nav-numbered {
  position: relative;
  width: 100%;
}
@media (min-width: 801px) {
  .nav-numbered { width: auto; }
}

.nav-number {
  position: absolute;
  right: 0;
  top: 0;
}
@media (min-width: 801px) {
  .nav-number {
    left: calc(100% + 1rem);
    right: auto;
    top: -.5rem;
  }
}

.nav-arrow {
  align-items: center;
  aspect-ratio: 1/1;
  bottom: 0;
  display: flex;
  position: absolute;
  right: 0;
}
@media (min-width: 801px) {
  .nav-arrow { position: relative; }
}

.nav-border {
  background-color: #ffffff1a;
  bottom: 0;
  height: 1px;
  left: 0;
  position: absolute;
}
.nav-border.is-alt { background-color: #e0dfdf; }

.socials {
  border-top: 1px solid hsla(0, 2%, 88%, .1);
  display: flex;
  flex-direction: row;
  gap: 0 1.2rem;
  margin-left: auto;
  padding-top: 1.4rem;
  width: 100%;
}
@media (min-width: 801px) {
  .socials {
    border-top: none;
    margin-left: auto;
    padding-top: 0;
    width: auto;
  }
}

.socials__item { color: #ffffff80; }
.socials__item-link {
  transition: opacity .3s cubic-bezier(.445, .05, .55, .95);
}
.socials__item-link:hover { opacity: .5; }

.item-credits { margin-left: auto; }
@media (min-width: 801px) {
  .item-credits { margin-left: 0; }
}


/* ============================================================
   BUTTONS
   ============================================================ */

/* btn-main */
.btn-main {
  cursor: pointer;
  position: relative;
  transition: opacity .2s cubic-bezier(.445, .05, .55, .95);
}
.btn-main:disabled { opacity: .25; }
.btn-main.underline .btn-main__underline-wrapper { display: block; }
.btn-main:hover .btn-main__underline:before {
  opacity: 1;
  transform: translateX(102%);
  transition: transform .6s cubic-bezier(.77, 0, .175, 1);
}
.btn-main:hover .btn-main__underline:after {
  opacity: 0;
  transform: translateX(-102%);
  transition: none;
}

.btn-main__underline-wrapper {
  bottom: -2px;
  display: none;
  height: max(.1rem, 1px);
  left: 0;
  position: absolute;
  transform-origin: top left;
  width: 100%;
}

.btn-main__underline {
  height: 100%;
  inset: 0;
  overflow: hidden;
  position: absolute;
  transform-origin: top left;
  width: 100%;
}
.btn-main__underline:after,
.btn-main__underline:before {
  background-color: hsla(0, 0%, 100%, .5);
  content: "";
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.btn-main__underline:before {
  opacity: 0;
  transform: translateX(0);
}
.btn-main__underline:after {
  opacity: 1;
  transform: translateX(0);
  transition: transform .3s cubic-bezier(.77, 0, .175, 1);
}

/* btn-arrow */
.btn-arrow {
  align-items: center;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-block: .7rem .9rem;
  position: relative;
}
.btn-arrow > span { color: currentcolor; }
.btn-arrow:hover .btn-arrow__border:before {
  opacity: 1;
  transform: translateX(0);
  transition: transform 1.1s cubic-bezier(.77, 0, .175, 1);
}
.btn-arrow:hover .btn-arrow__border:after {
  opacity: 0;
  transform: translateX(0);
  transition: none;
}

.btn-arrow__icon { margin-left: 4.8rem; }

.btn-arrow__border-wrapper {
  background-color: hsla(0, 0%, 100%, .1);
  bottom: -1px;
  height: 1px;
  left: 0;
  position: absolute;
  width: 100%;
}

.btn-arrow__border {
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
}
.btn-arrow__border:after,
.btn-arrow__border:before {
  background-color: hsla(0, 0%, 100%, .5);
  content: "";
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.btn-arrow__border:before {
  opacity: 0;
  transform: translateX(-102%);
}
.btn-arrow__border:after {
  opacity: 1;
  transform: translateX(102%);
  transition: transform .6s cubic-bezier(.77, 0, .175, 1);
}

/* btn-close */
.btn-close {
  position: absolute;
  right: 1.6rem;
  top: 2rem;
  z-index: 2;
}
@media (min-width: 801px) {
  .btn-close { right: 2rem; }
}

/* btn-accordion */
.btn-accordion {
  align-items: center;
  border-bottom: 1px solid hsla(0, 0%, 100%, .1);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  height: 3rem;
  justify-content: space-between;
  position: relative;
}

.btn-accordion__svg {
  display: block;
  margin-left: 4.8rem;
  width: 2.8rem;
}

.accordion-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.645, .045, .355, 1);
}
.accordion-wrapper.visible { max-height: var(--1c17a821); }

.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem 1.2rem;
  padding-top: 2rem;
}
@media (min-width: 801px) {
  .accordion-content {
    display: grid;
    gap: 2.4rem 1.2rem;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 2.8rem;
  }
}

.accordion-content__item-title { margin-bottom: .8rem; }
.accordion-content__item-label { margin-bottom: .4rem; }
.accordion-content__item-label:last-child { margin-bottom: 0; }

/* btn-prev / btn-next */
.btn-prev {
  padding: .6rem .6rem .6rem 0;
  touch-action: none;
}
.btn-next {
  padding: .6rem 0 .6rem .6rem;
  touch-action: none;
}

/* btn-chapters (sub-page) */
.btn-chapters {
  align-items: center;
  display: flex;
  flex-direction: row;
}
@media (min-width: 801px) {
  .btn-chapters {
    padding-bottom: .4rem;
    text-orientation: mixed;
    writing-mode: vertical-rl;
  }
}

/* chevron */
.chevron {
  height: 2.8rem;
  width: 2.8rem;
}
.chevron.active { transform: scaleY(-1); }
@media (min-width: 801px) {
  .chevron { transform: rotate(90deg) scaleY(-1); }
  .chevron.active { transform: rotate(90deg); }
}


/* ============================================================
   MODAL — work modal
   ============================================================ */

.work-modal {
  display: none;
  height: 100dvh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  z-index: 7;
}
.work-modal.visible { display: block; }

.modal-bg {
  background-color: #000;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.modal-content {
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: scroll;
  overscroll-behavior: none;
  position: relative;
}

.modal-wrapper {
  display: flex;
  flex-direction: column;
  padding: 6rem 1.6rem 0;
}

.modal-title {
  margin-bottom: 2.8rem;
  margin-left: -.4rem;
  position: relative;
  z-index: 2;
}

.modal-imgs {
  aspect-ratio: 288/174;
  margin-bottom: .8rem;
  margin-top: auto;
  position: relative;
  width: 100%;
}

.item-img {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .25s cubic-bezier(.445, .05, .55, .95);
}
.item-img.current { opacity: 1; }

.item-img__ind {
  opacity: 0;
  position: absolute;
  top: -1.6rem;
  transition: opacity .1s cubic-bezier(.445, .05, .55, .95);
  transition-delay: 0s;
}

.item-img__element {
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: top left;
  position: absolute;
  width: 100%;
}

.modal-actions {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: calc(env(safe-area-inset-bottom) + 3.2rem);
  width: 100%;
}

.modal-lists {
  display: flex;
  flex-direction: row;
  margin-bottom: 2.8rem;
  padding-top: 2rem;
}

.modal-list { width: 50%; }

.list__title,
.list__item {
  margin-bottom: 1.2rem;
}

.modal-description__wrapper { margin-top: auto; }
.modal-description > span  { overflow: hidden; }
.modal-text { transform: translate3d(0, 110%, 0); }
.modal-year { margin-bottom: 2rem; }
.modal-url  { margin-top: 1.6rem; }

@media (min-width: 801px) {
  .modal-content {
    flex-direction: row;
    overflow-y: hidden;
  }
  .modal-left {
    display: flex;
    flex-direction: column;
    padding-inline: 11rem 15.5rem;
  }
  .modal-title {
    margin-bottom: 0;
    margin-block: 12rem 3rem;
  }
  .modal-imgs {
    aspect-ratio: unset;
    height: min(49vh, 40rem);
    margin-bottom: 4.4rem;
  }
  .item-img {
    opacity: 1;
    transition: transform .85s cubic-bezier(.23, 1, .32, 1);
  }
  .item-img:after {
    background-color: #0d0d0d;
    content: "";
    height: 100%;
    inset: 0;
    opacity: .35;
    position: absolute;
    transition: opacity .25s cubic-bezier(.445, .05, .55, .95);
    width: 100%;
  }
  .item-img.current {
    transform: translateZ(0);
  }
  .item-img.current .item-img__ind {
    opacity: 1;
    transition-delay: .2s;
  }
  .item-img.current:after { opacity: 0; }
  .item-img.prev { transform: translate3d(0, -91vh, 0); }
  .item-img.next { transform: translate3d(0,  91vh, 0); }
  .modal-right {
    display: flex;
    flex-direction: column;
    padding: 2.8rem 8.8rem 6.8rem 2.8rem;
  }
  .modal-lists {
    margin-bottom: 0;
    padding-top: 9.2rem;
  }
  .modal-list {
    margin-right: 5.6rem;
    width: auto;
  }
  .modal-actions {
    bottom: 1.6rem;
    gap: 0 .8rem;
    justify-content: flex-start;
    left: 2rem;
    margin-bottom: 0;
    position: absolute;
    width: auto;
    z-index: 2;
  }
  .modal-url { margin-top: 3.6rem; }
}


/* ============================================================
   MODAL — photos modal
   ============================================================ */

.photos-modal {
  display: none;
  height: 100dvh;
  left: 0;
  position: fixed;
  top: 4.8rem;
  width: 100%;
  z-index: 5;
}
.photos-modal.visible { display: flex; }
@media (min-width: 801px) {
  .photos-modal {
    left: 6rem;
    top: 0;
    width: calc(100% - 6rem);
  }
}

.photos-modal__container {
  align-items: center;
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 1.6rem;
  position: relative;
  width: 100%;
}
@media (min-width: 801px) {
  .photos-modal__container {
    height: 100%;
    overflow-y: hidden;
    width: auto;
  }
}

.photos-modal__bg {
  inset: 0;
  position: absolute;
}

.photos-modal__title { margin-bottom: 2rem; }

.photos-modal .photos-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem 0;
  height: auto;
  margin-bottom: 5rem;
  width: 100%;
}
@media (min-width: 801px) {
  .photos-modal .photos-list {
    display: grid;
    gap: 2.8rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 100%;
    margin-bottom: 0;
    width: auto;
  }
}

.photos-list__card { max-width: 30rem; }

.header-photos__chapters { margin-top: auto; }


/* ============================================================
   COMMON CARD (list-item / photos-list__item)
   ============================================================ */

.list-item__head,
.list-item__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.list-item__head { margin-bottom: 5rem; }

.list-item__body {
  align-items: flex-end;
  margin-top: auto;
}

.list-item__thumbnail {
  aspect-ratio: 203/255;
  background-color: #5e5d5d;
  display: block;
  position: relative;
  width: 20.3rem;
}

.card-arrow {
  margin-bottom: -.65rem;
  width: 2.8rem;
}

.photos-list__item {
  background-color: #fff;
  margin-inline: auto;
  max-width: 32rem;
  padding: 1.2rem;
  width: 100%;
}
@media (min-width: 801px) {
  .photos-list__item {
    margin-inline: 0;
    max-width: 100%;
    width: auto;
  }
}

.photos-list__item.small { padding: 1rem; }
.photos-list__item.small .list-item__head  { margin-bottom: 4rem; }
.photos-list__item.small .list-item__thumbnail { width: 16rem; }
.photos-list__item.small .arrow {
  margin-bottom: -.45rem;
  width: 2rem;
}
@media (min-width: 801px) {
  .photos-list__item.small { padding: .7rem; }
  .photos-list__item.small .list-item__head { margin-bottom: 2.4rem; }
  .photos-list__item.small .list-item__thumbnail { width: 15rem; }
  .photos-list__item.small .arrow {
    margin-bottom: -.25rem;
    width: 1.6rem;
  }
}

.list-item__btn {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.list-item__body-copy { text-align: left; }

.list-item__title {
  display: block;
  margin-bottom: .6rem;
  max-width: 22.8rem;
}

.list-item__location { vertical-align: bottom; }

.thumb-img { opacity: 0; visibility: hidden; }
.thumb-img.visible {
  opacity: 1;
  transition: opacity 1.25s cubic-bezier(.445, .05, .55, .95) .125s;
  visibility: visible;
}


/* ============================================================
   ORIENTATION FALLBACK
   ============================================================ */

.orientation-fallback {
  align-items: center;
  background-color: #fff;
  color: #000;
  display: none;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  position: fixed;
  width: 100%;
  z-index: 8;
}
.orientation-fallback.dark {
  background-color: #000;
  color: #fff;
}
@media screen and (orientation: landscape) and (height <= 600px) {
  .orientation-fallback { display: flex; }
}
.orientation-fallback__copy {
  padding-inline: 1.2rem;
  text-align: center;
  width: 100%;
}


/* ============================================================
   PRELOADER
   ============================================================ */

.preloader {
  display: flex;
  flex-direction: row;
  inset: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
  z-index: 9;
}
.preloader.light .filling-section,
.preloader.light .preloader-section {
  background-color: #fff;
}
.preloader.light .loading-label,
.preloader.light .preloader-number {
  color: #000;
}

.preloader-section {
  background-color: #000;
  height: 100%;
}

.section-right {
  background-color: transparent;
  left: 0;
  position: absolute;
  top: 0;
}
@media (min-width: 801px) {
  .section-right {
    background-color: #000;
    position: relative;
  }
}

.filling-section {
  background-color: #0d0d0d;
  height: 100%;
  transform: scaleX(var(--progress));
  transform-origin: top left;
  width: 100%;
}

.preloader-number {
  bottom: 0;
  color: #e0dfdf;
  left: 1.6rem;
  overflow: hidden;
  position: absolute;
}
@media (min-width: 801px) {
  .preloader-number {
    bottom: 2rem;
    left: 2rem;
  }
}

.loading-span,
.number-span {
  display: block;
}

.loading-label {
  color: #e0dfdf;
  margin-left: 1.6rem;
  margin-top: 1.6rem;
  overflow: hidden;
}
@media (min-width: 801px) {
  .loading-label {
    margin-left: 2.4rem;
    margin-top: 2rem;
  }
}


/* ============================================================
   SCROLL PROGRESS
   ============================================================ */

.progresses {
  pointer-events: none;
  position: fixed;
  z-index: 3;
}
.progresses.is-photo { bottom: 0; left: 0; }
.progresses.is-home  { left: 0; top: 0; }

.home-progress,
.photos-progress {
  position: relative;
}
.home-progress.scrolled .scroll-hint { opacity: 0; }

.scroll-hint {
  display: none;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  transition: opacity .65s cubic-bezier(.445, .05, .55, .95);
}
.scroll-hint.hint-up   { right: 2rem; top: 1.6rem; }
.scroll-hint.hint-down { bottom: 1.6rem; left: 2rem; }
@media (min-width: 801px) {
  .scroll-hint { display: block; }
}

.progress-wrapper {
  background-color: #0000004d;
  height: calc(100dvh - 4.8rem);
  overflow: hidden;
  position: absolute;
  top: 4.8rem;
  width: .2rem;
}
.progress-wrapper.progress-left  { left: 0; }
.progress-wrapper.progress-right { right: 0; }
@media (min-width: 801px) {
  .progress-wrapper {
    height: 100svh;
    top: 0;
  }
}

.progress {
  background-color: #fff;
  height: 100%;
  position: relative;
  transform-origin: top left;
  width: 100%;
}
.progress-right .progress { transform-origin: top right; }

.progress-single__wrapper {
  bottom: 0;
  height: .2rem;
  left: 0;
  overflow: hidden;
  position: absolute;
  width: 100vw;
}
@media (min-width: 801px) {
  .progress-single__wrapper {
    left: 6rem;
    width: calc(100vw - 6rem);
  }
}

.progress-single {
  background-color: #000;
  height: 100%;
  position: relative;
  transform-origin: bottom left;
  width: 100%;
}


/* ============================================================
   SCROLL WRAPPER
   ============================================================ */

.wrapper {
  backface-visibility: hidden;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}
.wrapper.horizontal {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 801px) {
  .wrapper { position: fixed; }
  .wrapper.horizontal {
    display: inline-block;
    white-space: nowrap;
    width: auto;
  }
}

.clone { margin-top: -100vh; }


/* ============================================================
   MISC
   ============================================================ */

.text-image__wrapper {
  height: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
  z-index: 3;
}

.text-image__container {
  aspect-ratio: 1/1;
  clip-path: inset(100% 100%);
  display: block;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: clip-path 1.4s cubic-bezier(.165, .84, .44, 1);
  width: 18rem;
}
.text-image__container.visible {
  clip-path: inset(0 0);
  transition: clip-path 1s cubic-bezier(.19, 1, .22, 1);
}
.text-image__container.visible .text-image {
  transform: scale(1);
  transition: transform 1s cubic-bezier(.19, 1, .22, 1);
}

.text-image {
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.4);
  transition: transform 1.4s cubic-bezier(.165, .84, .44, 1);
  width: 100%;
}

.pointer-blocker {
  display: none;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 10;
}
.pointer-blocker.blocking { pointer-events: all; }
@media (min-width: 801px) {
  .pointer-blocker { display: block; }
}
