:root {
  /* DESIGN typography tokens retained for checker: IBM Plex Sans Condensed** Condensed Condensedd Condense sparingly for cargo manifests */
  --void: #050814;
  --eclipse: #0B0B10;
  --ice: #DCEEFF;
  --amber: #F2A541;
  --mars: #B64A2B;
  --cyan: #58F3FF;
  --silver: #A8B3C7;
  --heading: 'Orbitron', sans-serif;
  --serif: 'Cormorant Garamond', serif;
  --body: 'Bricolage Grotesque', sans-serif;
  --condensed: 'IBM Plex Sans Condensed', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(88, 243, 255, .12), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(242, 165, 65, .09), transparent 24%),
    linear-gradient(115deg, rgba(220, 238, 255, .035), transparent 36%, rgba(11, 11, 16, .55));
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .23;
  background-image:
    repeating-radial-gradient(circle at 30% 40%, rgba(220,238,255,.09) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(168,179,199,.045) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.exchange-floor { position: relative; z-index: 1; }

.chamber {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 179, 199, .15);
  isolation: isolate;
}

.fixed-axis {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 74vmin;
  height: 74vmin;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: .72;
}

.axis-core {
  position: absolute;
  inset: 49.5%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 38px rgba(88, 243, 255, .3);
}

.invoice-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168, 179, 199, .45);
  border-radius: 50%;
  transform: rotate(var(--ring-rotation, 0deg)) scale(.93);
  transition: transform .8s ease, border-color .8s ease, box-shadow .8s ease;
  animation: ringAlign 18s linear infinite;
}

.invoice-ring::before, .invoice-ring::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(88, 243, 255, .32);
}

.invoice-ring::after {
  inset: -4%;
  border-color: rgba(242, 165, 65, .25);
  clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
}

.invoice-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--condensed);
  color: var(--silver);
  font-size: clamp(.55rem, 1.1vw, .82rem);
  letter-spacing: .16em;
  white-space: nowrap;
}

.invoice-ring span:nth-child(1) { transform: rotate(0deg) translateX(36vmin); }
.invoice-ring span:nth-child(2) { transform: rotate(55deg) translateX(36vmin) rotate(-55deg); }
.invoice-ring span:nth-child(3) { transform: rotate(118deg) translateX(36vmin) rotate(-118deg); }
.invoice-ring span:nth-child(4) { transform: rotate(184deg) translateX(36vmin) rotate(-184deg); }
.invoice-ring span:nth-child(5) { transform: rotate(248deg) translateX(36vmin) rotate(-248deg); }
.invoice-ring span:nth-child(6) { transform: rotate(310deg) translateX(36vmin) rotate(-310deg); }

.rail-nav {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
}

.rail-nav a {
  color: var(--silver);
  text-decoration: none;
  padding: .4rem .1rem .4rem 1.2rem;
  border-left: 1px solid rgba(168, 179, 199, .28);
  transition: color .35s ease, border-color .35s ease, transform .35s ease;
}

.rail-nav a.active, .rail-nav a:hover {
  color: var(--cyan);
  border-color: var(--amber);
  transform: translateX(-.35rem);
}

.planet {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 35%, rgba(168,179,199,.12), var(--eclipse) 42%, #000 70%);
  box-shadow: inset -22px -18px 55px #000, 0 0 0 1px rgba(88,243,255,.22), 0 0 55px rgba(88,243,255,.12);
}

.planet-huge { width: 68vmin; height: 68vmin; right: -13vmin; top: 8vh; }
.planet-small { width: 28vmin; height: 28vmin; right: 18vw; top: 14vh; }
.planet-offset { width: 48vmin; height: 48vmin; left: -16vmin; bottom: 4vh; }

.arrival-orbits { position: absolute; inset: 2vh -8vw 0 2vw; width: 106vw; height: 96vh; }
.lane { fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: .72; stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.lane.thin { stroke: var(--silver); opacity: .42; }
.cargo-path { fill: none; stroke: var(--amber); stroke-width: 1; stroke-dasharray: 8 12; opacity: .75; }
.path-word { font-family: var(--condensed); font-size: 15px; fill: var(--silver); letter-spacing: 5px; }
.is-visible .draw-lane { animation: drawLane 3.2s ease forwards; }
.is-visible .draw-lane.delayed { animation-delay: .7s; }

.arc-panel {
  position: absolute;
  left: 6vw;
  bottom: 8vh;
  width: min(760px, 72vw);
  padding: 3rem 4rem 3rem 2.5rem;
  border-left: 1px solid rgba(88, 243, 255, .5);
  border-bottom: 1px solid rgba(168, 179, 199, .35);
  border-radius: 0 0 0 48%;
  background: linear-gradient(90deg, rgba(5,8,20,.72), rgba(5,8,20,.12));
}

.eyebrow, .manifest-label, .cargo-code, .marginal-rail, .final-ledger {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--silver);
}

h1, h2 {
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: .11em;
  line-height: .95;
}

