/* Parallax — a map conversion studio by Jaydenwasd Studios.
   Palette and type follow the Parallax app: deep teal ink, lime for what is
   aligned, cyan for interiors and structure, coral for what is out of place. */

:root {
  color-scheme: dark;
  --ink-0: #071014;
  --bg: #0b1418;
  --bg-2: #0f191f;
  --panel: #121f25;
  --panel-2: #17262d;
  --line: rgb(214 233 220 / 0.12);
  --line-strong: rgb(214 233 220 / 0.22);
  --text: #e9eee7;
  --text-soft: rgb(233 238 231 / 0.8);
  --muted: #96a7ac;
  --dim: #6c7f84;
  --lime: #d4eb99;
  --lime-deep: #b9d478;
  --on-lime: #0e1a0f;
  --cyan: #83c7cd;
  --coral: #f2aa89;
  --blossom: #f0a7bd;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --edge: clamp(1rem, 4.2vw, 4.75rem);
  --header: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --intro-delay: 1.35s;
  --rail-space: 0px;
}

@media (min-width: 1180px) {
  :root {
    --rail-space: 128px;
  }
}

.px-skip-intro {
  --intro-delay: 0.05s;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: #2d4249 var(--bg);
}

body.px {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain, barely there — keeps the large dark fields from banding. */
body.px::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 4.5rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 em,
h2 em,
h3 em,
.px-hero__statement em,
.px-story__outro em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--lime);
}

p {
  margin: 0;
}

.px-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-eyebrow__line {
  width: 2.4rem;
  height: 1px;
  background: var(--lime);
}

.px-eyebrow__index {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgb(212 235 153 / 0.45);
  border-radius: 999px;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.px-footnote {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dim);
}

/* ----------------------------------------------------------- controls -- */

.px-cta,
.px-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.px-cta {
  border: 0;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 0 0 rgb(212 235 153 / 0);
}

.px-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgb(212 235 153 / 0.55);
}

.px-cta:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
  box-shadow: none;
}

.px-cta--small {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.px-ghost {
  border: 1px solid var(--line-strong);
  background: rgb(7 16 20 / 0.35);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.px-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.px-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.px-segmented button {
  min-height: 34px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.8rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.px-segmented button:hover {
  color: var(--text);
}

.px-segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--on-lime);
}

.px-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.px-chips li {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: rgb(7 16 20 / 0.4);
}

/* ------------------------------------------------------------- loader -- */

.px-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  background: var(--ink-0);
  animation: px-loader-exit 0.7s var(--ease) 1.5s forwards;
}

.no-js .px-loader,
.px-skip-intro .px-loader {
  display: none;
}

.px-loader__mark {
  width: 64px;
  height: 72px;
  overflow: visible;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.px-loader__layer {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: px-loader-draw 0.9s var(--ease) forwards, px-loader-settle 1s var(--ease) forwards;
}

.px-loader__layer--1 {
  --from: -14px;
  animation-delay: 0.05s, 0.05s;
}

.px-loader__layer--2 {
  --from: 9px;
  animation-delay: 0.18s, 0.18s;
}

.px-loader__layer--3 {
  --from: 22px;
  animation-delay: 0.3s, 0.3s;
}

.px-loader__word {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.65em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  animation: px-loader-word 1s var(--ease) 0.45s forwards;
}

@keyframes px-loader-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes px-loader-settle {
  from {
    transform: translateY(var(--from));
  }
  to {
    transform: translateY(0);
  }
}

@keyframes px-loader-word {
  from {
    opacity: 0;
    letter-spacing: 1.1em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.65em;
  }
}

@keyframes px-loader-exit {
  to {
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
  }
}

.px-skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 120;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.px-skip:focus {
  transform: none;
}

/* ------------------------------------------------------------- header -- */

.px-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header);
  padding: 0 var(--edge);
  border-bottom: 1px solid transparent;
  transition: transform 0.32s var(--ease), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.px-header.is-hidden {
  transform: translate3d(0, calc(-100% - 2px), 0);
}

.px-header.is-hidden:focus-within {
  transform: none;
}

.px-calm .px-header {
  transition-duration: 0s;
}

.px-header.is-scrolled {
  border-color: var(--line);
  background: rgb(7 16 20 / 0.66);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.px-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.px-brand__mark {
  width: 22px;
  height: 25px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linejoin: round;
}

.px-brand__word {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  /* letter-spacing trails the last letter; cancel it so the gap to "by" is true */
  margin-right: -0.34em;
}

.px-brand small {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  /* "by" sits the same 0.7rem from the wordmark and from the logo */
  gap: calc(0.7rem - 0.12em);
}

/* The studio's own logo, not its name in type. */
.px-brand__by img {
  display: block;
  width: auto;
  height: 12px;
  opacity: 0.82;
}

.px-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

/* ------------------------------------------------------ the release -- */

/* Countdown scopes: live parts while counting, the "out" parts after. */
[data-countdown] [data-cd-out],
[data-countdown].is-released [data-cd-live] {
  display: none;
}

[data-countdown].is-released [data-cd-out] {
  display: inline;
}


.px-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.px-header__countdown {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 1rem;
  border: 1px solid color-mix(in srgb, var(--lime) 38%, transparent);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.55);
  color: var(--text-soft, var(--text));
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: border-color 0.2s, background-color 0.2s;
}

.px-header__countdown:hover {
  border-color: var(--lime);
}

.px-header__countdown b {
  margin-left: 0.35em;
  color: var(--lime);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.px-header__countdown small {
  color: var(--dim);
  font-size: 1em;
}

.px-header__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.7em;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgb(212 235 153 / 0.6);
  animation: px-pulse 2s ease-out infinite;
  vertical-align: middle;
}

@keyframes px-pulse {
  to {
    box-shadow: 0 0 0 8px rgb(212 235 153 / 0);
  }
}

/* The hero headline as the countdown. */
.px-countdown__clock {
  display: flex;
  justify-content: center;
  gap: 0.18em;
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.px-countdown__unit {
  display: grid;
  justify-items: center;
  min-width: 1.32em;
}

.px-countdown__unit + .px-countdown__unit {
  padding-left: 0.18em;
  border-left: 1px solid var(--line);
}

.px-countdown__unit b {
  font-weight: 400;
}

.px-countdown__unit small {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.px-countdown__note {
  display: block;
  font-family: var(--serif);
  color: var(--lime);
  margin-top: 0.45em;
  font-size: 0.4em;
  letter-spacing: -0.02em;
}

.px-nav a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.px-nav a:hover {
  color: var(--text);
}

.px-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.px-motion {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.4);
  color: var(--muted);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.px-motion:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.px-motion__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgb(212 235 153 / 0.18);
}

.px-motion[aria-pressed="false"] .px-motion__dot {
  background: var(--dim);
  box-shadow: none;
}

/* --------------------------------------------------------------- rail -- */

.px-rail {
  position: fixed;
  top: 50%;
  right: clamp(12px, 1.6vw, 26px);
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(7 16 20 / 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.px-rail__end {
  color: var(--dim);
}

/* The journey's two ends, as the platforms themselves. */
.px-rail__end .px-brand-logo {
  opacity: 0.82;
}

.px-rail__end .px-brand-logo--fivem {
  width: 48px;
}

.px-rail__end .px-brand-logo--gta {
  width: 27px;
}

.px-rail__track {
  position: absolute;
  top: 2.4rem;
  right: calc(0.7rem + 3px);
  bottom: 2.4rem;
  width: 1px;
  background: var(--line);
}

.px-rail__track span {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
}

.px-rail ol {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}

.px-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-right: 16px;
  color: var(--dim);
  text-decoration: none;
}

.px-rail a::after {
  content: "";
  position: absolute;
  right: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--dim);
  background: var(--bg);
  transform: rotate(45deg);
  transition: background-color 0.3s, border-color 0.3s;
}

.px-rail a span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.45s var(--ease), opacity 0.3s;
}

