.world-journey {
  --world-accent: #5899ff;
  --journey-progress: 0;
  --journey-scale: 1;
  --journey-shift-y: 0px;
  --story-shift: 0px;
  --story-opacity: 1;
  position: relative;
  height: 260svh;
  min-height: 1700px;
  background: #03060a;
}

.world-stage {
  position: sticky;
  top: 74px;
  height: calc(100svh - 74px);
  min-height: 546px;
  overflow: hidden;
  isolation: isolate;
  background: #03060a;
  color: #f5f7fb;
}

.world-media,
.world-fallback,
.world-canvas,
.world-atmosphere,
.world-grain,
.world-frame {
  position: absolute;
  inset: 0;
}

.world-media {
  z-index: -1;
  overflow: hidden;
  background: #03060a;
  transform: translate3d(0, var(--journey-shift-y), 0) scale(var(--journey-scale));
  transform-origin: center;
  will-change: transform;
}

.world-fallback {
  background:
    linear-gradient(90deg, rgba(2, 5, 10, .86), rgba(2, 5, 10, .05) 68%),
    url("assets/services/games/per-aspera-mars-clean-20260727.avif") center / cover no-repeat;
  transform: scale(1.015);
  transition: background-image 260ms ease, filter 500ms ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.world-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}

.world-journey.world-ready .world-canvas {
  opacity: 1;
}

.world-journey.world-ready .world-fallback {
  opacity: 0;
}

.world-atmosphere {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, .84) 0%, rgba(2, 5, 10, .2) 48%, rgba(2, 5, 10, .32) 100%),
    linear-gradient(0deg, rgba(2, 5, 10, .88), transparent 47%, rgba(2, 5, 10, .24));
}

.world-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    radial-gradient(circle at 66% 42%, color-mix(in srgb, var(--world-accent) 34%, transparent), transparent 28%),
    linear-gradient(112deg, transparent 58%, color-mix(in srgb, var(--world-accent) 12%, transparent) 58.2%, transparent 59%);
  mix-blend-mode: screen;
  transition: background 600ms ease;
}

.world-grain {
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.world-frame {
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(226, 237, 251, .13);
}

.world-story {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: clamp(64px, 9vh, 104px);
  pointer-events: none;
  opacity: var(--story-opacity);
  transform: translate3d(0, var(--story-shift), 0);
  will-change: opacity, transform;
}

.world-story.is-transitioning {
  opacity: var(--story-opacity);
  transform: translate3d(0, var(--story-shift), 0);
}

.world-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #f5f7fb;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.world-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(220, 232, 249, .24);
  border-radius: 50%;
  color: var(--world-accent);
}

.world-project,
.world-role {
  text-shadow: 0 4px 24px rgba(0, 0, 0, .9);
}

.world-role {
  color: rgba(230, 237, 247, .52);
}

.world-role::before {
  content: "/";
  margin-right: 14px;
  color: rgba(230, 237, 247, .25);
}

.world-title {
  max-width: min(820px, 72vw);
  margin: 0;
  color: #fff;
  font-size: clamp(3.7rem, 7vw, 7.5rem);
  font-weight: 690;
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
  text-shadow: 0 15px 52px rgba(0, 0, 0, .72);
}

.world-copy {
  max-width: 620px;
  margin: 27px 0 0;
  color: rgba(237, 242, 249, .78);
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  text-shadow: 0 5px 20px rgba(0, 0, 0, .95);
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 24px;
  pointer-events: auto;
}

