/* VaultProof homepage Earth journey. Route-scoped so the production content
 * below #city-product keeps its existing layout and theme. */

/* Let the homepage Earth field show through the fixed header at rest. The
 * scrolled state remains opaque so navigation stays legible over later acts. */
.city-page .vp-header {
  background: transparent;
}

.city-page .vp-header.is-scrolled {
  background: rgba(3, 8, 17, 0.88);
  box-shadow: 0 12px 34px rgba(2, 5, 10, 0.34);
}

.earth-journey {
  --earth-void: #030811;
  --earth-field-strong: #050b14;
  --earth-rule: rgba(129, 232, 240, 0.28);
  --earth-rule-soft: rgba(226, 232, 240, 0.16);
  --earth-route: #57dce9;
  --earth-route-strong: #81e8f0;
  --earth-copy: #c9d5e1;
  --earth-evidence-fill: rgba(3, 8, 17, 0.30);
  --earth-evidence-fill-mobile: rgba(3, 8, 17, 0.62);
  --earth-strip-rail: 0px;
  --earth-strip-width: clamp(470px, 38vw, 610px);
  position: relative;
  z-index: 20;
  min-width: 0;
  margin-top: calc(-1 * var(--vp-header-height));
  background: var(--earth-void);
  color: var(--city-ivory);
  isolation: isolate;
}

.earth-journey__stage {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: clip;
  background: var(--earth-void);
  opacity: 1;
}

.earth-journey__visual,
.earth-journey__canvas,
.earth-journey__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.earth-journey__visual {
  z-index: 0;
  overflow: visible;
}

.earth-journey__canvas {
  z-index: 4;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 700ms ease;
}

.earth-journey__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.has-earth-webgl .earth-journey__canvas {
  opacity: 1;
}

.earth-journey__shade {
  z-index: 5;
  background: rgba(1, 4, 10, 0.16);
  pointer-events: none;
}

.earth-journey__rail {
  position: absolute;
  top: max(96px, 12svh);
  bottom: 0;
  left: 0;
  z-index: 8;
  display: none;
  width: var(--earth-strip-rail);
  place-items: center;
  border: 1px solid var(--earth-rule-soft);
  border-bottom: 0;
  border-left: 0;
  background: var(--earth-field-strong);
  pointer-events: auto;
}

.earth-journey__rail::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  background: var(--earth-route);
  content: "";
  transform: scaleY(var(--earth-progress, 0));
  transform-origin: top;
}

.earth-journey__rail ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3svh, 30px);
  list-style: none;
}

.earth-journey__rail a {
  position: relative;
  display: grid;
  width: 54px;
  height: 50px;
  place-items: center;
  color: var(--city-mist);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.earth-journey__rail a::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--earth-void);
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.earth-journey__rail a span {
  position: absolute;
  bottom: 3px;
  color: var(--city-mist);
  font-size: 0.55rem;
  opacity: 0.72;
  transition: color 180ms ease, opacity 180ms ease;
}