.px-rail a:hover span,
.px-rail a.is-active span {
  max-width: 12rem;
  opacity: 1;
}

.px-rail a.is-active {
  color: var(--lime);
}

.px-rail a.is-active::after {
  border-color: var(--lime);
  background: var(--lime);
}

.px-rail__now {
  display: none;
}

@media (min-width: 1180px) {
  .px-rail {
    display: flex;
  }
}

/* --------------------------------------------------- pins & the canvas -- */

.px-gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

main {
  position: relative;
  z-index: 1;
}

.px-pin {
  position: relative;
  height: calc(var(--len, 300) * 1vh);
}

.px-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* -------------------------------------------------------------- hero -- */

/* The hero is a conversion told around one real map. The page's WebGL canvas
   draws the model behind it; everything here is layered over that. */
.px-hero {
  --len: 900;
  background: transparent;
}

.px-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.px-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: px-hero-settle 2.4s var(--ease) var(--intro-delay) both;
}

/* Brightness only: the photo must never move off its matched camera. */
@keyframes px-hero-settle {
  from {
    filter: saturate(0.5) brightness(0.55);
  }
}

.px-hero__photo.is-hidden {
  visibility: hidden;
}

.px-hero__scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 18%, #f4ffd6 50%, var(--lime) 82%, transparent);
  box-shadow: 0 0 26px 5px rgb(212 235 153 / 0.38);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.px-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 70% 70% at 58% 48%, rgb(7 16 20 / 0.5), rgb(7 16 20 / 0.86));
  opacity: 0;
  pointer-events: none;
}

.px-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgb(7 16 20 / 0.92) 0%, rgb(7 16 20 / 0.55) 28%, transparent 58%),
    linear-gradient(90deg, rgb(7 16 20 / 0.6) 0%, transparent 48%),
    linear-gradient(180deg, rgb(7 16 20 / 0.55) 0%, transparent 18%);
}

.px-hero__ring {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: calc(var(--lens-r, 160px) * 2);
  height: calc(var(--lens-r, 160px) * 2);
  margin: calc(var(--lens-r, 160px) * -1) 0 0 calc(var(--lens-r, 160px) * -1);
  border: 1px solid rgb(212 235 153 / 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(7 16 20 / 0.35), 0 0 60px rgb(212 235 153 / 0.14), inset 0 0 40px rgb(212 235 153 / 0.08);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.px-hero__ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(212 235 153 / 0.7) 0deg 0.7deg, transparent 0.7deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(circle, transparent calc(100% - 9px), #000 calc(100% - 8px));
}

.px-hero__ring-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.px-hero__ring-cross::before,
.px-hero__ring-cross::after {
  content: "";
  position: absolute;
  background: var(--lime);
}

.px-hero__ring-cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.px-hero__ring-cross::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.px-hero__ring-readout {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: rgb(7 16 20 / 0.82);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--lime);
  transform: translateX(-50%);
}

.px-hero__copy {
  position: absolute;
  left: var(--edge);
  bottom: clamp(2rem, 9vh, 6.5rem);
  z-index: 4;
  max-width: min(760px, 92vw);
}

.px-hero__copy .px-eyebrow {
  color: var(--text-soft);
  animation: px-fade 1s var(--ease) var(--intro-delay) both;
}

.px-hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.px-hero__line {
  display: block;
  animation: px-rise 1.2s var(--ease) var(--intro-delay) both;
}

.px-hero__line--serif {
  padding-top: 0.04em;
  font-size: 1.05em;
  animation-delay: calc(var(--intro-delay) + 0.12s);
}

.px-hero__lead {
  max-width: 46ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  color: var(--text-soft);
  animation: px-rise 1.2s var(--ease) calc(var(--intro-delay) + 0.22s) both;
}

.px-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.px-hero__copy .px-hero__actions {
  animation: px-rise 1.2s var(--ease) calc(var(--intro-delay) + 0.32s) both;
}

.px-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  margin: 2.2rem 0 0;
  animation: px-fade 1.2s var(--ease) calc(var(--intro-delay) + 0.5s) both;
}

.px-hero__meta div {
  display: grid;
  gap: 0.2rem;
}

.px-hero__meta dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.px-hero__meta dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

@keyframes px-rise {
  from {
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(6px);
  }
}

@keyframes px-fade {
  from {
    opacity: 0;
  }
}

/* What it was: real files pulled out of the model. */
.px-hero__files {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.px-file {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgb(131 199 205 / 0.32);
  border-radius: 5px;
  background: rgb(7 16 20 / 0.82);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text-soft);
  opacity: 0;
  will-change: transform, opacity;
}

