body.journey {
  display: block;
  --canyon-opacity: 0;
  --night-opacity: 0;
  --forest-scale: 1;
  --canyon-scale: 1.08;
  --night-scale: 1.03;
  --gate-shift: 0px;
  --gate-scale: 1;
  --rock-opacity: 0;
  --rock-shift: 0px;
  --rock-scale: 1;
  --route-opacity: 0;
  --route-draw: 1;
  --moth-x: 80vw;
  --moth-y: 65vh;
  --moth-turn: 0deg;
}
.journey-world {
  z-index: -1;
}
.journey-world::after {
  background:
    radial-gradient(ellipse at center, #00100a08, transparent 70%),
    linear-gradient(0deg, #00130ca8, transparent 25%);
}
.world-layer {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  will-change: transform, opacity;
}
.world-forest {
  background-image: url('./assets/journey-forest.webp');
  transform: translate(calc(var(--look-x) * 0.5), calc(var(--look-y) * 0.5))
    scale(var(--forest-scale));
}
.world-canyon {
  background-image: url('./assets/journey-canyon.webp');
  opacity: var(--canyon-opacity);
  transform: translate(calc(var(--look-x) * 0.4), calc(var(--look-y) * 0.4))
    scale(var(--canyon-scale));
}
.world-night {
  background-image: url('./assets/journey-night.webp');
  opacity: var(--night-opacity);
  transform: translate(calc(var(--look-x) * 0.35), calc(var(--look-y) * 0.35))
    scale(var(--night-scale));
}
.forest-gate {
  position: absolute;
  inset: -3%;
  background: url('./assets/forest-foreground.webp') center/100% 100% no-repeat;
  will-change: transform;
  opacity: 0.8;
}
.gate-left {
  clip-path: inset(0 50% 0 0);
  transform: translate(
      calc(var(--gate-shift) * -1 + var(--look-x)),
      calc(var(--look-y) * 1.3)
    )
    scale(var(--gate-scale));
  transform-origin: left bottom;
}
.gate-right {
  clip-path: inset(0 0 0 50%);
  transform: translate(
      calc(var(--gate-shift) + var(--look-x)),
      calc(var(--look-y) * 1.3)
    )
    scale(var(--gate-scale));
  transform-origin: right bottom;
}
.canyon-rock {
  position: absolute;
  inset: -5%;
  background: url('./assets/journey-rocks.webp') center/100% 100% no-repeat;
  opacity: var(--rock-opacity);
  will-change: transform, opacity;
}
.rock-left {
  clip-path: inset(0 50% 0 0);
  transform: translate(
      calc(var(--rock-shift) * -1 + var(--look-x) * 1.5),
      var(--look-y)
    )
    scale(var(--rock-scale));
  transform-origin: left center;
}
.rock-right {
  clip-path: inset(0 0 0 50%);
  transform: translate(
      calc(var(--rock-shift) + var(--look-x) * 1.5),
      var(--look-y)
    )
    scale(var(--rock-scale));
  transform-origin: right center;
}
.journey-home {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}
body[data-chapter='1'] .journey-home,
body[data-chapter='2'] .journey-home {
  opacity: 1;
  visibility: visible;
}
.journey .scene-mist {
  inset: 35% -30% -10%;
  opacity: 0.75;
}
.journey-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  pointer-events: none;
}
.journey-nav > * {
  pointer-events: auto;
}
.journey-home img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.journey-controls {
  display: flex;
  gap: 13px;
  align-items: center;
}
.join-shortcut {
  font-size: 12px;
  color: #fbc906;
  border: 1px solid #fbc906;
  border-radius: 30px;
  padding: 9px 17px;
  text-decoration: none;
  background: #00170a42;
  white-space: nowrap;
}
.join-shortcut span {
  margin-left: 8px;
}
.journey .sound-toggle {
  background: #00170b55;
}
.journey .sound-toggle[data-audio-prompt='true'] {
  background: #fbc906;
  border-color: #fbc906;
  color: #082d16;
  font-weight: 700;
  box-shadow: 0 0 18px #fbc90688;
  animation: audio-invitation 1.8s ease-in-out infinite;
}
.journey .sound-toggle[data-audio-prompt='true'] span {
  display: inline;
}
@keyframes audio-invitation {
  0%,
  100% {
    box-shadow: 0 0 10px 2px #fbc90655;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 28px 6px #fbc90699;
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey .sound-toggle[data-audio-prompt='true'] {
    animation: none;
  }
}
.scroll-journey {
  position: relative;
  z-index: 1;
}
.chapter {
  min-height: 150svh;
  position: relative;
}
.chapter-intro {
  min-height: 260svh;
}
.chapter-content {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: 105px 30px 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  text-shadow: 0 3px 22px #001309a8;
}
.chapter-content > * {
  max-width: 100%;
}
.intro-content .brand-morph {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  text-align: center;
}
.intro-content .morph-art {
  width: clamp(175px, 26vh, 280px);
  height: clamp(175px, 26vh, 280px);
  transform: scale(var(--brand-scale, 0.92));
  filter: drop-shadow(
    0 0 var(--brand-glow-radius, 0px)
      rgba(251, 201, 6, var(--brand-glow-alpha, 0))
  );
  will-change: transform, filter;
}
.intro-content .morph-words {
  font:
    400 clamp(32px, 4.6vw, 68px)/1.18 Young Serif,
    Georgia,
    serif;
  min-width: 0;
  max-width: 1000px;
}
.intro-content .morph-words > span {
  transform-origin: center;
  white-space: nowrap;
}
.intro-content h1 {
  font:
    400 clamp(26px, 3.4vw, 48px)/1.2 Young Serif,
    Georgia,
    serif;
  letter-spacing: 0.12em;
  color: #fbc906;
  margin: 24px 0 15px;
}
.intro-content > p {
  font-size: clamp(15px, 1.5vw, 23px);
  margin: 0;
}
.intro-headline {
  display: grid;
}
.intro-headline > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}
.headline-old {
  opacity: var(--brand-old-name, 1);
}
.headline-new {
  opacity: var(--brand-new-name, 0);
}
.scroll-cue {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: #e8eee5;
}
.scroll-cue span {
  font-size: 35px;
  line-height: 1;
  animation: cue-bob 2s ease-in-out infinite;
}
.climb-content {
  overflow: clip;
  padding-left: 50px;
  padding-right: 50px;
}
.climb-logo-stage {
  position: relative;
  isolation: isolate;
  width: clamp(285px, 50vw, 720px);
  max-width: 100%;
  margin-bottom: 36px;
}
.climb-logo-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -85% -17%;
  background: radial-gradient(
    ellipse,
    #081b18c4 0%,
    #081b186b 36%,
    transparent 71%
  );
  filter: blur(18px);
  pointer-events: none;
}
.climb-logo-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 34%;
  height: 190%;
  left: 60%;
  top: -45%;
  background: radial-gradient(ellipse, #f9b4553d, transparent 67%);
  filter: blur(14px);
  pointer-events: none;
}
.climb-reveal-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 1px #071711b3) drop-shadow(0 12px 20px #0008);
}
body[data-chapter='1'] .climb-logo-stage {
  animation: climb-logo-arrive 1.15s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes climb-logo-arrive {
  from {
    opacity: 0.25;
    transform: translateY(26px) scale(0.91);
  }
  72% {
    opacity: 1;
    transform: translateY(-3px) scale(1.025);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.chapter-content h2 {
  font:
    400 clamp(32px, 4vw, 60px)/1.22 Young Serif,
    Georgia,
    serif;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}
.climb-content h2 {
  max-width: 1100px;
}
.climb-availability p {
  font-size: clamp(16px, 1.7vw, 26px);
  margin: 0;
}
.chapter-join {
  min-height: 115svh;
}
.join-content {
  padding-top: 130px;
  padding-bottom: 80px;
}
.join-content h2 {
  max-width: 1000px;
  z-index: 1;
}
.launch-promise {
  font-size: clamp(13px, 1.3vw, 19px);
  line-height: 1.8;
  letter-spacing: 0.07em;
  margin: 0 0 44px;
  max-width: 850px;
}
.journey .signup-area {
  width: min(100%, 640px);
  text-align: left;
}
.journey .signup-area label {
  font-size: 14px;
  margin-bottom: 9px;
}
.journey .form-row input {
  border-radius: 30px;
  font-size: 16px;
  min-height: 52px;
  background: #001d1a44;
}
.journey .form-row .button {
  border-radius: 30px;
  background: #fbc906;
  color: #082d16;
  font-size: 16px;
  min-height: 52px;
  padding: 14px 25px;
}
.journey .consent {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 14px;
}
.climb-included {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-top: 28px;
}
.invitation-glow {
  position: absolute;
  top: 16%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7d4732b, transparent 65%);
  box-shadow: 0 0 70px #fbc90608;
  animation: invitation-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
.journey .scene-footer {
  position: relative;
  z-index: auto;
  min-height: 95px;
  margin: 0 30px;
  padding: 18px 0;
}
.journey .scene-footer .footer-destination {
  display: none;
}
.journey .scene-footer .brand-lockup img {
  width: 48px;
  height: 48px;
}
.journey .success {
  min-height: 130px;
}
.journey .success p {
  font-size: 14px;
}
.journey .success h2 {
  font-size: 30px;
}
.journey .success .trail {
  color: #fff;
}
.journey-moth {
  position: absolute;
  left: 0;
  top: 0;
  width: 110px;
  height: 110px;
  transform: translate(var(--moth-x), var(--moth-y)) rotate(var(--moth-turn));
  perspective: 400px;
  will-change: transform;
  filter: drop-shadow(0 8px 6px #0005);
  opacity: 0.82;
}
.journey-moth img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wing-left {
  clip-path: inset(0 50% 0 0);
  transform-origin: 50% 50%;
  animation: flutter-left 0.19s ease-in-out infinite alternate;
}
.wing-right {
  clip-path: inset(0 0 0 50%);
  transform-origin: 50% 50%;
  animation: flutter-right 0.19s ease-in-out infinite alternate;
}
.moth-body {
  clip-path: inset(0 46% 0 46%);
}
.golden-route {
  position: absolute;
  right: 13%;
  top: 5%;
  width: 28%;
  height: 95%;
  opacity: var(--route-opacity);
  filter: drop-shadow(0 0 6px #fbc90688);
}
.golden-route path {
  stroke-dasharray: 1;
  stroke-dashoffset: var(--route-draw);
}
@keyframes flutter-left {
  from {
    transform: rotateY(5deg);
  }
  to {
    transform: rotateY(66deg);
  }
}
@keyframes flutter-right {
  from {
    transform: rotateY(-5deg);
  }
  to {
    transform: rotateY(-66deg);
  }
}
@keyframes cue-bob {
  50% {
    transform: translateY(7px);
  }
}
@keyframes invitation-pulse {
  50% {
    transform: scale(1.25);
    opacity: 0.5;
  }
}
@media (max-width: 700px) {
  .journey-nav {
    padding: 12px 16px;
  }
  .journey-home img {
    width: 39px;
    height: 39px;
  }
  .journey-controls {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100vw - 86px);
  }
  .join-shortcut {
    font-size: 11px;
    padding: 8px 13px;
  }
  .chapter {
    min-height: 145svh;
  }
  .chapter-intro {
    min-height: 245svh;
  }
  .chapter-content {
    padding: 85px 24px 95px;
  }
  .intro-content .morph-art {
    width: 185px;
    height: 185px;
  }
  .intro-content .morph-words {
    font-size: clamp(18px, 7.2vw, 33px);
    max-width: 100%;
  }
  .intro-content h1 {
    font-size: clamp(20px, 5.8vw, 26px);
    letter-spacing: 0.065em;
    margin-top: 23px;
  }
  .intro-content > p {
    font-size: 14px;
  }
  .scroll-cue {
    bottom: 34px;
    font-size: 18px;
  }
  .climb-logo-stage {
    width: 100%;
    max-width: 410px;
    margin-bottom: 32px;
  }
  .climb-content h2 {
    font-size: 36px;
    max-width: 400px;
  }
  .climb-availability p {
    font-size: 16px;
  }
  .join-content h2 {
    font-size: 37px;
    max-width: 400px;
  }
  .launch-promise {
    font-size: 13px;
    letter-spacing: 0.03em;
    margin-bottom: 30px;
  }
  .chapter-join {
    min-height: 115svh;
  }
  .join-content {
    padding-top: 115px;
    padding-bottom: 70px;
  }
  .journey .form-row {
    gap: 12px;
  }
  .journey .consent {
    font-size: 10px;
  }
  .journey .scene-footer {
    margin: 0 24px;
    gap: 14px;
  }
  .journey .scene-footer nav {
    margin-left: auto;
  }
  .journey .scene-footer .wordmark {
    font-size: 16px;
  }
  .journey .scene-footer .brand-lockup img {
    width: 40px;
    height: 40px;
  }
  .journey-moth {
    width: 70px;
    height: 70px;
  }
  .world-layer {
    background-position: center;
  }
  .world-canyon {
    background-position: 46% center;
  }
  .forest-gate {
    opacity: 0.62;
  }
  .golden-route {
    right: 0;
    width: 45%;
  }
  .journey .success {
    padding-left: 0;
  }
  .journey .success p {
    font-size: 13px;
  }
  .climb-included {
    font-size: 10px;
  }
  .invitation-glow {
    top: 11%;
  }
}
@media (max-height: 650px) and (min-width: 701px) {
  .chapter-content {
    padding: 80px 25px;
  }
  .intro-content .morph-art {
    width: 150px;
    height: 150px;
  }
  .intro-content .morph-words {
    font-size: 42px;
  }
  .intro-content h1 {
    font-size: 28px;
    margin-top: 14px;
  }
  .intro-content > p {
    font-size: 16px;
  }
  .scroll-cue {
    bottom: 20px;
  }
  .join-content h2 {
    font-size: 38px;
  }
  .launch-promise {
    margin-bottom: 20px;
  }
  .join-content {
    padding-top: 95px;
  }
  .climb-logo-stage {
    width: 360px;
    margin-bottom: 24px;
  }
  .climb-content h2 {
    font-size: 36px;
  }
}

.climb-availability {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.climb-availability .app-store-badge {
  display: block;
  width: 156px;
  height: 52px;
  margin: 0 14px;
}

.footer-brands {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}
.respect-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font:
    400 18px/1.25 'Young Serif',
    Georgia,
    serif;
  white-space: nowrap;
}
.respect-lockup img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .footer-brands {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .journey .scene-footer .footer-brands .wordmark {
    font-size: 16px;
    gap: 10px;
  }
  .journey .scene-footer .footer-brands .brand-lockup img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .respect-lockup {
    gap: 10px;
    font-size: 13px;
  }
  .respect-lockup img {
    width: 40px;
    height: 40px;
  }
  .journey .scene-footer nav {
    width: 100%;
    justify-content: center;
  }
}

.respect-lockup sup {
  font-family: Georgia, serif;
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.15em;
}

/* The scenery moves inside the painting, beneath the existing foreground. */
#living-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
#living-landscape[data-rendering='living'] {
  opacity: 1;
}

/* Fireflies belong to the forest and lake, and fade with those environments. */
.journey #fireflies {
  position: absolute;
  inset: 0;
  opacity: var(--fireflies-opacity, 1);
}