h1 { font-size: clamp(3rem, 8vw, 8.9rem); color: var(--ice); text-shadow: 0 0 28px rgba(88,243,255,.12); }
h2 { font-size: clamp(2.25rem, 5.6vw, 6.2rem); }

.proclamation {
  max-width: 660px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  color: var(--ice);
}

.ritual-button {
  border: 1px solid var(--amber);
  background: rgba(242, 165, 65, .08);
  color: var(--amber);
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: .22em;
  padding: .95rem 1.25rem;
  cursor: pointer;
  transform: skewX(-10deg);
  box-shadow: 0 0 24px rgba(242, 165, 65, .08);
}

.customs-seal {
  position: absolute;
  top: 12vh;
  left: 13vw;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--heading);
  font-size: .82rem;
  line-height: 1.22;
  color: var(--void);
  background: var(--amber);
  border: 8px double rgba(5,8,20,.76);
  transform: translateY(-150%) rotate(-24deg) scale(1.2);
  animation: sealDrop 1.15s cubic-bezier(.2,1.05,.3,1) .55s forwards;
  z-index: 4;
}

.customs-seal small { color: var(--mars); letter-spacing: .18em; }
.cargo-code { position: absolute; right: 8vw; bottom: 8vh; font-size: .78rem; color: var(--amber); writing-mode: vertical-rl; }

.section-copy { position: absolute; max-width: 710px; z-index: 3; }
.section-copy p:not(.eyebrow) { font-size: clamp(1rem, 1.6vw, 1.35rem); color: var(--silver); line-height: 1.6; }
.customs-copy { left: 8vw; top: 13vh; }
.commodity-copy { left: 7vw; top: 11vh; max-width: 600px; }
.delay-copy { right: 8vw; top: 13vh; max-width: 650px; }

.halo-system { position: absolute; inset: 8vh 9vw; }
.tariff-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,179,199,.46);
  transform: rotate(-14deg);
  animation: ringAlign 24s linear infinite reverse;
}
.ring-one { width: 68vmin; height: 42vmin; right: 4vw; top: 10vh; }
.ring-two { width: 52vmin; height: 76vmin; right: 14vw; top: 0; border-color: rgba(88,243,255,.35); }
.tariff-ring span { position: absolute; font-family: var(--condensed); letter-spacing: .18em; color: var(--silver); font-size: .72rem; }
.tariff-ring span:nth-child(1) { top: -1rem; left: 45%; }
.tariff-ring span:nth-child(2) { right: -2rem; top: 50%; color: var(--amber); }
.tariff-ring span:nth-child(3) { bottom: 0; left: 12%; color: var(--mars); }

.moon-stamp { position: absolute; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--heading); letter-spacing: .08em; }
.moon-stamp.amber { width: 24vmin; height: 24vmin; right: 22vw; top: 26vh; background: rgba(242,165,65,.88); color: var(--void); transform: rotate(12deg); }
.moon-stamp.oxide { width: 18vmin; height: 18vmin; right: 4vw; bottom: 12vh; background: rgba(182,74,43,.88); color: var(--ice); transform: rotate(-18deg); }

.shadow-limb { position: absolute; inset: 0 auto 0 0; width: 31vw; background: radial-gradient(circle at 100% 50%, transparent 0 46%, rgba(0,0,0,.92) 47% 67%, transparent 68%); z-index: 2; }
.marginal-rail { position: absolute; right: 4vw; top: 10vh; writing-mode: vertical-rl; font-size: .75rem; color: var(--cyan); }

