:root {
  color-scheme: light;
  --nd-snow: #eef3f5;
  --nd-ice: #dbe5ea;
  --nd-cloud: #c5d1d8;
  --nd-ink: #111517;
  --nd-quiet: #53636c;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--nd-snow);
}

body {
  color: var(--nd-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.nd-experience {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, .92), transparent 27%),
    linear-gradient(168deg, var(--nd-snow) 0%, var(--nd-ice) 52%, #e8eef1 100%);
}

.nd-experience::before,
.nd-experience::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nd-experience::before {
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 56% 9% at 60% 67%, rgba(255, 244, 211, .52) 0%, rgba(255, 205, 89, .24) 48%, transparent 82%),
    radial-gradient(ellipse 116% 108% at 50% -40%, transparent 0 62%, rgba(170, 211, 217, .16) 70%, rgba(228, 231, 216, .4) 79%, rgba(248, 222, 170, .14) 88%, transparent 96%),
    linear-gradient(
      180deg,
      #033559 0%,
      #154a6f 14%,
      #336286 29%,
      #67859e 42%,
      #a7a7a1 52%,
      #d2b58e 59%,
      #f0b04f 65%,
      #f3a623 69%,
      #df7e14 73%,
      #743c1e 77%,
      #361e14 82%,
      #120b08 100%
    );
  background-size: 108% 104%, 110% 105%, 100% 100%;
  background-position: 46% 50%, 50% 50%, 50% 50%;
  transition: opacity 2200ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform, filter, background-position;
}

.nd-experience.is-sunrise::before {
  opacity: 1;
  animation: nd-sky-breathe 24s ease-in-out infinite alternate;
}

.nd-experience::after {
  z-index: 2;
  opacity: .32;
  background:
    repeating-linear-gradient(104deg, transparent 0 14%, rgba(255, 255, 255, .35) 14.2%, transparent 14.6% 29%),
    linear-gradient(180deg, transparent 70%, rgba(168, 185, 194, .24));
  mix-blend-mode: screen;
  box-shadow: inset 0 0 90px rgba(66, 83, 92, .15);
  transition: opacity 1800ms ease;
}

.nd-experience.is-sunrise::after {
  opacity: .18;
  background:
    radial-gradient(ellipse 34% 8% at 25% 66%, rgba(223, 231, 218, .16), transparent 74%),
    radial-gradient(ellipse 42% 7% at 69% 64%, rgba(255, 218, 135, .14), transparent 76%),
    linear-gradient(98deg, transparent 4%, rgba(225, 235, 223, .08) 28%, transparent 47%, rgba(255, 216, 131, .07) 64%, transparent 88%);
  background-size: 118% 100%, 122% 100%, 132% 100%;
  mix-blend-mode: soft-light;
  animation: nd-sky-wind 19s ease-in-out infinite alternate;
}

@keyframes nd-sky-breathe {
  0% {
    transform: translate3d(-.6%, 0, 0) scale(1.018);
    filter: saturate(.98) brightness(.99);
    background-position: 44% 50%, 49% 50%, 50% 50%;
  }

  100% {
    transform: translate3d(1.35%, -.15%, 0) scale(1.035);
    filter: saturate(1.035) brightness(1.012);
    background-position: 51% 50%, 54% 50%, 50% 50%;
  }
}

@keyframes nd-sky-wind {
  0% {
    transform: translate3d(-3.5%, 0, 0) scaleX(1.04);
    opacity: .12;
  }

  55% {
    transform: translate3d(1.5%, .15%, 0) scaleX(1.08);
    opacity: .2;
  }

  100% {
    transform: translate3d(4.5%, -.1%, 0) scaleX(1.12);
    opacity: .16;
  }
}

.nd-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(155deg, rgba(242, 247, 249, .985), rgba(205, 218, 225, .985));
  transition: opacity 900ms ease, visibility 900ms ease;
}

.nd-gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nd-gate-inner {
  width: min(680px, 100%);
  text-align: center;
}