.px-file em {
  font-style: normal;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.px-file b {
  font-weight: 400;
  color: var(--dim);
}

.px-file.is-built {
  border-color: rgb(212 235 153 / 0.7);
  color: var(--lime);
}

.px-file.is-built em {
  color: var(--lime);
}

.px-hero__count {
  position: absolute;
  top: calc(var(--header) + 4vh);
  right: calc(var(--edge) + var(--rail-space));
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  opacity: 0;
}

.px-hero__count b {
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.px-hero__count span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* What Parallax does: the layers are drawn in the scene; these ride on them. */
.px-hero__tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.px-engine__steps {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.px-engine__steps li {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 0.25rem;
  width: min(250px, 22vw);
  padding: 0.6rem 0.8rem 0.65rem 0.9rem;
  border-left: 1px solid var(--lime);
  border-radius: 0 6px 6px 0;
  background: rgb(7 16 20 / 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  will-change: transform, opacity;
}

.px-engine__steps b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.px-engine__steps b i {
  margin-right: 0.6rem;
  font-style: normal;
  color: var(--dim);
}

.px-engine__steps span {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.px-engine__line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Without the 3D scene, the steps simply stack. */
.px-hero.is-flat .px-engine__steps {
  inset: calc(var(--header) + 3rem) auto auto var(--edge);
  display: grid;
  gap: 1rem;
}

.px-hero.is-flat .px-engine__steps li {
  position: relative;
  width: min(380px, 80vw);
}

.px-hero.is-flat .px-engine__line {
  top: 62%;
  left: var(--edge);
}

/* The two platforms this is about, in their own colours. */
.px-brand-logo {
  display: block;
  height: auto;
}

/* One logo above the caption through the conversion: FiveM, then GTA V. */
.px-hero__journey {
  position: absolute;
  bottom: var(--above, 9rem);
  left: 0;
  height: 92px;
  opacity: 0;
  transition: bottom 0.55s var(--ease);
}

.px-hero__journey img {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 100%;
}

.px-hero__journey .px-brand-logo--fivem {
  width: clamp(190px, 17vw, 260px);
}

/* The GTA V mark is nearly square: sized up so it weighs as much as FiveM's wordmark. */
.px-hero__journey .px-brand-logo--gta {
  width: clamp(130px, 11.5vw, 168px);
  opacity: 0;
}

@media (max-width: 640px) {
  .px-hero__journey .px-brand-logo--fivem {
    width: 150px;
  }

  .px-hero__journey .px-brand-logo--gta {
    width: 104px;
  }
}

.px-hero__brands {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.px-hero__brands .px-brand-logo--fivem {
  width: clamp(84px, 7vw, 112px);
}

.px-hero__brands .px-brand-logo--gta {
  width: clamp(46px, 4vw, 60px);
}

.px-hero__brands i {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, #ff6f00, var(--lime));
}

/* What it ships as. */
.px-package {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem 0.95rem 1rem;
  border: 1px solid rgb(212 235 153 / 0.6);
  border-radius: 14px;
  background: rgb(7 16 20 / 0.92);
  box-shadow: 0 0 70px rgb(212 235 153 / 0.18), 0 30px 60px -30px rgb(0 0 0 / 0.8);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.px-package__seal img {
  display: block;
  width: 52px;
  height: auto;
}

.px-package__body {
  display: grid;
  gap: 0.18rem;
}

.px-package__body b {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}

.px-package__body span {
  font-size: 0.74rem;
  color: var(--muted);
}

.px-package__body code {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--lime);
}

/* The story's captions. */
.px-hero__captions {
  position: absolute;
  bottom: clamp(2rem, 8vh, 5rem);
  left: var(--edge);
  z-index: 4;
  width: min(440px, 36vw);
  pointer-events: none;
}

.px-hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}

.px-hero__caption.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.px-hero__caption p {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-hero__caption p b {
  margin-right: 0.7rem;
  font-weight: 500;
  color: var(--lime);
}

.px-hero__caption h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.02;
}

.px-hero__caption span {
  display: block;
  margin-top: 0.8rem;
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.px-hero__statement {
  position: absolute;
  top: calc(var(--header) + 7vh);
  left: var(--edge);
  z-index: 4;
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0;
  pointer-events: none;
}

.px-hero__statement em {
  display: block;
}

.px-hero__statement small {
  display: block;
  max-width: 34ch;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-soft);
}

.px-hero__cue {
  position: absolute;
  right: calc(var(--edge) + var(--rail-space));
  bottom: clamp(2rem, 9vh, 6.5rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.px-hero__cue i {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line-strong);
}

.px-hero__cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: px-cue 2.2s var(--ease) infinite;
}

@keyframes px-cue {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

/* -------------------------------------------------- 3D chapter scaffold -- */

.px-scene {
  background: transparent;
}

.px-scene__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 16 20 / 0.94) 0%, rgb(7 16 20 / 0.72) 26%, rgb(7 16 20 / 0) 52%),
    linear-gradient(180deg, rgb(11 20 24 / 0.9) 0%, transparent 12%, transparent 84%, rgb(11 20 24 / 0.75) 100%);
}

.px-scene__veil--right {
  background:
    linear-gradient(270deg, rgb(7 16 20 / 0.94) 0%, rgb(7 16 20 / 0.72) 26%, rgb(7 16 20 / 0) 52%),
    linear-gradient(180deg, rgb(11 20 24 / 0.9) 0%, transparent 12%, transparent 84%, rgb(11 20 24 / 0.75) 100%);
}

.px-scene__panel {
  position: absolute;
  top: calc(50% + var(--header) / 2);
  left: var(--edge);
  z-index: 3;
  width: min(460px, 40vw);
  transform: translateY(-50%);
}

.px-scene__panel--right {
  left: auto;
  right: calc(var(--edge) + var(--rail-space));
}

.px-scene__panel h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
}

.px-scene__fallback {
  display: none;
}

.px-steps {
  display: grid;
  gap: 0.1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.px-steps li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0 0.6rem 2.6rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
  color: var(--dim);
  transition: color 0.4s;
}

.px-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.72rem;
  left: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.px-steps li b {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.px-steps li span {
  display: grid;
  max-height: 0;
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-soft);
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.4s;
}

.px-steps li.is-past {
  color: var(--muted);
}

.px-steps li.is-past::before {
  content: "✓";
  color: var(--lime);
}

.px-steps li.is-active {
  color: var(--text);
}

.px-steps li.is-active::before {
  color: var(--lime);
}

.px-steps li.is-active span {
  max-height: 9rem;
  opacity: 1;
}

.px-steps li.is-active::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

.px-faults__toggle,
.px-distance__toggle {
  margin-top: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

.px-faults.is-resolved .px-faults__toggle,
.px-distance.is-choice .px-distance__toggle {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Labels pinned to points in the WebGL scenes. */
.px-gl-labels,
.px-atlas__labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.px-gl-label {
  --tone: var(--lime);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.px-gl-label[data-tone="coral"] {
  --tone: var(--coral);
}

.px-gl-label[data-tone="cyan"] {
  --tone: var(--cyan);
}

.px-gl-label[data-tone="paper"] {
  --tone: var(--text);
}


.px-gl-label i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 35%, transparent);
  transform: translate(-50%, -50%) rotate(45deg);
}


.px-gl-label span {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 0.38rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--tone) 70%, transparent);
  border-radius: 4px;
  background: rgb(7 16 20 / 0.86);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tone);
}

.px-gl-label.is-flipped span {
  right: 14px;
  left: auto;
}

.px-gl-label.is-flipped span::before {
  right: -14px;
  left: auto;
  transform: rotate(45deg);
  transform-origin: 100% 50%;
}

.px-gl-label span::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 19.8px;
  height: 1px;
  background: var(--tone);
  opacity: 0.7;
  transform: rotate(-45deg);
  transform-origin: 0 50%;
}

/* When neither side has room (a phone, a centred anchor): straight up. */
.px-gl-label.is-above span {
  right: auto;
  bottom: 18px;
  left: 0;
  transform: translateX(-50%);
}

.px-gl-label.is-above span::before {
  right: auto;
  bottom: -18px;
  left: 50%;
  width: 1px;
  height: 18px;
  transform: none;
}

/* ----------------------------------------------------------- faults ---- */

.px-faults {
  --len: 520;
}

.px-scene__panel h2 em {
  display: block;
  margin-top: 0.15em;
  font-size: 1.04em;
}

/* Evidence console: the real output behind each step of the Wigwam story. */
.px-console {
  position: absolute;
  right: calc(var(--edge) + var(--rail-space));
  bottom: clamp(1.5rem, 6vh, 3.5rem);
  z-index: 3;
  width: min(420px, 34vw);
  pointer-events: none;
}