.world-actions .button {
  border: 1px solid color-mix(in srgb, var(--world-accent) 70%, #fff);
  background: color-mix(in srgb, var(--world-accent) 55%, #071426);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--world-accent) 24%, transparent);
}

.world-actions .button:hover {
  background: color-mix(in srgb, var(--world-accent) 65%, #071426);
}

.world-text-link {
  color: #f5f7fb;
  font-size: .9rem;
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, var(--world-accent) 78%, #fff);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.world-text-link:hover {
  color: var(--world-accent);
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.world-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(229, 237, 249, .2);
  background: rgba(2, 5, 10, .28);
  color: rgba(239, 243, 249, .66);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.world-chapter {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -.04em;
  display: flex;
  align-items: baseline;
  gap: 28px;
  color: transparent;
  transform: translateY(-50%);
  -webkit-text-stroke: 1px rgba(225, 235, 249, .1);
  writing-mode: vertical-rl;
  pointer-events: none;
}

.world-chapter span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-style: italic;
}

.world-chapter strong {
  font-size: clamp(4.6rem, 10vw, 10rem);
  font-weight: 850;
  letter-spacing: -.08em;
}

.world-progress {
  position: absolute;
  z-index: 8;
  top: 37px;
  right: 42px;
  display: flex;
  gap: 9px;
  transform: none;
}

.world-progress button {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: rgba(239, 244, 250, .5);
  cursor: pointer;
}

.world-progress button span {
  display: none;
}

.world-progress button:hover span,
.world-progress button:focus-visible span,
.world-progress button.is-active span {
  display: none;
}

.world-progress button i {
  position: relative;
  width: 22px;
  height: 2px;
  background: rgba(235, 241, 249, .36);
  transition: width 300ms cubic-bezier(.2, .8, .2, 1), background 200ms ease;
}

.world-progress button.is-active {
  color: #fff;
}

.world-progress button.is-active i {
  width: 42px;
  background: var(--world-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--world-accent) 58%, transparent);
}

.world-scroll-cue {
  position: absolute;
  z-index: 7;
  right: 42px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(238, 243, 250, .58);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.world-scroll-cue.is-hidden {
  opacity: 0;
}

.world-scroll-cue > i {
  position: relative;
  width: 23px;
  height: 37px;
  border: 1px solid rgba(239, 244, 250, .38);
  border-radius: 20px;
}

.world-scroll-cue b {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 2px;
  height: 7px;
  background: #fff;
  animation: world-scroll-dot 1.8s cubic-bezier(.2, .8, .2, 1) infinite;
}

.world-travel {
  position: absolute;
  z-index: 8;
  right: 190px;
  bottom: 39px;
  left: clamp(330px, 43vw, 620px);
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto 46px;
  align-items: center;
  gap: 11px;
  color: rgba(238, 243, 250, .48);
  font-size: .48rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.world-travel > i {
  position: relative;
  height: 1px;
  overflow: visible;
  background: rgba(234, 241, 250, .24);
}

.world-travel > i::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(238, 244, 251, .36);
}

.world-travel b {
  position: absolute;
  inset: 0;
  background: var(--world-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--world-accent) 62%, transparent);
  transform: scaleX(var(--journey-progress));
  transform-origin: left center;
}

.world-travel-readout {
  color: rgba(247, 249, 252, .84);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.world-beats {
  position: absolute;
  z-index: 9;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.world-beat {
  position: absolute;
  right: 30px;
  display: grid;
  width: 220px;
  grid-template-columns: 32px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(224, 235, 249, .13);
  background: rgba(2, 6, 12, .52);
  color: rgba(236, 242, 250, .5);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.world-beat span,
.world-beat strong {
  font-size: .48rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.world-beat span {
  color: var(--world-accent);
  font-variant-numeric: tabular-nums;
}

.world-beat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-beat i {
  height: 1px;
  background: currentColor;
  transform: scaleX(.45);
  transform-origin: right center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.world-beat.is-active {
  border-color: color-mix(in srgb, var(--world-accent) 52%, transparent);
  background: color-mix(in srgb, var(--world-accent) 13%, rgba(2, 6, 12, .72));
  color: #fff;
}

.world-beat.is-active i {
  transform: scaleX(1);
  background: var(--world-accent);
  box-shadow: 0 0 12px var(--world-accent);
}

.world-coordinates {
  position: absolute;
  z-index: 7;
  left: 42px;
  top: 38px;
  display: flex;
  gap: 20px;
  color: rgba(235, 241, 249, .48);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.world-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(245, 247, 251, .84);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.world-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--world-accent);
  box-shadow: 0 0 10px var(--world-accent);
}

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

@keyframes world-scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 900px) {
  .world-journey {
    height: 280svh;
    min-height: 1650px;
  }

  .world-stage {
    min-height: 486px;
  }

  .world-title {
    max-width: min(780px, 82vw);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
  }

  .world-copy {
    max-width: min(600px, 70vw);
  }

  .world-chapter {
    opacity: .7;
  }
}

@media (max-width: 700px) {
  .world-journey {
    height: 280svh;
    min-height: 1600px;
  }

  .world-stage {
    min-height: 446px;
  }

  .world-frame {
    inset: 8px;
  }

  .world-story {
    bottom: 56px;
  }

  .world-title {
    max-width: calc(100vw - 2rem);
    font-size: clamp(3.35rem, 15vw, 5.5rem);
    line-height: .88;
  }

  .world-kicker {
    margin-bottom: 17px;
  }

  .world-role {
    display: none;
  }

  .world-copy {
    max-width: calc(100vw - 3rem);
    margin-top: 21px;
    font-size: .94rem;
  }

  .world-actions {
    margin-top: 18px;
  }

  .world-actions .button {
    min-height: 44px;
    padding: .7rem 1rem;
    font-size: .86rem;
  }

  .world-tags {
    margin-top: 16px;
  }

  .world-chapter {
    display: none;
  }

  .world-progress {
    top: 24px;
    right: 20px;
    display: flex;
    gap: 9px;
    transform: none;
  }

  .world-progress button {
    padding: 8px 0;
  }

  .world-progress button span {
    display: none;
  }

  .world-progress button i,
  .world-progress button.is-active i {
    width: 28px;
  }

  .world-beat {
    right: 9px;
    width: 46px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 9px 7px;
  }

  .world-beat strong,
  .world-beat i {
    display: none;
  }

  .world-coordinates {
    left: 18px;
    top: 27px;
  }

  .world-coordinates > span:first-child {
    display: none;
  }

  .world-scroll-cue {
    right: 18px;
    bottom: 16px;
  }

  .world-scroll-cue span {
    display: none;
  }

  .world-travel {
    right: 67px;
    bottom: 28px;
    left: 18px;
    grid-template-columns: minmax(84px, 1fr) 38px;
    gap: 9px;
  }

  .world-travel-start,
  .world-travel-end {
    display: none;
  }

  .world-atmosphere {
    background:
      linear-gradient(90deg, rgba(2, 5, 10, .78), rgba(2, 5, 10, .14)),
      linear-gradient(0deg, rgba(2, 5, 10, .94), transparent 65%, rgba(2, 5, 10, .25));
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .world-story {
    bottom: 35px;
  }

  .world-title {
    font-size: clamp(3.5rem, 6.6vw, 6.3rem);
  }

  .world-copy {
    margin-top: 18px;
  }

  .world-actions {
    margin-top: 16px;
  }

  .world-tags {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-media {
    transform: none;
  }

  .world-canvas {
    display: none;
  }

  .world-fallback {
    opacity: 1 !important;
    transform: none;
  }

  .world-scroll-cue b {
    animation: none;
  }

  .world-story,
  .world-fallback,
  .world-progress button i {
    transition-duration: .001ms !important;
  }
}
