:root {
  color-scheme: dark;
  --black: #0b0b0c;
  --white: #f4f2ec;
  --line: rgb(255 255 255 / 28%);
  --play-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='white' stroke='black' stroke-width='0.7' d='M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z'/%3E%3C/svg%3E") 12 12, pointer;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  color: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.4;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

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

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  color: #111111;
  font-size: 0.72rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 0;
  padding: 16px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.slider-stage-active .site-header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-header a {
  transition: opacity 160ms ease;
}

.site-header a:hover,
.site-header a:focus-visible {
  opacity: 1;
}

.slider__stage,
.slider__slides,
.slide {
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

.slider {
  position: relative;
  isolation: isolate;
  background: var(--black);
}

.slider__stage {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slider__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider__slides .slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(7vw, 0, 0) scale(1.015);
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.22, 0.72, 0.18, 1),
    visibility 0s linear 620ms;
}

.slide--hero {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide.is-before {
  transform: translate3d(-7vw, 0, 0) scale(1.015);
}

.slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}

.slide__media,
.slide__shade,
.type-scene,
.fragments,
.fragments__image,
.fragments__text,
.fragments__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide__media {
  overflow: hidden;
  background: var(--black);
}

.slide__image,
.slide__loop,
.fragments__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__loop {
  display: block;
}

.slide__image {
  transform: scale(1.045);
  transition: transform 1400ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.slide.is-active .slide__image {
  transform: scale(1);
}

.slide__shade {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 32%) 0%, transparent 36%, rgb(0 0 0 / 68%) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 24%) 0%, transparent 45%);
}

.slide__info {
  position: absolute;
  top: 58vh;
  left: 16px;
  z-index: 6;
  width: min(90vw, 44rem);
}

.slide__info--light {
  color: #ffffff;
  text-shadow: 0 0.1rem 1rem rgb(0 0 0 / 48%);
}

.slide__info--dark {
  color: #151515;
}

.slide__eyebrow,
.slide__detail {
  margin: 0;
}