.px-console__page {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(7 16 20 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

.px-faults[data-active-step="0"] [data-console-step="0"],
.px-faults[data-active-step="1"] [data-console-step="1"],
.px-faults[data-active-step="2"] [data-console-step="2"],
.px-faults[data-active-step="3"] [data-console-step="3"],
.px-faults[data-active-step="4"] [data-console-step="4"],
.px-faults[data-active-step="5"] [data-console-step="5"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.px-console__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.px-console__head b {
  font-weight: 500;
  color: var(--muted);
}

.px-console [data-tone="coral"] {
  color: var(--coral);
}

.px-console [data-tone="lime"] {
  color: var(--lime);
}

.px-console__facts {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.px-console__facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
}

.px-console__facts dt {
  color: var(--dim);
}

.px-console__facts dd {
  margin: 0;
}

.px-console__rows {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-console__rows li {
  display: grid;
  gap: 0.1rem;
}

.px-console__rows code {
  font-family: inherit;
  color: var(--text);
}

.px-console__rows span {
  color: var(--muted);
}

.px-console__note {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  color: var(--dim);
}

.px-console__error {
  padding: 0.6rem 0.7rem;
  border-left: 2px solid var(--coral);
  border-radius: 6px;
  background: rgb(242 170 137 / 0.08);
  color: var(--coral);
  overflow-wrap: anywhere;
}

.px-console__inset {
  margin: 0.8rem 0 0;
}

.px-console__inset svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.px-console__inset text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  fill: var(--muted);
}

.px-inset__axis,
.px-inset__ticks path {
  fill: none;
  stroke: var(--line-strong);
}

.px-inset__tri {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}

.px-inset__dots circle {
  fill: var(--coral);
}

.px-inset__v51 {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.2;
  stroke-dasharray: 2 2.5;
}

.px-console__inset .px-inset__v51-label {
  fill: var(--coral);
}

.px-console__inset figcaption {
  margin-top: 0.3rem;
  font-size: 0.64rem;
  color: var(--dim);
}

.px-console__count {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.px-console__count b {
  font-family: var(--sans);
  font-size: 2.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--lime);
}

/* --------------------------------------------------------- distance ---- */

.px-distance {
  --len: 440;
}

.px-distance__meter {
  position: absolute;
  bottom: clamp(1.5rem, 7vh, 4.5rem);
  left: var(--edge);
  z-index: 3;
  display: grid;
  gap: 0.6rem;
}

.px-distance__caption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-distance__value {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 0.85;
}

.px-distance__value b {
  font-weight: 300;
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  letter-spacing: -0.06em;
}

.px-distance__value small {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--lime);
}

.px-distance__tiers {
  display: flex;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.px-distance__tiers li {
  display: grid;
  gap: 0.15rem;
  min-width: 112px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(7 16 20 / 0.6);
  color: var(--dim);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}

.px-distance__tiers b {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.px-distance__tiers span {
  font-size: 0.76rem;
}

.px-distance__tiers li.is-active {
  border-color: rgb(212 235 153 / 0.6);
  background: rgb(212 235 153 / 0.08);
  color: var(--lime);
}

/* ------------------------------------------------------- flight plan ---- */

.px-flight {
  --len: 430;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, #102027 0%, var(--bg) 70%);
}

.px-flight__head {
  position: absolute;
  top: calc(var(--header) + 2.5vh);
  left: var(--edge);
  z-index: 3;
}

.px-flight__head h2 {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: -0.025em;
}

.px-flight__rail {
  position: absolute;
  bottom: clamp(1.25rem, 5vh, 3rem);
  left: var(--edge);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-flight__rail li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dim);
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}

.px-flight__rail li b {
  font-weight: 500;
}

.px-flight__rail li.is-active {
  border-color: rgb(212 235 153 / 0.55);
  background: rgb(212 235 153 / 0.08);
  color: var(--lime);
}

.px-flight__space {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.px-flight__world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.px-flight__tokens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
}

.px-token {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
  opacity: 0;
}

.px-token:nth-child(3n) {
  color: var(--lime);
}

.px-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  width: min(1180px, 88vw);
  transform: translate(calc(-50% + var(--x, 0px)), -50%) translateZ(var(--z));
  opacity: 0;
}

@media (min-width: 1180px) {
  .px-stage {
    width: min(1160px, calc(100vw - var(--edge) * 2 - 150px));
    margin-left: -50px;
  }
}

.px-stage__index {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.px-stage__index span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-stage h3 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.px-stage__copy > p:not(.px-stage__index) {
  max-width: 44ch;
  margin-top: 1.2rem;
  color: var(--text-soft);
}

.px-stage__visual {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(23 38 45 / 0.92), rgb(12 22 27 / 0.92));
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(7 16 20 / 0.6);
}

.px-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.px-window__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3c42;
}

.px-window__bar em {
  margin-left: 0.6rem;
  font-style: normal;
}

.px-filetree ul {
  margin: 0;
  padding: 0.6rem 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.px-filetree li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 1.2rem 0.42rem 2.2rem;
  color: var(--text-soft);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}

.px-filetree li.is-folder {
  padding-left: 1.2rem;
  color: var(--cyan);
}

.px-filetree li b {
  font-weight: 400;
}

.px-filetree li i {
  flex: none;
  font-style: normal;
  color: var(--dim);
}

.px-filetree li b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.px-filetree li.is-more {
  color: var(--muted);
}

.px-stage.is-active .px-filetree li {
  opacity: 1;
  transform: none;
}

.px-filetree li:nth-child(2) { transition-delay: 0.05s; }
.px-filetree li:nth-child(3) { transition-delay: 0.1s; }
.px-filetree li:nth-child(4) { transition-delay: 0.15s; }
.px-filetree li:nth-child(5) { transition-delay: 0.2s; }
.px-filetree li:nth-child(6) { transition-delay: 0.25s; }
.px-filetree li:nth-child(7) { transition-delay: 0.3s; }
.px-filetree li:nth-child(8) { transition-delay: 0.35s; }
.px-filetree li:nth-child(9) { transition-delay: 0.4s; }

.px-filetree__seal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lime);
}

.px-filetree__seal span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.7rem;
}

.px-shot {
  margin: 0;
  overflow: hidden;
}

.px-shot img {
  width: 100%;
  height: auto;
}

.px-shot__scan {
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgb(212 235 153 / 0.12) 80%, rgb(212 235 153 / 0.5) 100%);
  mix-blend-mode: screen;
  transform: translateY(-100%);
  pointer-events: none;
}

.px-stage.is-active .px-shot__scan {
  animation: px-scan 3.4s var(--ease-soft) 0.3s infinite;
}

@keyframes px-scan {
  to {
    transform: translateY(380%);
  }
}

.px-shot figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* The live workbench (flight plan, stop 02). */
.px-bench {
  margin: 0;
  overflow: hidden;
}

.px-bench__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.px-bench__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: px-pulse 2s ease-in-out infinite;
}

.px-bench__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.px-bench__stats div {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  border-right: 1px solid var(--line);
}

.px-bench__stats div:last-child {
  border-right: 0;
}

.px-bench__stats dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.px-bench__stats dd {
  margin: 0;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.px-bench__view {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d181d;
}

.px-bench__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.px-bench__tabs,
.px-bench__layers {
  position: absolute;
  left: 0.7rem;
  display: flex;
  gap: 0.25rem;
}

.px-bench__tabs {
  top: 0.7rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(7 16 20 / 0.72);
}

.px-bench__layers {
  bottom: 0.7rem;
}

.px-bench__tabs button,
.px-bench__layers button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.px-bench__tabs button[aria-pressed="true"] {
  background: rgb(212 235 153 / 0.14);
  color: var(--lime);
}

.px-bench__layers button {
  border: 1px solid var(--line);
  background: rgb(7 16 20 / 0.72);
  color: var(--text-soft);
}

.px-bench__layers button[aria-pressed="false"] {
  opacity: 0.45;
}

.px-bench__layers i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
}

.px-bench__layers i[data-tone="cyan"] {
  background: var(--cyan);
}

.px-bench__layers i[data-tone="muted"] {
  background: #8fb0b3;
}

.px-bench__tabs button:focus-visible,
.px-bench__layers button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.px-bench__readout {
  position: absolute;
  right: 0.8rem;
  bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.px-bench figcaption {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.px-repairs {
  margin: 0;
  padding: 0.8rem;
  list-style: none;
  counter-reset: repair;
}

.px-repairs li {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  counter-increment: repair;
  opacity: 0.35;
  transition: opacity 0.5s, background-color 0.5s;
}

.px-repairs li::before {
  content: "";
  grid-row: span 2;
  align-self: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.7 9 10 3' fill='none' stroke='%230e1a0f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color 0.4s, border-color 0.4s;
}

.px-repairs span {
  font-weight: 500;
}

.px-repairs em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.px-repairs small {
  grid-column: 2;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  color: rgb(212 235 153 / 0.7);
}

.px-repairs li {
  grid-template-rows: auto auto auto;
}

.px-repairs li::before {
  grid-row: span 3;
}

.px-stage.is-active .px-repairs li {
  opacity: 1;
}

.px-stage.is-active .px-repairs li::before {
  border-color: var(--lime);
  background-color: var(--lime);
}

.px-repairs li:nth-child(2),
.px-repairs li:nth-child(2)::before { transition-delay: 0.12s; }
.px-repairs li:nth-child(3),
.px-repairs li:nth-child(3)::before { transition-delay: 0.24s; }
.px-repairs li:nth-child(4),
.px-repairs li:nth-child(4)::before { transition-delay: 0.36s; }
.px-repairs li:nth-child(5),
.px-repairs li:nth-child(5)::before { transition-delay: 0.48s; }
.px-repairs li:nth-child(6),
.px-repairs li:nth-child(6)::before { transition-delay: 0.6s; }
.px-repairs li:nth-child(7),
.px-repairs li:nth-child(7)::before { transition-delay: 0.72s; }

.px-receipt {
  margin: 0;
  padding: 0.6rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.px-receipt div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line-strong);
}

.px-receipt div:last-child {
  border-bottom: 0;
}

.px-receipt dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.px-receipt dd {
  margin: 0;
  color: var(--text-soft);
}

.px-receipt dd b {
  font-weight: 500;
  color: var(--lime);
}

.px-receipt dd i {
  font-style: normal;
  color: var(--coral);
}

.px-receipt__hash {
  letter-spacing: 0.06em;
}

.px-flight__progress {
  position: absolute;
  right: var(--edge);
  bottom: clamp(1.6rem, 5.5vh, 3.3rem);
  z-index: 3;
  width: min(280px, 30vw);
  height: 1px;
  background: var(--line);
}

.px-flight__progress span {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(var(--flight, 0));
  transform-origin: left;
}

/* -------------------------------------------------------- story mode ---- */

.px-story {
  --len: 500;
  background: var(--bg);
}

.px-story__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.75rem);
  width: max-content;
  height: 100%;
  padding: 0 var(--edge);
  will-change: transform;
}