.earth-journey__rail a strong {
  position: absolute;
  left: calc(100% + 12px);
  width: max-content;
  padding: 8px 10px;
  border: 1px solid var(--earth-rule-soft);
  background: var(--earth-field-strong);
  color: var(--city-ivory);
  font-family: var(--city-font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.earth-journey__rail a:hover,
.earth-journey__rail a:focus-visible,
.earth-journey__rail a.is-active {
  color: var(--earth-route-strong);
  transform: translateX(2px);
}

.earth-journey__rail a:hover span,
.earth-journey__rail a:focus-visible span,
.earth-journey__rail a.is-active span {
  color: var(--earth-route-strong);
  opacity: 1;
}

.earth-journey__rail a:hover::before,
.earth-journey__rail a:focus-visible::before,
.earth-journey__rail a.is-active::before {
  border-color: var(--earth-route);
  background: var(--earth-route);
  transform: scale(1.6);
}

.earth-journey__rail a:hover strong,
.earth-journey__rail a:focus-visible strong {
  opacity: 1;
  transform: translateX(0);
}

.earth-journey__chapters {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.earth-chapter {
  position: relative;
  display: grid;
  min-height: 132svh;
  padding: max(120px, 14svh) 0 max(88px, 10svh) var(--earth-strip-rail);
  align-items: center;
  pointer-events: none;
}

.earth-chapter__copy {
  position: relative;
  width: calc(var(--earth-strip-width) - var(--earth-strip-rail));
  min-width: 0;
  padding: clamp(24px, 2.6vw, 38px) clamp(24px, 2.5vw, 36px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 820ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-chapter__copy > * {
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-chapter__line {
  display: block;
  width: min(100%, 420px);
  height: 2px;
  margin: 0 0 24px;
  background: var(--earth-route-strong);
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left center;
}

.has-earth-scroll .earth-chapter.is-approaching .earth-chapter__copy > * {
  opacity: 0.12;
  transform: translateY(12px);
}

.earth-chapter.is-active .earth-chapter__copy > * {
  opacity: 1;
  transform: none;
}

.earth-chapter.is-active .earth-chapter__copy > :nth-child(1) { transition-delay: 0ms; }
.earth-chapter.is-active .earth-chapter__copy > :nth-child(2) { transition-delay: 70ms; }
.earth-chapter.is-active .earth-chapter__copy > :nth-child(3) { transition-delay: 140ms; }
.earth-chapter.is-active .earth-chapter__copy > :nth-child(4) { transition-delay: 210ms; }

.has-earth-scroll .earth-chapter__copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
}

.earth-chapter.is-active .earth-chapter__copy {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-earth-scroll .earth-chapter.is-before .earth-chapter__copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

.has-earth-scroll .earth-chapter.is-after:not(.is-approaching) .earth-chapter__copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.earth-chapter.is-approaching .earth-chapter__copy {
  opacity: var(--earth-entry-opacity);
  pointer-events: none;
  transform: translateY(var(--earth-entry-y));
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1), transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-chapter.is-near-header .earth-chapter__copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.has-gsap-scroll .earth-chapter__copy,
.has-gsap-scroll .earth-chapter__copy > * {
  transition: none;
}

.has-gsap-scroll .earth-chapter__copy > * {
  opacity: 1;
  transform: none;
}

.has-gsap-scroll .earth-chapter.is-active .earth-chapter__copy {
  pointer-events: auto;
}

.has-gsap-scroll .earth-chapter:not(.is-active) .earth-chapter__copy {
  pointer-events: none;
}

.earth-chapter--right .earth-chapter__copy {
  justify-self: start;
}

.earth-chapter--final {
  min-height: 138svh;
}

.earth-chapter h1,
.earth-chapter h2 {
  max-width: 15ch;
  min-width: 0;
  margin: 0;
  color: var(--city-ivory);
  font-family: var(--city-font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  overflow-wrap: normal;
  text-wrap: balance;
}

.earth-chapter h1 {
  font-size: clamp(2.65rem, 3.45vw, 4.15rem);
}

.earth-chapter h2 {
  font-family: "Montserrat", "Avenir Next", Avenir, sans-serif;
  font-size: clamp(2.9rem, 5.2vw, 5.25rem);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.earth-chapter--hero h1 {
  max-width: 13.5ch;
  color: #f4f8fc;
  font-family: "Montserrat", "Avenir Next", Avenir, sans-serif;
  font-size: clamp(2.7rem, 4.25vw, 4.8rem);
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.52);
  text-transform: uppercase;
  text-wrap: nowrap;
}

.earth-chapter--hero h1 em {
  color: #57dce9;
  font-style: normal;
}

.earth-chapter--hero h1 span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  animation: earth-hero-line-in 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.earth-chapter--hero h1 span + span {
  margin-top: 0.08em;
}

.earth-chapter--hero h1 span:nth-child(2) {
  animation-delay: 90ms;
}

.earth-chapter--hero h1 span:nth-child(3) {
  animation-delay: 180ms;
}

.earth-chapter--hero h1 .earth-hero-title__character {
  display: inline;
  white-space: normal;
  opacity: 1;
  animation: none;
}

.earth-chapter--hero .earth-chapter__hero-subtitle .earth-hero-title__scramble-line,
.earth-chapter--hero .earth-chapter__hero-subtitle .earth-hero-title__character {
  display: inline;
  white-space: normal;
}

.earth-chapter--hero .earth-chapter__hero-subtitle .earth-hero-title__character {
  opacity: 1;
  animation: none;
}

.earth-chapter--hero .earth-chapter__hero-subtitle {
  max-width: 56ch;
  margin: 20px auto 0;
  color: var(--city-parchment);
  font-family: "Manrope", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  text-align: center;
}

@keyframes earth-hero-line-in {
  from { opacity: 0; color: rgba(244, 248, 252, 0); transform: translateY(14px); }
  to { opacity: 1; color: #f4f8fc; transform: translateY(0); }
}

.earth-risk-telemetry {
  position: absolute;
  right: clamp(18px, 2.4vw, 38px);
  bottom: 0;
  z-index: 3;
  width: min(740px, 56vw);
  color: var(--city-ivory);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-risk-telemetry__routes {
  position: absolute;
  z-index: 0;
  inset: -28px -34px -30px;
  width: calc(100% + 68px);
  height: calc(100% + 58px);
  overflow: visible;
  pointer-events: none;
  opacity: 0.72;
}

.earth-risk-telemetry__routes .track-path {
  fill: none;
  stroke: rgba(87, 220, 233, 0.18);
  stroke-linecap: round;
  stroke-width: 1;
}

.earth-risk-telemetry__routes .draw-line {
  fill: none;
  stroke: rgba(87, 220, 233, 0.8);
  stroke-dasharray: 7 14;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.earth-risk-telemetry__routes .move-path {
  fill: #f5e663;
  opacity: 0.95;
}

.earth-risk-telemetry__grid,
.earth-risk-telemetry__qualifier {
  position: relative;
  z-index: 1;
}

.has-earth-scroll .earth-journey:not(.is-hero-entered) .earth-risk-telemetry {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
}

.has-earth-scroll .earth-journey:not(.is-hero-entered) .earth-chapter--hero .earth-chapter__copy {
  opacity: 0;
  transform: translateY(32px);
}

.earth-journey.is-hero-entered .earth-chapter--hero .earth-chapter__copy {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-earth-scroll .earth-journey:not(.is-risk-dock-revealed) .earth-risk-telemetry {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

.has-earth-scroll .earth-journey.is-risk-dock-revealed .earth-risk-telemetry {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-earth-scroll .earth-journey.is-hero-entered .earth-chapter--hero:is(.is-before, .is-near-header) .earth-chapter__copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.earth-risk-telemetry__qualifier,
.earth-risk-telemetry a {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.earth-risk-telemetry__grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.earth-risk-telemetry__cell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 174px;
  overflow: hidden;
  padding: clamp(15px, 1.5vw, 20px);
  border: 1px solid rgba(244, 248, 252, 0.18);
  border-radius: 14px;
  background: var(--earth-evidence-fill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
  grid-template-rows: auto 1fr auto;
  visibility: inherit;
  opacity: 1;
  transform: none;
  transition: background-color 180ms ease, border-color 220ms ease, opacity 460ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-risk-telemetry__cell::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--city-state-strong);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.has-earth-scroll .earth-risk-telemetry__cell {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
}

.earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell {
  opacity: 0.72;
  transform: translateY(0) scale(1);
}

.earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell.is-relevant {
  border-color: rgba(129, 232, 240, 0.58);
  opacity: 1;
}

.earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell:nth-child(1) { transition-delay: 0ms, 0ms, 40ms, 40ms; }
.earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell:nth-child(2) { transition-delay: 0ms, 0ms, 120ms, 120ms; }
.earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell:nth-child(3) { transition-delay: 0ms, 0ms, 200ms, 200ms; }

.earth-risk-telemetry .earth-risk-telemetry__cell > dt,
.earth-risk-telemetry .earth-risk-telemetry__cell > dd {
  margin: 0;
}

.earth-risk-telemetry .earth-risk-telemetry__cell > dt {
  min-width: 6ch;
  color: #ffffff;
  font-family: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.35rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.86;
  white-space: nowrap;
  transition: color 180ms ease;
}

.earth-risk-telemetry .earth-risk-telemetry__cell > dd:not(.earth-risk-telemetry__source) {
  align-self: start;
  margin-top: 12px;
  color: var(--earth-copy);
  font-family: var(--city-font-body);
  font-size: 0.72rem;
  line-height: 1.45;
}

.earth-risk-telemetry .earth-risk-telemetry__source {
  align-self: end;
}

.earth-risk-telemetry a {
  display: inline-flex;
  min-height: 28px;
  width: max-content;
  max-width: 100%;
  margin-top: 13px;
  align-items: center;
  color: var(--earth-route-strong);
  font-size: 0.62rem;
  line-height: 1.35;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .earth-journey.is-risk-dock-revealed .earth-risk-telemetry__cell:hover {
    border-color: rgba(129, 232, 240, 0.78);
    background: rgba(7, 18, 31, 0.86);
    opacity: 1;
  }

  .earth-risk-telemetry__cell:hover::before {
    transform: scaleX(1);
  }

  .earth-risk-telemetry__cell:hover > dt {
    color: var(--city-state-strong);
  }

  .earth-risk-telemetry__cell:hover .earth-risk-telemetry__source a {
    color: var(--city-state-strong);
  }
}

@media (hover: none) and (pointer: coarse) {
  .earth-risk-telemetry a {
    min-height: 44px;
  }
}

.earth-risk-telemetry a:hover,
.earth-risk-telemetry a:focus-visible {
  color: #ffffff;
}

.earth-risk-telemetry__qualifier {
  margin: 9px 0 0;
  color: var(--city-mist);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: right;
}

/* earth-awareness:start */
.earth-awareness {
  display: none;
}

@media (min-width: 960px) {
  .earth-awareness {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: block;
    overflow: hidden;
    color: #f4f8fc;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  .earth-awareness.is-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 180ms ease, visibility 0s linear 0s;
  }

  .earth-awareness__progress {
    position: absolute;
    top: calc(var(--vp-header-height) + 16px);
    right: clamp(264px, 21vw, 332px);
    left: clamp(24px, 3vw, 48px);
    display: grid;
    align-items: end;
    grid-template-columns: max-content minmax(320px, 1fr);
    gap: clamp(24px, 3vw, 54px);
  }

  .earth-awareness__progress > p,
  .earth-awareness__progress ol,
  .earth-awareness__progress li,
  .earth-awareness__progress strong {
    margin: 0;
    padding: 0;
  }

  .earth-awareness__progress > p {
    color: rgba(244, 248, 252, 0.76);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .earth-awareness__progress ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
  }

  .earth-awareness__progress ol::before {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: rgba(244, 248, 252, 0.26);
    content: "";
  }

  .earth-awareness__progress li {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
    color: rgba(201, 213, 225, 0.62);
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .earth-awareness__progress li::after {
    position: absolute;
    right: 10px;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: #81e8f0;
    content: "";
    opacity: 0;
    transform: scaleX(0.25);
    transform-origin: left;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .earth-awareness__progress li.is-current {
    color: #ffffff;
  }

  .earth-awareness__progress li.is-current::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .earth-awareness__progress li.is-complete {
    color: rgba(129, 232, 240, 0.72);
  }

  .earth-awareness__progress strong {
    overflow: hidden;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .earth-awareness__target {
    --earth-awareness-target-size: 34px;
    position: absolute;
    top: calc(-0.5 * var(--earth-awareness-target-size));
    left: calc(-0.5 * var(--earth-awareness-target-size));
    width: var(--earth-awareness-target-size);
    height: var(--earth-awareness-target-size);
    color: #81e8f0;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 180ms ease;
  }

  .has-earth-webgl .earth-awareness__target.is-positioned {
    opacity: 0.78;
  }

  .earth-awareness__target::before,
  .earth-awareness__target::after,
  .earth-awareness__target > i::before,
  .earth-awareness__target > i::after {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: currentColor;
    content: "";
  }

  .earth-awareness__target::before {
    top: 0;
    left: 0;
    border-top: 1px solid;
    border-left: 1px solid;
  }

  .earth-awareness__target::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
  }

  .earth-awareness__target > i::before {
    top: 0;
    right: 0;
    border-top: 1px solid;
    border-right: 1px solid;
  }

  .earth-awareness__target > i::after {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid;
    border-left: 1px solid;
  }

  .earth-awareness__target > span {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    color: rgba(244, 248, 252, 0.82);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .earth-awareness__target--packet {
    --earth-awareness-target-size: 24px;
    color: #ffffff;
  }

  .earth-awareness__target--packet > span {
    display: none;
  }

  .earth-awareness__telemetry {
    position: absolute;
    top: clamp(190px, 25svh, 260px);
    right: clamp(22px, 2.8vw, 42px);
    width: clamp(188px, 16vw, 232px);
    border-top: 1px solid rgba(129, 232, 240, 0.58);
    border-bottom: 1px solid rgba(244, 248, 252, 0.2);
  }

  .earth-awareness__telemetry-state {
    margin: 0;
    padding: 11px 0 10px;
    color: rgba(129, 232, 240, 0.86);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .earth-awareness__telemetry dl,
  .earth-awareness__telemetry dt,
  .earth-awareness__telemetry dd {
    margin: 0;
    padding: 0;
  }

  .earth-awareness__telemetry dl > div {
    display: grid;
    padding: 9px 0;
    border-top: 1px solid rgba(244, 248, 252, 0.13);
    align-items: baseline;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
  }

  .earth-awareness__telemetry dt {
    color: rgba(201, 213, 225, 0.68);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
  }

  .earth-awareness__telemetry dd {
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    transition: opacity 140ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .earth-awareness__telemetry.is-updating dd {
    opacity: 0.52;
    transform: translateY(2px);
  }

  .earth-awareness__status {
    position: absolute;
    top: calc(clamp(190px, 25svh, 260px) + 260px);
    right: clamp(22px, 2.8vw, 42px);
    width: clamp(320px, 34vw, 470px);
    display: flex;
    min-height: 28px;
    padding-top: 9px;
    border-top: 1px solid rgba(129, 232, 240, 0.38);
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    color: rgba(244, 248, 252, 0.68);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .earth-awareness__status span + span::before {
    margin-right: 12px;
    color: rgba(129, 232, 240, 0.72);
    content: "/";
  }

  @keyframes earth-awareness-online {
    from {
      opacity: 0;
      clip-path: inset(0 100% 0 0);
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      clip-path: inset(0);
      transform: translateY(0);
    }
  }

  .earth-awareness.is-visible:not(.has-entered):not(.is-static) :where(.earth-awareness__progress, .earth-awareness__telemetry, .earth-awareness__status) {
    animation: earth-awareness-online 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
/* earth-awareness:end */

@media (min-width: 821px) {

  .earth-chapter:not(.earth-chapter--hero) .earth-chapter__copy {
    isolation: isolate;
    width: min(860px, 64vw);
    padding: clamp(24px, 2.3vw, 32px);
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-left: clamp(24px, 4vw, 64px);
  }

  .earth-chapter:not(.earth-chapter--hero) .earth-chapter__copy::before {
    display: none;
  }

  .earth-chapter:not(.earth-chapter--hero) .earth-chapter__copy::after {
    display: none;
  }

  .earth-chapter--hero {
    min-height: calc(100svh - var(--vp-header-height));
    padding: max(170px, 18svh) 0 max(32px, 4svh);
    align-items: stretch;
  }

  .earth-chapter--hero .earth-chapter__copy {
    display: flex;
    width: min(1100px, calc(100% - 48px));
    min-height: 0;
    top: clamp(36px, 4svh, 56px);
    margin-inline: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: center;
    flex-direction: column;
  }

  .earth-chapter--hero .earth-chapter__copy::before,
  .earth-chapter--hero .earth-chapter__copy::after {
    display: none;
  }

  .earth-chapter--hero h1 {
    margin-left: 0;
  }

  .earth-chapter--hero h1 {
    text-align: center;
  }

  .earth-chapter--hero h1 {
    font-size: clamp(3.4rem, 5.1vw, 5.2rem);
  }

  .earth-chapter--hero .earth-chapter__hero-subtitle {
    margin-top: 18px;
  }

}

.earth-chapter__copy > p:not([class]) {
  max-width: 49ch;
  margin: 28px 0 0;
  color: var(--city-ivory);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.66;
}

.earth-chapter__actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  gap: 14px;
}

.earth-chapter .city-button--secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 248, 252, 0.42);
  border-radius: 7px;
  color: var(--city-ivory);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.earth-chapter .city-button--secondary:hover,
.earth-chapter .city-button--secondary:focus-visible {
  border-color: var(--earth-route-strong);
  background: rgba(87, 220, 233, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .earth-chapter {
    padding-right: 0;
    padding-left: var(--earth-strip-rail);
  }

  .earth-chapter__copy,
  .earth-chapter--hero .earth-chapter__copy,
  .earth-chapter--final .earth-chapter__copy {
    width: calc(var(--earth-strip-width) - var(--earth-strip-rail));
  }

  .earth-chapter h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.65rem);
  }

  .earth-chapter--hero h1 {
    font-size: clamp(2.9rem, 5.2vw, 4.25rem);
  }

  .earth-chapter h2 {
    font-size: clamp(2.9rem, 5.2vw, 5.25rem);
  }

  .earth-risk-telemetry {
    width: min(520px, 46vw);
  }

  .earth-risk-telemetry__cell {
    min-height: 160px;
    padding: 14px;
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dt {
    font-size: clamp(2.05rem, 3.5vw, 2.75rem);
  }
}

@media (max-width: 820px) {
  .earth-journey {
    --earth-strip-rail: 0px;
    --earth-strip-width: 100%;
  }

  .earth-journey__rail {
    top: 82px;
    right: 12px;
    bottom: auto;
    left: 12px;
    display: block;
    width: auto;
    height: 76px;
    border: 1px solid var(--earth-rule-soft);
    background: var(--earth-field-strong);
  }

  .earth-journey__rail::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(var(--earth-progress, 0));
    transform-origin: left;
  }

  .earth-journey__rail ol {
    display: grid;
    width: 100%;
    height: 100%;
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
  }

  .earth-journey__rail li {
    min-width: 0;
  }

  .earth-journey__rail li + li {
    border-left: 1px solid var(--earth-rule-soft);
  }

  .earth-journey__rail a {
    display: flex;
    width: 100%;
    height: 74px;
    padding: 6px 2px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transform: none;
  }

  .earth-journey__rail a::before {
    display: none;
  }

  .earth-journey__rail a span,
  .earth-journey__rail a strong {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--city-mist);
    font-family: var(--vp-header-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    opacity: 1;
    pointer-events: none;
    text-transform: uppercase;
    transform: none;
    text-align: center;
    white-space: normal;
  }

  .earth-journey__rail a span {
    color: var(--earth-route-strong);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
  }

  .earth-journey__rail a:hover,
  .earth-journey__rail a:focus-visible,
  .earth-journey__rail a.is-active {
    background: rgba(87, 220, 233, 0.1);
    color: var(--earth-route-strong);
    transform: none;
  }

  .earth-journey__rail a:hover strong,
  .earth-journey__rail a:focus-visible strong,
  .earth-journey__rail a.is-active strong {
    color: var(--city-ivory);
  }

  .earth-journey__shade {
    background: rgba(1, 4, 10, 0.26);
  }

  .earth-chapter {
    min-height: 102svh;
    padding: max(410px, 48svh) 0 0;
    align-items: start;
  }

  .earth-chapter--final {
    min-height: 106svh;
  }

  .earth-chapter__copy,
  .earth-chapter--hero .earth-chapter__copy,
  .earth-chapter--right .earth-chapter__copy,
  .earth-chapter--final .earth-chapter__copy {
    position: sticky;
    top: 350px;
    width: min(620px, 100%);
    max-width: none;
    padding: 28px clamp(22px, 4vw, 34px) 34px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    justify-self: stretch;
    background: transparent;
    opacity: 1;
  }

  .earth-chapter__copy::after {
    display: none;
  }

  .has-earth-scroll .earth-chapter__copy {
    opacity: 0;
    transform: translateY(30px);
  }

  .has-earth-scroll .earth-chapter.is-before .earth-chapter__copy {
    transform: translateY(-14px);
  }

  .earth-chapter h1,
  .earth-chapter h2 {
    max-width: 16ch;
  }

  .earth-chapter h1 {
    font-size: clamp(2.35rem, 7.3vw, 3.25rem);
  }

  .earth-chapter h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .earth-chapter--hero h1 {
    max-width: none;
    font-size: clamp(2.45rem, 7.4vw, 3.65rem);
    line-height: 1.04;
  }

  .earth-chapter--hero .earth-chapter__copy {
    position: relative;
    top: 44px;
    border: 0;
    background: transparent;
  }

  .earth-chapter--hero .earth-chapter__copy::before {
    display: none;
  }

  .earth-chapter--hero {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
  }

  .earth-risk-telemetry {
    position: absolute;
    top: 154px;
    right: 12px;
    bottom: auto;
    width: calc(100% - 24px);
    margin: 0;
    justify-self: stretch;
  }

  .earth-risk-telemetry__routes {
    display: none;
  }

  .earth-chapter--hero .earth-risk-telemetry {
    position: static;
    inset: auto;
    width: 100%;
    margin: 24px 0 0;
  }

  .earth-risk-telemetry__qualifier {
    text-align: left;
  }

  .earth-risk-telemetry__cell {
    min-height: 148px;
    background: var(--earth-evidence-fill-mobile);
  }

}

@media (max-width: 560px) {
  .earth-chapter {
    min-height: 112svh;
    padding: max(470px, 58svh) 0 0;
  }

  .earth-chapter--hero {
    min-height: 106svh;
    padding-top: 140px;
    padding-bottom: 0;
  }

  .earth-chapter--final {
    min-height: 180svh;
  }

  .earth-chapter__copy,
  .earth-chapter--hero .earth-chapter__copy,
  .earth-chapter--right .earth-chapter__copy,
  .earth-chapter--final .earth-chapter__copy {
    padding: 28px 20px;
  }

  .earth-chapter:not(.earth-chapter--hero) .earth-chapter__copy {
    top: 460px;
  }

  .earth-chapter:not(.earth-chapter--hero).earth-chapter--final .earth-chapter__copy {
    top: max(96px, calc(100svh - 456px));
  }

  .earth-chapter h1 {
    max-width: 14ch;
    font-size: clamp(2.1rem, 9vw, 2.7rem);
    line-height: 1;
  }

  .earth-chapter h2 {
    max-width: 15ch;
    font-size: clamp(2.25rem, 10vw, 3.4rem);
    line-height: 0.92;
  }

  .earth-chapter--hero h1 {
    max-width: none;
    font-size: clamp(2.05rem, 9.3vw, 2.85rem);
    line-height: 1.04;
  }

  .earth-chapter--hero .earth-chapter__hero-subtitle {
    max-width: 36ch;
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .earth-risk-telemetry {
    top: 148px;
    width: calc(100% - 24px);
    margin: 0;
  }

  .earth-risk-telemetry__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .earth-risk-telemetry__cell {
    min-height: 0;
    padding: 6px 8px;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto minmax(44px, auto);
    column-gap: 8px;
    row-gap: 2px;
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dt {
    align-self: center;
    min-width: 0;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dd:not(.earth-risk-telemetry__source) {
    display: block;
    margin-top: 0;
    align-self: end;
    font-size: 0.75rem;
    line-height: 1.3;
    grid-column: 2;
    grid-row: 1;
  }

  .earth-risk-telemetry .earth-risk-telemetry__source {
    display: flex;
    min-width: 0;
    margin-top: 0;
    align-items: stretch;
    grid-column: 2;
    grid-row: 2;
  }

  .earth-risk-telemetry a {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
    justify-content: flex-start;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
  }

  .earth-risk-telemetry__qualifier {
    margin-top: 5px;
    padding-inline: 2px;
  }

  .earth-chapter__copy > p:not([class]) {
    margin-top: 22px;
    font-size: 0.92rem;
    line-height: 1.56;
  }

  .earth-chapter__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 28px;
    gap: 10px;
  }

  .earth-chapter__actions .city-button {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 370px) {
  .earth-journey__rail a strong {
    width: 100%;
    font-size: 0.7rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .earth-chapter--hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.75rem);
  }

  .earth-chapter__actions {
    grid-template-columns: 1fr;
  }

  .earth-risk-telemetry__cell {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dt {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

}

@media (min-width: 960px) and (max-height: 680px) {
  .earth-chapter:not(.earth-chapter--hero) .earth-chapter__copy {
    width: min(620px, calc(54vw - 80px));
  }

  .earth-risk-telemetry {
    right: 16px;
    bottom: 16px;
    width: min(480px, 46vw);
  }

}

@media (max-height: 620px) and (min-width: 821px) {
  .earth-chapter {
    padding-top: 96px;
    padding-bottom: 50px;
  }

  .earth-chapter__copy {
    padding: 28px;
  }

  .earth-chapter h1 {
    font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  }

  .earth-chapter h2 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  }

  .earth-chapter--hero h1 {
    font-size: clamp(2.85rem, 4.4vw, 4rem);
  }

  .earth-risk-telemetry {
    right: 16px;
    bottom: 16px;
    width: min(480px, 46vw);
  }

  .earth-risk-telemetry__cell {
    min-height: 126px;
    padding: 12px;
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dt {
    font-size: 2rem;
  }

  .earth-risk-telemetry .earth-risk-telemetry__cell > dd:not(.earth-risk-telemetry__source) {
    margin-top: 8px;
    font-size: 0.75rem;
  }

  .earth-risk-telemetry .earth-risk-telemetry__source {
    margin-top: 8px;
  }

  .earth-risk-telemetry a {
    font-size: 0.7rem;
  }

  .earth-risk-telemetry__qualifier {
    margin-top: 6px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .earth-journey *,
  .earth-journey *::before,
  .earth-journey *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .earth-journey__canvas {
    display: none !important;
  }

  .earth-risk-telemetry__routes {
    display: none !important;
  }

  .earth-chapter__copy,
  .earth-risk-telemetry {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .earth-risk-telemetry__cell {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .earth-chapter__copy > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .earth-chapter__line {
    opacity: 1 !important;
    transform: scaleX(1) !important;
  }

  .earth-chapter--hero .earth-chapter__copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .earth-chapter--hero h1 span {
    opacity: 1;
    animation: none;
  }

  .earth-awareness,
  .earth-awareness * {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .earth-journey__visual {
    display: none !important;
  }

  .earth-risk-telemetry {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .earth-risk-telemetry__cell {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .earth-chapter__copy,
  .earth-journey__rail,
  .earth-risk-telemetry__cell {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .earth-risk-telemetry,
  .earth-risk-telemetry :where(dt, dd, a, p) {
    color: CanvasText;
  }

  .earth-chapter__copy::before,
  .earth-chapter__copy::after,
  .earth-journey__rail::after {
    background: CanvasText;
  }

  .earth-awareness,
  .earth-awareness :where(p, span, strong, dt, dd) {
    color: CanvasText;
  }

  .earth-awareness__progress ol::before,
  .earth-awareness__progress li::after,
  .earth-awareness__telemetry,
  .earth-awareness__telemetry dl > div,
  .earth-awareness__status {
    border-color: CanvasText;
    background: Canvas;
  }
}

@media print {
  .earth-journey__stage,
  .earth-journey__rail {
    display: none !important;
  }

  .earth-journey__chapters {
    background: #ffffff;
  }

  .earth-chapter,
  .earth-chapter--final {
    min-height: auto;
    padding: 32px;
    break-inside: avoid;
  }

  .earth-risk-telemetry {
    position: static;
    width: auto;
    margin: 20px 32px 32px;
    color: #111111;
    opacity: 1;
    transform: none;
  }

  .earth-risk-telemetry__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .earth-risk-telemetry__cell {
    border-color: #444444;
    background: #ffffff;
  }

  .earth-risk-telemetry :where(dt, dd, a, p) {
    color: #111111;
  }

  .earth-chapter__copy,
  .earth-chapter--hero .earth-chapter__copy,
  .earth-chapter--right .earth-chapter__copy,
  .earth-chapter--final .earth-chapter__copy {
    width: 100%;
    border-color: #6b7280;
    background: #ffffff;
    color: #111827;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .earth-chapter h1,
  .earth-chapter h2,
  .earth-chapter dd,
  .earth-chapter__copy > p:not([class]) {
    color: #111827;
  }
}