.slide__eyebrow {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.slide__info h1,
.slide__info h2 {
  max-width: 44rem;
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.slide__detail {
  font-size: 16px;
  font-weight: 400;
}

.slide__action {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.35rem;
  padding: 0.72rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 160ms ease;
}

.slide__action:hover,
.slide__action:focus-visible {
  opacity: 0.55;
}

.slide__action:focus-visible,
.slider__nav button:focus-visible,
.fragments__image:focus-visible,
.fragments__text:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.type-scene {
  overflow: hidden;
  text-transform: uppercase;
}

.type-scene > span {
  position: absolute;
  display: block;
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.08em;
}

.type-scene--dark {
  background:
    radial-gradient(circle at 72% 24%, rgb(51 51 54 / 72%) 0%, transparent 28%),
    #0b0b0c;
  color: #ece9e0;
}

.type-scene--dark > span:nth-child(1) {
  top: 12vh;
  left: -1vw;
  font-size: clamp(5rem, 17vw, 18rem);
}

.type-scene--dark > span:nth-child(2) {
  right: -1vw;
  bottom: 8vh;
  font-size: clamp(6rem, 21vw, 22rem);
}

.type-scene--dark > span:nth-child(3) {
  top: 52%;
  left: 50%;
  color: rgb(255 255 255 / 18%);
  font-size: clamp(1.8rem, 4vw, 5rem);
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.type-scene--blue {
  background:
    linear-gradient(122deg, transparent 0 48%, rgb(255 255 255 / 10%) 48% 49%, transparent 49% 100%),
    #173b59;
  color: #f0eee6;
}

.type-scene--blue > span:nth-child(1) {
  top: 10vh;
  left: 4vw;
  font-size: clamp(8rem, 25vw, 27rem);
}

.type-scene--blue > span:nth-child(2) {
  right: -2vw;
  bottom: 9vh;
  font-size: clamp(4.5rem, 15vw, 16rem);
}

.type-scene--blue > span:nth-child(3) {
  top: 50%;
  left: 50%;
  color: rgb(255 255 255 / 24%);
  font-size: clamp(8rem, 30vw, 32rem);
  transform: translate(-50%, -50%);
}

.type-scene--sand {
  background:
    linear-gradient(90deg, #b8a98d 0 68%, #31506a 68% 72%, #d8d2c5 72% 100%);
  color: #151515;
}

.type-scene--sand > span:nth-child(1) {
  top: 10vh;
  left: 3vw;
  font-size: clamp(4rem, 12vw, 13rem);
}

.type-scene--sand > span:nth-child(2) {
  right: 4vw;
  bottom: 10vh;
  font-size: clamp(8rem, 24vw, 26rem);
}

.type-scene--sand > span:nth-child(3) {
  top: 50%;
  left: 69.9%;
  color: rgb(255 255 255 / 58%);
  font-size: clamp(5rem, 17vw, 18rem);
  transform: translate(-50%, -50%) rotate(90deg);
}

.video-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay__close {
  position: absolute;
  top: 5.25rem;
  left: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 2rem;
  background: rgb(0 0 0 / 68%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(0.65rem);
  transition: background-color 160ms ease, color 160ms ease;
}

.video-overlay__close:hover,
.video-overlay__close:focus-visible {
  background: #ffffff;
  color: #111111;
}

.video-overlay__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.slide--habitat {
  background: #e8e8e6;
}

.slide--habitat .slide__image {
  object-fit: cover;
  object-position: center;
  background: #d9dbde;
}

.slide--habitat .slide__action {
  padding: 0 0 0.18rem;
  text-transform: lowercase;
}

.slide--habitat .slide__detail,
.slide--habitat .slide__action {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1em;
}

.slide--fragments {
  background: #171717;
}

.fragments {
  z-index: 3;
  background: #171717;
}

.fragments__image,
.fragments__text {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fragments__text {
  cursor: default;
}

.fragments__image img {
  transform: scale(1.025);
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.fragments__image:hover img,
.fragments__image:focus-visible img {
  transform: scale(1.055);
}

.fragments__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 20%) 0%, transparent 52%, rgb(0 0 0 / 68%) 100%);
}

.slide--fragments .slide__info {
  top: 58vh;
  pointer-events: none;
}

body.fragments-text-open .slide--fragments .slide__info {
  display: none;
}

.fragments__prompt {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(6.6rem, 13vh, 9rem);
  z-index: 4;
  padding: 0.65rem 0.8rem;
 
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(0.5rem);
}

.fragments__text {
  display: block;
  overflow-y: auto;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.5rem, 14vw, 14rem) clamp(8rem, 15vh, 11rem);
  background: #e7e1d5;
  color: #161616;
  text-align: left;
  scrollbar-color: #161616 transparent;
  scrollbar-width: thin;
}

.fragments__text-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.fragments__text .fragments__prompt {
  position: static;
  display: block;
  width: max-content;
  margin: 0;
}

.fragments__back {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 2rem;
  background: rgb(0 0 0 / 68%);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(0.5rem);
}

.fragments__back:hover,
.fragments__back:focus-visible {
  background: #ffffff;
  color: #111111;
}

.fragments__poem {
  display: block;
  width: min(100%, 39rem);
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.7vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.fragments__watch {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  margin: 3rem auto 0;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.fragments__watch:hover,
.fragments__watch:focus-visible {
  opacity: 0.55;
}

.fragments__video {
  background: #000000;
}

.slider__nav {
  position: absolute;
  bottom: clamp(2.25rem, 5vh, 4rem);
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(30rem, calc(100vw - 8rem));
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.slider__nav button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.25rem;
  padding: 0.5rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.slider__nav--compact {
  width: auto;
  gap: clamp(2rem, 8vw, 4rem);
  justify-content: center;
}

.slider__nav button[hidden] {
  display: none;
}

.slider__nav button:hover:not(:disabled),
.slider__nav button:focus-visible:not(:disabled) {
  opacity: 0.8;
}

.slider__nav button:disabled {
  cursor: default;
  opacity: 0.2;
}

body.fragments-text-open .slider__nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.video-is-open .slider__nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.control-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.play-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.12rem;
}

[data-sound-toggle][aria-pressed="false"] .sound-icon--on,
[data-sound-toggle][aria-pressed="true"] .sound-icon--off {
  display: none;
}

@media (max-width: 760px) {
  .slider__nav {
    bottom: 1.5rem;
    gap: 1rem;
  }

  .site-header {
    padding: 28px 32px 0;
    font-size: 48px;
  }

  .slide__info {
    right: 1rem;
    top: 58vh;
    left: 32px;
    width: auto;
  }

  .slide__info h1,
  .slide__info h2 {
    max-width: 90vw;
    margin-block: 0 0.75rem;
    font-size: 16px;
  }

  .slide__action {
    margin-top: 0.8rem;
  }

  .video-overlay__close {
    top: 4.5rem;
    left: 1rem;
  }

  .type-scene--dark > span:nth-child(1),
  .type-scene--blue > span:nth-child(1),
  .type-scene--sand > span:nth-child(1) {
    top: 17vh;
  }

  .type-scene--dark > span:nth-child(2),
  .type-scene--blue > span:nth-child(2),
  .type-scene--sand > span:nth-child(2) {
    bottom: 22vh;
  }

  .type-scene--dark > span:nth-child(1) {
    font-size: 24vw;
  }

  .type-scene--dark > span:nth-child(2) {
    font-size: 34vw;
  }

  .type-scene--blue > span:nth-child(1) {
    font-size: 52vw;
  }

  .type-scene--blue > span:nth-child(2) {
    font-size: 20vw;
  }

  .type-scene--sand {
    background: linear-gradient(90deg, #b8a98d 0 74%, #31506a 74% 79%, #d8d2c5 79% 100%);
  }

  .type-scene--sand > span:nth-child(1) {
    font-size: 18vw;
  }

  .type-scene--sand > span:nth-child(2) {
    font-size: 31vw;
  }

  .fragments__prompt {
    right: 1rem;
    bottom: 6.5rem;
  }

  .fragments__text {
    padding: 5.25rem 1.5rem 7.5rem;
  }

  .fragments__text-nav {
    align-items: flex-start;
  }

  .fragments__text .fragments__prompt {
    font-size: 14px;
  }

  .fragments__poem {
    font-size: 1rem;
  }

  .slider__nav button {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .slide--clickable.is-active:not(.has-video):not(.slide--habitat) {
    cursor: var(--play-cursor);
  }

  .slide--fragments.is-active .fragments__image {
    cursor: var(--play-cursor);
  }
}

@media (hover: none) and (pointer: coarse) {
  body.video-is-open .site-header,
  body.video-is-open .slider__nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.video-is-open .video-overlay__close {
    top: 1rem;
  }
}

@media (max-height: 650px) {
  .slider__nav {
    bottom: 1.5rem;
  }

  .slide__info {
    top: 58vh;
  }

  .slide__info h1,
  .slide__info h2 {
    font-size: 16px;
  }

  .fragments__prompt {
    bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