.px-story__intro {
  width: min(500px, 82vw);
  margin-right: clamp(1rem, 4vw, 4rem);
}

.px-story__intro p:not(.px-eyebrow) {
  margin-top: 1.4rem;
  max-width: 40ch;
  color: var(--text-soft);
}

/* Favourites: muted loops of creators' showcases. */
.px-video {
  --card-h: min(60vh, 660px);
  flex: none;
  width: min(calc(var(--card-h) * 16 / 9), 76vw);
  margin: 0;
}

.px-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050b0e;
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.85);
  isolation: isolate;
  transition: border-color 0.4s;
}

.px-video.is-focus .px-video__frame {
  border-color: rgb(212 235 153 / 0.35);
}

.px-video__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, rgb(5 11 14 / 0.6) 0%, transparent 32%);
  pointer-events: none;
}

.px-video__poster,
.px-video__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.px-video__poster {
  z-index: 2;
  object-fit: cover;
  transition: opacity 0.9s var(--ease);
}

.px-video.is-playing .px-video__poster {
  opacity: 0;
}

.px-video__screen {
  z-index: 1;
  overflow: hidden;
}

/* Slightly oversized so YouTube's own chrome stays outside the frame. */
.px-video__screen iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
}

.px-video__link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.px-video__watch {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(233 238 231 / 0.25);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.px-video__link:hover .px-video__watch,
.px-video__link:focus-visible .px-video__watch {
  opacity: 1;
  transform: none;
  background: var(--lime);
  color: var(--on-lime);
}

.px-video__link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -4px;
  border-radius: 16px;
}

.px-video__sound {
  position: absolute;
  bottom: 1rem;
  left: 1.1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0 0.85rem 0 0.7rem;
  border: 1px solid rgb(233 238 231 / 0.25);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.px-video__sound:hover {
  border-color: rgb(212 235 153 / 0.6);
}

.px-video__sound:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.px-video__sound svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.px-video__speaker {
  fill: currentColor;
}

.px-video__waves {
  display: none;
}

.px-video.is-sound .px-video__sound {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--on-lime);
}

.px-video.is-sound .px-video__waves {
  display: inline;
}

.px-video.is-sound .px-video__mute {
  display: none;
}

.px-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: none;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid rgb(233 238 231 / 0.35);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.7);
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.px-calm .px-video:not(.is-playing) .px-video__play {
  display: inline-flex;
  align-items: center;
}

.px-calm .px-video:not(.is-playing) .px-video__sound,
.px-story.is-offline .px-video__sound,
.px-story.is-offline .px-video__play,
.px-video.is-unavailable .px-video__sound {
  display: none;
}

.px-video figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin-top: 1rem;
}

.px-video figcaption b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--lime);
}