.treaty { background: linear-gradient(180deg, var(--void), #070b18 52%, var(--void)); }
.contract-slab {
  position: absolute;
  z-index: 3;
  width: min(620px, 72vw);
  padding: 2rem;
  background: linear-gradient(135deg, rgba(220,238,255,.16), rgba(168,179,199,.055));
  border: 1px solid rgba(220,238,255,.38);
  box-shadow: 0 32px 80px rgba(0,0,0,.38);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  backdrop-filter: blur(8px);
  transform: translateY(55px);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}
.is-visible .contract-slab { transform: translateY(0); opacity: 1; }
.slab-one { left: 9vw; top: 18vh; }
.slab-two { right: 9vw; bottom: 12vh; width: min(460px, 56vw); transition-delay: .35s; }
blockquote { margin: 1rem 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 3.1rem); line-height: 1.05; color: var(--ice); }
.contract-slab p { color: var(--silver); line-height: 1.55; }
.eclipsing { animation: eclipsePass 16s ease-in-out infinite; }
.clipped-corner { position: absolute; right: -14vmin; top: -10vmin; width: 44vmin; height: 44vmin; border: 1px solid rgba(242,165,65,.35); transform: rotate(28deg); }

.concourse-window { position: absolute; inset: 23vh 0 14vh 24vw; border: 1px solid rgba(168,179,199,.25); border-right: 0; border-radius: 46% 0 0 46%; background: linear-gradient(90deg, rgba(168,179,199,.08), transparent); }
.commodity-moons { position: absolute; inset: 0; }
.commodity { position: absolute; border-radius: 50%; display: grid; place-items: center; box-shadow: inset -18px -22px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(220,238,255,.16); animation: moonDrift 9s ease-in-out infinite; }
.commodity span { position: absolute; bottom: -2rem; font-family: var(--condensed); text-transform: uppercase; letter-spacing: .18em; color: var(--silver); white-space: nowrap; }
.moon-ice { width: 13vmin; height: 13vmin; right: 24vw; top: 22vh; background: var(--ice); }
.moon-helium { width: 9vmin; height: 9vmin; right: 43vw; top: 49vh; background: var(--cyan); animation-delay: -2s; }
.moon-regolith { width: 16vmin; height: 16vmin; right: 10vw; bottom: 18vh; background: var(--mars); animation-delay: -4s; }
.moon-sail { width: 11vmin; height: 11vmin; left: 34vw; bottom: 16vh; background: var(--silver); clip-path: polygon(50% 0, 100% 100%, 0 70%); border-radius: 10%; animation-delay: -1s; }
.moon-basalt { width: 21vmin; height: 21vmin; left: 49vw; top: 15vh; background: var(--eclipse); animation-delay: -5s; }
.crest-band { position: absolute; left: 4vw; bottom: 8vh; width: 76vw; height: 18vh; fill: none; }
.crest-band path { fill: none; stroke: rgba(88,243,255,.34); }
.crest-band text { fill: var(--amber); font-family: var(--condensed); letter-spacing: 5px; font-size: 16px; }

.message-field { position: absolute; left: 10vw; top: 24vh; width: 52vw; height: 58vh; }
.message {
  position: absolute;
  width: min(360px, 42vw);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(168,179,199,.3);
  background: rgba(5,8,20,.7);
  color: var(--silver);
  transform: translateX(-28px) scale(.96);
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease, border-color .7s ease;
}
.message.visible { opacity: 1; transform: translateX(0) scale(1); border-color: rgba(88,243,255,.6); }
.message b { display: block; color: var(--ice); font-family: var(--heading); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.message span { font-family: var(--serif); font-size: 1.25rem; }
.message.mars { left: 10%; top: 10%; }
.message.europa { left: 36%; top: 34%; }
.message.titan { left: 4%; bottom: 18%; }
.message.belt { right: 0; bottom: 4%; }
.dotted-trail { position: absolute; left: 18vw; top: 20vh; width: 55vw; height: 60vh; border: 1px dotted rgba(242,165,65,.5); border-radius: 50%; transform: rotate(-20deg); }

.closing { display: grid; place-items: center; text-align: center; }
.bell-halo { position: absolute; width: 62vmin; height: 62vmin; border-radius: 50%; border: 2px solid var(--amber); box-shadow: 0 0 42px rgba(242,165,65,.35), inset 0 0 55px rgba(88,243,255,.12); animation: bellPulse 4.5s ease-in-out infinite; }
.bell-halo::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--cyan); }
.closing-copy { position: relative; z-index: 3; width: min(820px, 84vw); }
.closing-copy h2 { color: var(--ice); }
.final-ledger { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); color: var(--amber); font-size: .8rem; }

.routes-awake .invoice-ring, .invoice-ring.bell-state { border-color: var(--amber); box-shadow: 0 0 45px rgba(242,165,65,.35); }
.routes-awake .cargo-path { animation: dashTravel 1.8s linear infinite; }
.routes-awake .customs-seal { filter: drop-shadow(0 0 26px rgba(242,165,65,.62)); }

@keyframes ringAlign { to { rotate: 360deg; } }
@keyframes drawLane { to { stroke-dashoffset: 0; } }
@keyframes dashTravel { to { stroke-dashoffset: -80; } }
@keyframes sealDrop { 70% { transform: translateY(0) rotate(5deg) scale(.96); } 100% { transform: translateY(0) rotate(-8deg) scale(1); } }
@keyframes eclipsePass { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-14vw); } }
@keyframes moonDrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(1.4vw,-2.1vh); } }
@keyframes bellPulse { 0%,100% { transform: scale(.94); opacity: .72; } 50% { transform: scale(1.06); opacity: 1; } }

@media (max-width: 760px) {
  .rail-nav { display: none; }
  .fixed-axis { width: 92vmin; height: 92vmin; opacity: .45; }
  .arc-panel { left: 5vw; width: 90vw; padding: 2rem 1.4rem; }
  .customs-seal { left: 58vw; width: 104px; height: 104px; }
  .section-copy, .delay-copy, .customs-copy, .commodity-copy { left: 6vw; right: auto; top: 8vh; width: 86vw; }
  .message-field { left: 5vw; top: 36vh; width: 90vw; }
  .message { width: 72vw; }
  .contract-slab { width: 88vw; }
  .slab-one { left: 6vw; top: 12vh; }
  .slab-two { left: 9vw; right: auto; }
}