.nd-kicker {
  margin: 0;
  color: var(--nd-quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nd-gate h1 {
  margin: 34px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

.nd-subtitle {
  max-width: 480px;
  margin: 0 auto 42px;
  color: var(--nd-quiet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 2.7vw, 22px);
  line-height: 1.5;
}

.nd-enter,
.nd-sound,
.nd-return,
.nd-video-play {
  appearance: none;
  border: 1px solid var(--nd-ink);
  border-radius: 0;
  background: transparent;
  color: var(--nd-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.nd-enter {
  padding: 16px 22px;
}

.nd-enter:hover,
.nd-enter:focus-visible,
.nd-return:hover,
.nd-return:focus-visible,
.nd-video-play:hover,
.nd-video-play:focus-visible {
  background: var(--nd-ink);
  color: var(--nd-snow);
}

:focus-visible {
  outline: 2px solid var(--nd-ink);
  outline-offset: 4px;
}

.nd-scroller {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.nd-utility {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  pointer-events: none;
}

.nd-brand {
  color: rgba(17, 21, 23, .67);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: auto;
}

.nd-sound {
  min-width: 108px;
  padding: 9px 12px;
  border-color: rgba(17, 21, 23, .34);
  background: rgba(238, 243, 245, .72);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.nd-essay {
  margin-top: -50px;
}

.nd-passage {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 84px clamp(28px, 8vw, 96px);
  scroll-snap-align: center;
}

.nd-passage-inner {
  width: min(690px, 90%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3.3vw, 34px);
  line-height: 1.45;
  letter-spacing: -.018em;
  will-change: transform, opacity;
}

.nd-passage p {
  margin: 0 0 1.15em;
}

.nd-passage p:last-child {
  margin-bottom: 0;
}

.nd-left {
  justify-content: flex-start;
}

.nd-right {
  justify-content: flex-end;
  text-align: right;
}

.nd-center {
  justify-content: center;
  text-align: center;
}

.nd-spare .nd-passage-inner {
  width: min(540px, 88%);
  font-size: clamp(27px, 5.1vw, 52px);
  line-height: 1.24;
}

.nd-whisper .nd-passage-inner {
  width: min(580px, 88%);
  color: #263238;
  font-size: clamp(18px, 2.5vw, 26px);
}

.nd-single {
  display: block;
  margin: .18em 0;
}

.nd-rule {
  width: 56px;
  height: 1px;
  margin: 28px auto;
  background: rgba(17, 21, 23, .42);
}

.nd-video-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 70px 24px;
  scroll-snap-align: center;
}

.nd-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nd-snow);
  opacity: 0;
  transition: opacity 1100ms ease;
}

.nd-video-section.is-arrived::before {
  opacity: 1;
}

.nd-experience.is-sunrise .nd-video-section::before {
  opacity: 0;
  transition-duration: 2200ms;
}

.nd-video-wrap {
  position: relative;
  z-index: 1;
  width: min(390px, 66vw);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

.nd-video-section.is-arrived .nd-video-wrap {
  opacity: 1;
  transform: translateY(0);
}

.nd-experience.is-sunrise .nd-video-wrap {
  opacity: 0;
  transform: translateY(-12px) scale(.985);
  transition-duration: 1300ms;
}

.nd-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #1e292e;
  box-shadow: 0 26px 70px rgba(24, 37, 43, .18);
}

.nd-video-play {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 13px 15px;
  transform: translateX(-50%);
  border-color: rgba(255, 255, 255, .9);
  background: rgba(9, 16, 19, .78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.nd-video-play[hidden] {
  display: none;
}

.nd-final {
  position: relative;
  height: 0;
  min-height: 0;
  display: none;
  place-items: center;
  padding: 0 28px;
  overflow: hidden;
  color: #111517;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1400ms ease, transform 1400ms ease;
  scroll-snap-align: center;
  isolation: isolate;
}

.nd-final::before,
.nd-final::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nd-final::before {
  inset: -8%;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 34% 5% at 34% 69%, rgba(255, 220, 129, .36), transparent 78%),
    radial-gradient(ellipse 48% 7% at 68% 66%, rgba(255, 239, 184, .3), transparent 76%);
  filter: blur(18px);
  transform: translate3d(-3%, 0, 0) scaleX(1.04);
  transition: opacity 1800ms ease;
  animation: nd-horizon-glow 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.nd-final::after {
  left: -5%;
  right: -5%;
  bottom: -8%;
  z-index: 1;
  height: 30%;
  border-radius: 49% 51% 0 0 / 11% 9% 0 0;
  background: linear-gradient(180deg, rgba(58, 32, 22, .96) 0%, #1e120d 35%, #0b0807 100%);
  filter: blur(2.2px);
  transform: rotate(-.18deg);
  box-shadow: 0 -5px 22px rgba(44, 24, 17, .22);
}

.nd-final-copy {
  position: relative;
  z-index: 2;
}

.nd-final.is-ready::before {
  opacity: .58;
}

@keyframes nd-horizon-glow {
  0% {
    transform: translate3d(-3.5%, 0, 0) scaleX(1.03);
    opacity: .42;
  }

  58% {
    transform: translate3d(1.4%, .2%, 0) scaleX(1.08);
    opacity: .62;
  }

  100% {
    transform: translate3d(4.5%, -.15%, 0) scaleX(1.13);
    opacity: .5;
  }
}

.nd-final.is-ready {
  height: auto;
  min-height: 100vh;
  display: grid;
  padding: 90px 28px;
  opacity: 1;
  transform: translateY(0);
}

.nd-final-words {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-shadow: 0 1px 16px rgba(238, 214, 155, .24);
}

.nd-final-words span {
  display: block;
}

.nd-return {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5.5vh, 72px);
  z-index: 3;
  margin: 0;
  padding: 9px 0;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 237, 211, .72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .32);
  white-space: nowrap;
  transition: color 300ms ease, letter-spacing 450ms ease;
}

.nd-return::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 16px);
  width: clamp(34px, 6vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 211, .54));
}

.nd-return:hover,
.nd-return:focus-visible {
  background: transparent;
  color: #fff2dd;
  letter-spacing: .2em;
}

.nd-progress {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 8;
  width: 2px;
  height: 100%;
  background: rgba(17, 21, 23, .08);
  pointer-events: none;
}

.nd-progress-bar {
  width: 100%;
  height: 0;
  background: rgba(17, 21, 23, .65);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .nd-experience {
    height: 100svh;
    min-height: 610px;
  }

  .nd-utility {
    padding: 14px;
  }

  .nd-brand {
    max-width: 140px;
    line-height: 1.4;
  }

  .nd-passage {
    min-height: 78vh;
    padding: 72px 24px;
  }

  .nd-passage-inner {
    width: 100%;
  }

  .nd-right {
    text-align: left;
  }

  .nd-video-wrap {
    width: min(330px, 82vw);
  }

  .nd-final-words {
    font-size: clamp(38px, 12vw, 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .nd-passage-inner {
    transform: none !important;
    opacity: 1 !important;
  }

  .nd-experience.is-sunrise::before,
  .nd-experience.is-sunrise::after,
  .nd-final::before {
    animation: none !important;
  }
}