.px-video__name {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.px-video__by {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-video figcaption em {
  grid-column: 2 / -1;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.px-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.px-story__outro {
  display: grid;
  gap: 1rem;
  width: min(420px, 80vw);
  margin-left: clamp(1rem, 3vw, 3rem);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.px-story__outro small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--dim);
}

.px-story__meta {
  position: absolute;
  bottom: clamp(1.25rem, 5vh, 3rem);
  left: var(--edge);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.px-story__bar {
  position: relative;
  width: min(240px, 40vw);
  height: 1px;
  background: var(--line);
}

.px-story__bar i {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

/* ------------------------------------------------------------- atlas ---- */

.px-atlas {
  --len: 1000;
}

.px-atlas__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.px-atlas.is-fallback .px-atlas__fallback,
.px-no-gl .px-atlas__fallback {
  display: block;
}

.px-atlas.is-fallback .px-atlas__hud,
.px-atlas.is-fallback .px-atlas__labels,
.px-no-gl .px-atlas__hud {
  display: none;
}

.px-scene__veil--atlas {
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(7 16 20 / 0.9) 0%, rgb(7 16 20 / 0.55) 24%, rgb(7 16 20 / 0) 46%),
    linear-gradient(180deg, rgb(11 20 24 / 0.85) 0%, transparent 14%, transparent 82%, rgb(11 20 24 / 0.8) 100%);
}

.px-atlas__copy {
  position: absolute;
  top: 50%;
  left: var(--edge);
  z-index: 3;
  width: min(440px, 40vw);
  transform: translateY(-50%);
}

.px-atlas__steps {
  position: relative;
  min-height: 15rem;
}

.px-atlas__steps > div {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}

.px-atlas__steps > div.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.px-atlas__steps h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.px-atlas__steps h3 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.px-atlas__steps p {
  margin-top: 1.1rem;
  max-width: 40ch;
  color: var(--text-soft);
}

.px-atlas__status,
.px-atlas__hud {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: pre;
}

.px-atlas__status {
  top: calc(var(--header) + 1.5rem);
  right: calc(var(--edge) + var(--rail-space));
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(7 16 20 / 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.px-atlas__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: px-pulse 2s ease-in-out infinite;
}

@keyframes px-pulse {
  50% {
    box-shadow: 0 0 0 6px rgb(212 235 153 / 0);
    opacity: 0.6;
  }
}

.px-atlas__hud {
  right: calc(var(--edge) + var(--rail-space));
  bottom: clamp(1.25rem, 5vh, 3rem);
  color: var(--muted);
}

.px-atlas-region {
  position: absolute;
  top: 0;
  left: 0;
  translate: -50% -50%;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(233 238 231 / 0.72);
  text-shadow: 0 2px 18px rgb(7 16 20 / 0.9);
  opacity: 0;
}

.px-atlas-region[data-size="xl"] {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.6em;
  color: var(--text);
}

.px-atlas-region[data-size="sm"] {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.px-atlas-pin {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.px-atlas-pin i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--lime);
  background: rgb(212 235 153 / 0.35);
  box-shadow: 0 0 14px rgb(212 235 153 / 0.6);
  transform: translate(-50%, -50%) rotate(45deg);
}

.px-atlas-pin.is-focus i {
  width: 15px;
  height: 15px;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgb(212 235 153 / 0.14), 0 0 24px rgb(212 235 153 / 0.8);
}

.px-atlas-pin.is-group i {
  border-color: var(--cyan);
  background: rgb(131 199 205 / 0.35);
  box-shadow: 0 0 14px rgb(131 199 205 / 0.6);
}

.px-atlas-pin.is-group span {
  color: var(--cyan);
}

.px-atlas-pin span {
  position: absolute;
  top: -0.5rem;
  left: 12px;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  background: rgb(7 16 20 / 0.78);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--lime);
}

/* The stop card: which real map the flight has reached. */
.px-atlas__card {
  position: absolute;
  right: calc(var(--edge) + var(--rail-space));
  bottom: calc(clamp(1.25rem, 5vh, 3rem) + 2.4rem);
  z-index: 3;
  width: min(330px, 30vw);
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--lime);
  border-radius: 14px;
  background: rgb(7 16 20 / 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

.px-atlas__card.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.px-atlas__card-index {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.px-atlas__card-index i {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.px-atlas__card-index span:last-child {
  color: var(--dim);
}

.px-atlas__card h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.px-atlas__card-by {
  min-height: 1.2em;
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-atlas__card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.px-atlas__card dl div {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.6rem;
}

.px-atlas__card dt {
  color: var(--dim);
}

.px-atlas__card dd {
  margin: 0;
  color: var(--text-soft);
}

.px-atlas__card-stream {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-atlas__card-stream i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: px-pulse 1.4s ease-in-out infinite;
}

.px-atlas__card.is-ready .px-atlas__card-stream {
  color: var(--lime);
}

.px-atlas__card.is-ready .px-atlas__card-stream i {
  background: var(--lime);
  animation: none;
}

/* ----------------------------------------------------------- arrival ---- */

.px-arrival {
  --len: 190;
  background: var(--ink-0);
}

.px-arrival__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.px-arrival__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
  transform: scale(calc(1.14 - var(--arrive, 0) * 0.14));
  transform-origin: 40% 60%;
}

.px-arrival__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgb(7 16 20 / 0.9) 0%, rgb(7 16 20 / 0.6) 30%, transparent 58%),
    linear-gradient(180deg, rgb(7 16 20 / 0.55) 0%, transparent 22%);
}

.px-notice {
  position: absolute;
  top: clamp(calc(var(--header) + 1rem), 15vh, 170px);
  left: clamp(16px, 4.5vw, 72px);
  z-index: 3;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 22px 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(30 38 41 / 0.96), rgb(20 27 30 / 0.96));
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 2px 0 rgb(255 255 255 / 0.04) inset;
  font-family: "Segoe UI", var(--sans);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.42s var(--ease);
}

.px-notice.is-live {
  opacity: 1;
  transform: none;
}

.px-notice__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.px-notice__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #24302c;
  box-shadow: inset 0 0 0 1px rgb(212 235 153 / 0.2);
}

.px-notice__logo svg {
  width: 20px;
  height: 22px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.px-notice__brand {
  display: grid;
  line-height: 1.2;
}

.px-notice__brand b {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.px-notice__brand small {
  font-size: 0.78rem;
  color: var(--muted);
}

.px-notice__check {
  margin-left: auto;
}

.px-notice__check svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.px-notice__eyebrow {
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.px-notice__title {
  margin-top: 2px;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.px-notice__body {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgb(233 238 231 / 0.75);
}

.px-notice__return {
  display: none;
}

.px-notice[data-mode="return"] .px-notice__first {
  display: none;
}

.px-notice[data-mode="return"] .px-notice__return {
  display: block;
}

.px-notice__timer {
  position: relative;
  display: block;
  height: 1.5px;
  margin-top: 16px;
  background: rgb(150 180 140 / 0.22);
}

.px-notice__timer i {
  position: absolute;
  inset: 0;
  background: rgb(185 212 140 / 0.85);
  transform-origin: left;
}

.px-notice.is-timing .px-notice__timer i {
  animation: px-timer 16s linear forwards;
}

@keyframes px-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.px-arrival__panel {
  position: absolute;
  top: calc(50% + var(--header) / 2);
  right: calc(var(--edge) + var(--rail-space));
  z-index: 3;
  width: min(460px, 42vw);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(7 16 20 / 0.58);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transform: translateY(-50%);
}

.px-arrival__panel h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.px-arrival__panel > p:not(.px-eyebrow):not(.px-footnote) {
  margin-top: 1rem;
  color: var(--text-soft);
}

.px-arrival__controls {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.px-field {
  display: grid;
  gap: 0.45rem;
}

.px-field span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-field input {
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(7 16 20 / 0.7);
  color: var(--text);
  font: 500 1rem/1 var(--sans);
}

.px-field input:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgb(212 235 153 / 0.18);
}

.px-arrival__list {
  display: grid;
  gap: 0;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.px-arrival__list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.px-arrival__list b {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 0.15rem;
}

.px-arrival__list span {
  color: var(--text-soft);
}

/* ------------------------------------------------------------ refine ---- */

.px-refine,
.px-library,
.px-evidence,
.px-editions {
  position: relative;
  background: var(--bg);
  padding: clamp(5rem, 13vh, 9rem) calc(var(--edge) + var(--rail-space)) clamp(5rem, 13vh, 9rem) var(--edge);
}

.px-refine__inner,
.px-library__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.px-refine__head,
.px-library__head {
  max-width: 820px;
}

.px-refine__head p:not(.px-eyebrow),
.px-library__head p:not(.px-eyebrow) {
  margin-top: 1.4rem;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.px-layers {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(rgb(131 199 205 / 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(131 199 205 / 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-2);
}

.px-layers__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.px-layers__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.px-layers__stage {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.px-layers__stage:active {
  cursor: grabbing;
}

.px-layers__canvas,
.px-layers__tags {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.px-layers__canvas {
  display: block;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.px-layers.is-ready .px-layers__canvas {
  opacity: 1;
}

.px-layers__tags {
  pointer-events: none;
}

.px-layers__hint {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}

.px-layers__fallback {
  display: none;
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(320px, 80%);
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
  transform: translate(-50%, -50%);
}

.px-layers.is-fallback .px-layers__fallback {
  display: block;
}

.px-layers.is-fallback .px-layers__hint {
  display: none;
}

.px-layers__info {
  --tone: var(--coral);
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--tone);
  border-radius: 12px;
  background: rgb(7 16 20 / 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.px-layers__info[data-tone="lime"] {
  --tone: var(--lime);
}

.px-layers__info[data-tone="muted"] {
  --tone: var(--muted);
}

.px-layers__info-name {
  font-weight: 600;
}

.px-layers__info-provider {
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
}

.px-layers__info-detail {
  margin: 0.6rem 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.px-layers__info-evidence {
  margin: -0.3rem 0 0.9rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgb(131 199 205 / 0.4);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.55;
  color: var(--cyan);
}

.px-layers__info-evidence[hidden] {
  display: none;
}

.px-layers__info .px-cta.is-undo {
  border: 1px solid rgb(212 235 153 / 0.6);
  background: transparent;
  color: var(--lime);
}

.px-layers__info .px-cta[hidden] {
  display: none;
}

.px-layers__ledger {
  padding: 1.2rem;
  border-left: 1px solid var(--line);
  background: rgb(7 16 20 / 0.45);
}

.px-layers__ledger-title {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.px-layers__ledger-title span {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.px-layers__ledger ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-layers__ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.px-layers__ledger li:hover,
.px-layers__ledger li.is-selected {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.03);
}

.px-layers__ledger li span {
  font-size: 0.92rem;
}

.px-layers__ledger li em {
  grid-row: 2;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.px-layers__ledger li b {
  grid-row: span 2;
  align-self: center;
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
}

.px-layers__ledger li b[data-tone="coral"] { color: var(--coral); }
.px-layers__ledger li b[data-tone="lime"] { color: var(--lime); }
.px-layers__ledger li:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ----------------------------------------------------------- library ---- */

.px-revisions {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.px-revisions__map {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.px-revisions__map span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-revisions__map b {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.px-revisions__map small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.px-revisions__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.px-revisions__list::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: 8%;
  left: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--lime));
}

.px-rev {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 3rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f1a1f;
}

.px-rev__tag {
  position: absolute;
  top: 0.75rem;
  left: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.px-rev b {
  font-weight: 500;
}

.px-rev time {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.px-rev span:not(.px-rev__tag) {
  font-size: 0.86rem;
  color: var(--muted);
}

.px-rev.is-installed {
  border-color: rgb(212 235 153 / 0.5);
  background: linear-gradient(rgb(212 235 153 / 0.06), rgb(212 235 153 / 0.06)), #0f1a1f;
}

.px-rev.is-installed .px-rev__tag {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--on-lime);
}

.px-rev__badge {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.px-revisions__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.px-revisions__facts li {
  display: grid;
  gap: 0.35rem;
}

.px-revisions__facts b {
  font-weight: 500;
}

.px-revisions__facts span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- evidence ---- */

.px-sheet {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.6rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgb(131 199 205 / 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(131 199 205 / 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-2);
}

.px-sheet::before,
.px-sheet::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--lime);
  border-style: solid;
}

.px-sheet::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.px-sheet::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.px-sheet__head {
  max-width: 800px;
}

.px-sheet__head p:not(.px-eyebrow) {
  margin-top: 1.3rem;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.px-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 5vh, 3.4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.px-rules li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 190px;
  padding: 1.3rem 1.2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(11 20 24 / 0.55);
}

.px-rules b {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.px-rules h3 {
  font-size: 1.12rem;
}

.px-rules p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.px-sheet__block {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: end;
  margin: 2rem 0 0 auto;
  border: 1px solid var(--line-strong);
  width: max-content;
  max-width: 100%;
}

.px-sheet__block div {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 1rem;
  border-left: 1px solid var(--line);
}

.px-sheet__block div:first-child {
  border-left: 0;
}

.px-sheet__block dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.px-sheet__block dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------------------------------------------------------- editions ---- */

.px-editions__head {
  max-width: 1320px;
  margin: 0 auto;
}

.px-editions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1320px;
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}

.px-edition {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.px-edition--full {
  border-color: rgb(212 235 153 / 0.45);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgb(212 235 153 / 0.12), transparent 60%),
    linear-gradient(180deg, #15262b, var(--bg-2));
}

.px-edition__stack {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 74px;
  height: 80px;
}

.px-edition__stack i {
  position: absolute;
  left: 0;
  width: 74px;
  height: 42px;
  border: 1.5px solid rgb(212 235 153 / 0.7);
  transform: rotateX(58deg) rotateZ(45deg) scale(0.68);
  transition: top 0.6s var(--ease), opacity 0.6s;
}

.px-edition__stack i:nth-child(1) { top: 2px; }
.px-edition__stack i:nth-child(2) { top: 18px; opacity: 0.7; }
.px-edition__stack i:nth-child(3) { top: 34px; opacity: 0.45; }

.px-edition:hover .px-edition__stack i:nth-child(1) { top: -8px; }
.px-edition:hover .px-edition__stack i:nth-child(3) { top: 44px; }

.px-edition__name {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.px-edition__name b {
  font-weight: 500;
  color: var(--lime);
}

.px-edition h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.px-edition__lead {
  max-width: 44ch;
  color: var(--text-soft);
}

.px-edition ul {
  display: grid;
  gap: 0;
  margin: 0.6rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.px-edition li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.px-edition li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border: 1px solid var(--lime);
  transform: rotate(45deg);
}

.px-edition .px-cta,
.px-edition .px-ghost {
  align-self: flex-start;
  margin-top: auto;
}

.px-requirements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1320px;
  margin: 2.4rem auto 0;
  padding: 0;
  list-style: none;
}

.px-requirements li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ------------------------------------------------------------- outro ---- */

.px-outro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-0);
  text-align: center;
}

.px-outro__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.px-outro__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgb(7 16 20 / 0.62), rgb(7 16 20 / 0.3) 70%, rgb(7 16 20 / 0.75)),
    linear-gradient(180deg, rgb(11 20 24 / 0.9) 0%, transparent 22%, transparent 80%, rgb(7 16 20 / 0.95) 100%);
}

.px-outro__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: 0 var(--edge);
}

.px-outro__content h2 {
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.px-outro__content h2 em {
  display: block;
}

.px-outro__content .px-hero__actions {
  justify-content: center;
  margin-top: 0.4rem;
}

.px-outro__mark {
  width: 58px;
  height: 64px;
  overflow: visible;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.px-outro__layer {
  transition: transform 1.4s var(--ease);
}

.px-outro__layer:nth-child(1) { transform: translateY(16px); }
.px-outro__layer:nth-child(3) { transform: translateY(-14px); }

.px-outro__content.is-in .px-outro__layer {
  transform: none;
}

/* ------------------------------------------------------------ footer ---- */

.px-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  padding: 3rem var(--edge) 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink-0);
  font-size: 0.82rem;
  color: var(--dim);
}

.px-footer > p {
  max-width: 80ch;
  line-height: 1.6;
}

.px-footer__social {
  display: flex;
  gap: 1.1rem;
}

.px-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.25s;
}

.px-footer__social a:hover {
  border-color: var(--lime);
}

.px-footer__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.85;
}

.px-footer__social img[src="/media/icon-x.svg"] {
  filter: invert(1);
}

.px-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------- reveals ---- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------- no WebGL: readable fallbacks -- */

.px-no-gl .px-faults .px-sticky,
.px-no-gl .px-distance .px-sticky {
  background:
    linear-gradient(rgb(131 199 205 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(131 199 205 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}

.px-no-gl .px-scene__fallback {
  position: absolute;
  right: var(--edge);
  bottom: 2rem;
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.px-no-gl .px-distance__meter {
  display: none;
}

.px-no-gl .px-faults__toggle,
.px-no-gl .px-distance__toggle {
  display: none;
}

.px-no-gl .px-steps li span {
  max-height: none;
  opacity: 1;
}

/* ------------------------------------------------- without JavaScript -- */

.no-js .px-pin {
  height: auto;
}

.no-js .px-sticky {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.no-js .px-hero__statement,
.no-js .px-hero__cue,
.no-js .px-hero__ring,
.no-js .px-hero__scan,
.no-js .px-hero__veil,
.no-js .px-hero__files,
.no-js .px-hero__captions,
.no-js .px-engine__steps,
.no-js .px-engine__line,
.no-js .px-package,
.no-js .px-distance__meter,
.no-js .px-flight__tokens,
.no-js .px-flight__rail,
.no-js .px-story__meta,
.no-js .px-faults__toggle,
.no-js .px-distance__toggle {
  display: none;
}

.no-js .px-steps li span {
  max-height: none;
  opacity: 1;
}

.no-js .px-scene__panel,
.no-js .px-atlas__copy {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  max-width: 640px;
  padding: 7rem var(--edge) 4rem;
  transform: none;
}

.no-js .px-atlas__steps > div {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin-bottom: 2rem;
}

.no-js .px-atlas__fallback {
  display: block;
  opacity: 0.35;
}

.no-js .px-flight__space,
.no-js .px-flight__world {
  position: relative;
  inset: auto;
  perspective: none;
}

.no-js .px-stage {
  position: relative;
  top: auto;
  left: auto;
  margin: 0 auto 5rem;
  transform: none;
  opacity: 1;
}

.no-js .px-flight__head {
  position: relative;
  top: auto;
  left: auto;
  padding: 7rem var(--edge) 3rem;
}

.no-js .px-story__track {
  width: auto;
  height: auto;
  overflow-x: auto;
  padding-block: 7rem 3rem;
}

.no-js .px-notice {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------- calm / reduced -- */

.px-calm .px-hero__cue i::after,
.px-calm .px-atlas__status i,
.px-calm .px-stage.is-active .px-shot__scan,
.px-calm .px-bench__live::before,
.px-calm .px-atlas__card-stream i {
  animation: none;
}

.px-calm .px-notice.is-timing .px-notice__timer i {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .px-hero__line,
  .px-hero__lead,
  .px-hero__copy .px-eyebrow,
  .px-hero__copy .px-hero__actions,
  .px-hero__meta,
  .px-hero__photo img {
    animation: none;
  }
}

/* ------------------------------------------------------------ layout ---- */

@media (max-height: 780px) and (min-width: 761px) {
  .px-scene__panel .px-footnote,
  .px-arrival__panel .px-footnote {
    display: none;
  }

  .px-arrival__panel {
    padding: 1.3rem 1.5rem;
  }

  .px-arrival__panel h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  }

  .px-arrival__controls {
    margin-top: 1rem;
  }

  .px-arrival__list {
    margin-top: 0.8rem;
  }

  .px-arrival__list li {
    padding: 0.45rem 0;
  }

  .px-arrival__list li:nth-child(n + 3) {
    display: none;
  }

  .px-steps li {
    padding-block: 0.45rem;
  }

  .px-steps li::before {
    top: 0.58rem;
  }

  .px-scene__panel .px-eyebrow {
    margin-bottom: 0.8rem;
  }
}

/* The header's centre belongs to the countdown; the links return when there is room. */
@media (max-width: 1560px) {
  .px-nav {
    display: none;
  }

  .px-header__actions {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .px-header__countdown {
    display: none;
  }
}

@media (max-width: 1100px) {
  .px-nav {
    display: none;
  }

  .px-revisions__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .px-revisions__list::before {
    display: none;
  }

  .px-console {
    width: min(360px, 40vw);
  }

  .px-header__actions {
    margin-left: auto;
  }

  .px-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .px-stage {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    width: min(620px, 90vw);
  }

  .px-stage h3 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .px-stage__copy > p:not(.px-stage__index) {
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .px-chips {
    margin-top: 1rem;
  }

  .px-stage__visual {
    max-height: 42vh;
    overflow: hidden;
  }

  .px-bench__stats,
  .px-bench__readout,
  .px-bench figcaption {
    display: none;
  }

  .px-repairs li {
    padding: 0.45rem 0.6rem;
  }

  .px-layers__body {
    grid-template-columns: 1fr;
  }

  .px-layers__ledger {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .px-revisions__list,
  .px-revisions__facts,
  .px-editions__grid {
    grid-template-columns: 1fr;
  }

  .px-revisions__list::before {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 60px;
  }

  .px-brand small,
  .px-motion [data-motion-label] {
    display: none;
  }

  .px-motion {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .px-hero {
    --len: 780;
  }

  .px-hero__copy {
    bottom: 1.6rem;
  }

  .px-hero__lead {
    margin-top: 1.1rem;
  }

  .px-hero__actions {
    margin-top: 1.4rem;
  }

  .px-hero__meta {
    gap: 0.4rem 1.4rem;
    margin-top: 1.4rem;
  }

  .px-hero__cue {
    display: none;
  }

  .px-hero__statement {
    top: calc(var(--header) + 3vh);
    max-width: none;
    padding-right: var(--edge);
    font-size: 2.3rem;
  }

  .px-hero__captions {
    right: var(--edge);
    bottom: 1.4rem;
    width: auto;
  }

  .px-hero__caption h2 {
    font-size: 1.45rem;
  }

  .px-hero__caption span {
    margin-top: 0.5rem;
    font-size: 0.86rem;
  }

  .px-hero__count {
    top: calc(var(--header) + 0.8rem);
    right: var(--edge);
  }

  .px-engine__line {
    font-size: 1.5rem;
  }

  /* Steps stack under the header instead of riding beside the plates. */
  .px-engine__steps {
    inset: calc(var(--header) + 0.6rem) var(--edge) auto;
    display: grid;
    gap: 0.45rem;
  }

  .px-engine__steps li {
    position: relative;
    width: auto;
    padding-left: 0.7rem;
  }

  .px-engine__steps b {
    font-size: 0.64rem;
  }

  .px-engine__steps span {
    font-size: 0.72rem;
  }

  .px-package {
    gap: 0.7rem;
    padding: 0.7rem 0.9rem 0.7rem 0.7rem;
  }

  .px-package__body b {
    font-size: 0.74rem;
  }

  .px-package__seal img {
    width: 40px;
  }

  .px-faults {
    --len: 420;
  }

  .px-distance {
    --len: 360;
  }

  .px-scene__veil,
  .px-scene__veil--right {
    background:
      linear-gradient(0deg, rgb(7 16 20 / 0.96) 0%, rgb(7 16 20 / 0.8) 34%, rgb(7 16 20 / 0) 58%),
      linear-gradient(180deg, rgb(11 20 24 / 0.9) 0%, transparent 14%);
  }

  .px-scene__panel,
  .px-scene__panel--right {
    top: auto;
    right: var(--edge);
    bottom: 1.2rem;
    left: var(--edge);
    width: auto;
    transform: none;
  }

  .px-scene__panel h2 {
    font-size: 1.5rem;
  }

  .px-steps {
    margin-top: 1rem;
  }

  /* Hidden but still counted, so the step numbers stay correct. */
  .px-steps li:not(.is-active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .px-steps li {
    border-top: 0;
    padding-top: 0.3rem;
  }

  .px-steps li.is-active::after {
    display: none;
  }

  .px-footnote {
    display: none;
  }

  .px-distance__meter {
    top: calc(var(--header) + 1rem);
    bottom: auto;
  }

  .px-distance__tiers li {
    min-width: 0;
  }

  .px-distance__tiers span {
    display: none;
  }

  .px-flight {
    --len: 400;
  }

  .px-flight__head h2 {
    display: none;
  }

  .px-flight__rail {
    right: var(--edge);
    justify-content: space-between;
    gap: 0.25rem;
  }

  .px-flight__rail li {
    padding: 0.45rem 0.5rem;
    font-size: 0.62rem;
  }

  .px-flight__progress {
    display: none;
  }

  .px-story {
    --len: 440;
  }

  .px-video {
    width: 84vw;
  }

  .px-video__watch {
    display: none;
  }

  .px-video figcaption {
    grid-template-columns: auto 1fr;
  }

  .px-video__by {
    grid-column: 2;
  }

  .px-console {
    top: calc(var(--header) + 0.6rem);
    right: var(--edge);
    bottom: auto;
    left: var(--edge);
    width: auto;
  }

  .px-console__page {
    top: 0;
    bottom: auto;
    padding: 0.75rem 0.85rem;
    font-size: 0.64rem;
  }

  .px-console__note,
  .px-console__inset figcaption {
    display: none;
  }

  .px-console__count b {
    font-size: 1.8rem;
  }

  .px-atlas__card {
    top: calc(var(--header) + 3.6rem);
    right: var(--edge);
    bottom: auto;
    width: min(250px, 62vw);
    padding: 0.8rem 0.9rem;
  }

  .px-atlas__card dl {
    display: none;
  }

  .px-atlas__card h3 {
    margin-top: 0.4rem;
    font-size: 1.2rem;
  }

  .px-atlas__card-stream {
    margin-top: 0.4rem;
  }

  .px-atlas__copy {
    top: auto;
    right: var(--edge);
    bottom: 3.6rem;
    width: auto;
    transform: none;
  }

  .px-atlas__steps {
    min-height: 11rem;
  }

  .px-scene__veil--atlas {
    background:
      linear-gradient(0deg, rgb(7 16 20 / 0.95) 0%, rgb(7 16 20 / 0.65) 36%, transparent 60%),
      linear-gradient(180deg, rgb(11 20 24 / 0.85) 0%, transparent 16%);
  }

  .px-atlas__status {
    right: var(--edge);
  }

  .px-atlas__hud {
    right: var(--edge);
    bottom: 1.2rem;
    font-size: 0.6rem;
  }

  .px-arrival {
    --len: 170;
  }

  .px-notice {
    top: calc(var(--header) + 0.8rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.92);
    transform-origin: top center;
  }

  .px-notice.is-live {
    transform: translateX(-50%) scale(0.92);
  }

  .px-arrival__shade {
    background: linear-gradient(0deg, rgb(7 16 20 / 0.96) 0%, rgb(7 16 20 / 0.7) 46%, transparent 70%);
  }

  .px-arrival__panel {
    top: auto;
    right: var(--edge);
    bottom: 1rem;
    left: var(--edge);
    width: auto;
    padding: 1.2rem;
    transform: none;
  }

  .px-arrival__panel h2 {
    font-size: 1.6rem;
  }

  .px-arrival__panel > p:not(.px-eyebrow):not(.px-footnote),
  .px-arrival__list li:nth-child(n + 2) {
    display: none;
  }

  .px-arrival__list li {
    grid-template-columns: 4.5rem 1fr;
  }

  .px-layers__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .px-layers__stage {
    min-height: 0;
  }

  .px-layers__stage {
    min-height: 420px;
  }

  .px-segmented button {
    min-height: 32px;
    padding: 0 0.7rem;
    font-size: 0.74rem;
  }

  .px-rules {
    grid-template-columns: 1fr;
  }

  .px-rules li {
    min-height: 0;
  }

  .px-sheet__block {
    grid-template-columns: repeat(2, auto);
    width: 100%;
  }

  .px-sheet__block div:nth-child(3) {
    border-left: 0;
  }

  .px-edition__stack {
    top: 1.4rem;
    right: 1.2rem;
    transform: scale(0.8);
  }
}
