/* EARTH — cinematic single-canvas scroll story.
   Layout: one fixed WebGL stage; chapter copy is fixed and docked to the side
   opposite the planet, driven by the same scroll progress as the camera. */
:root {
  --void: #04060a;        /* space, faint blue bias */
  --void-2: #0a1019;
  --haze: #d3deec;        /* primary text, cool white */
  --dim: #7d8ca3;         /* secondary text */
  --ion: #8fd0ff;         /* atmosphere blue */
  --dawn: #ffb877;        /* sunrise amber — the one warm accent */
  --line: rgba(211, 222, 236, 0.16);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--void); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--void);
  color: var(--haze);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
@media (hover: hover) and (pointer: fine) { body, button, a { cursor: none; } }

::selection { background: var(--dawn); color: var(--void); }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.serif { font-family: var(--f-serif); font-weight: 400; }
i.serif { font-style: italic; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#track { height: 13600vh; }

/* ---------------- Loader ---------------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: auto; }
#loader .band { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--void); will-change: transform; }
#loader .band-top { top: 0; }
#loader .band-bot { bottom: 0; }
.loader-core { position: relative; z-index: 2; width: min(440px, 84vw); display: grid; gap: 16px; justify-items: center; }
.loader-logo { width: 74%; height: auto; overflow: visible; margin-top: 6px; }
#loader.out::before { opacity: 0; }
#loader::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .6s;
  background: radial-gradient(50% 45% at 50% 46%, rgba(79, 150, 255, .09), transparent 70%); }
.ld-orb { position: relative; width: clamp(170px, 30vh, 250px); aspect-ratio: 1; margin-bottom: 6px; will-change: transform, opacity; }
.ld-orb canvas { position: absolute; inset: 9%; width: 82%; height: 82%; }
.ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ld-ring .trk { fill: none; stroke: var(--line); stroke-width: .8; }
.ld-ring .arc { fill: none; stroke: var(--dawn); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 703.7; stroke-dashoffset: 703.7; }
.ld-ring line { stroke: rgba(211, 222, 236, .22); stroke-width: .8; }
.ld-ring line.major { stroke: rgba(211, 222, 236, .5); }
.ld-satwrap { position: absolute; inset: 0; will-change: transform; }
.ld-satwrap i { position: absolute; left: 50%; top: 3.33%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff3e6; box-shadow: 0 0 10px 2px rgba(255, 184, 119, .9), 0 0 26px 6px rgba(255, 184, 119, .35); }
.ld-frame i { position: absolute; z-index: 2; width: 22px; height: 22px; border: 0 solid rgba(211, 222, 236, .35); }
.ld-frame i:nth-child(1) { left: 22px; top: 22px; border-width: 1px 0 0 1px; }
.ld-frame i:nth-child(2) { right: 22px; top: 22px; border-width: 1px 1px 0 0; }
.ld-frame i:nth-child(3) { left: 22px; bottom: 22px; border-width: 0 0 1px 1px; }
.ld-frame i:nth-child(4) { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }
.ld-hud { position: absolute; z-index: 2; display: grid; gap: 7px; font-size: 9.5px; color: var(--dim); }
.ld-hud b { color: var(--haze); font-weight: 500; }
.ld-tl { left: 56px; top: 50px; } .ld-tr { right: 56px; top: 50px; text-align: right; }
.ld-bl { left: 56px; bottom: 50px; } .ld-br { right: 56px; bottom: 50px; text-align: right; }
.ld-tl b { letter-spacing: .42em; }
@media (max-width: 640px) { .ld-tr, .ld-bl, .ld-br { display: none; } .ld-tl { left: 40px; top: 40px; } .ld-br { right: 40px; bottom: 40px; } .ld-frame i { width: 16px; height: 16px; } }
.loader-logo text {
  font-family: var(--f-display); font-weight: 200; font-size: 112px; letter-spacing: .14em;
  fill: transparent; stroke: var(--haze); stroke-width: 1;
  stroke-dasharray: 520; stroke-dashoffset: 520;
}
.loader-meta { width: 100%; display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
.loader-meta .pct b { color: var(--haze); font-weight: 500; }
.loader-line { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { display: block; height: 100%; width: 100%; background: var(--haze); transform: scaleX(0); transform-origin: left; }
.enter { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; visibility: hidden; }
.enter .btn { opacity: 0.001; transform: translateY(14px); }

/* ---------------- Buttons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 14px/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
  color: var(--haze); background: none; border: 1px solid var(--line);
  transition: border-color .4s var(--ease), color .4s var(--ease), background-color .4s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn em { font-style: normal; font-size: 9.5px; opacity: .6; }
.btn-solid { background: var(--haze); color: var(--void); border-color: var(--haze); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--dawn); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--void); border-color: var(--dawn); }
:focus-visible { outline: 1px solid var(--dawn); outline-offset: 4px; }

/* ---------------- HUD ---------------- */
.hud-top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--haze); text-decoration: none; justify-self: start;
  font: 300 13px/1 var(--f-display); letter-spacing: .42em; }
.brand img { height: 30px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(143, 208, 255, .2)); }
.hud-chapter { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.hud-chapter #hud-num { color: var(--dawn); }
.hud-chapter i { width: 28px; height: 1px; background: var(--line); }
.sound { justify-self: end; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--dim); padding: 8px 0; }
.sound:hover { color: var(--haze); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--haze); }
.sound[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.85s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.rail {
  position: fixed; z-index: 20; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; gap: 16px; align-items: stretch;
}
.rail-track { width: 1px; background: var(--line); position: relative; order: 2; }
.rail-track i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--dawn); transform: scaleY(0); transform-origin: top; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rail button {
  position: relative; display: block; width: 30px; text-align: right;
  background: none; border: 0; padding: 0; color: var(--dim);
  font: 400 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
}
.rail button b { font-weight: 500; }
.rail button span { position: absolute; right: calc(100% + 12px); top: 0; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rail:hover button span, .rail button:focus-visible span { opacity: 1; transform: none; }
.rail button.on { color: var(--haze); }
.rail button.on b { color: var(--dawn); }

.telemetry {
  position: fixed; z-index: 20; left: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  display: grid; grid-template-columns: repeat(4, auto); gap: 6px 22px; color: var(--dim); font-size: 10px;
}
.telemetry div { display: flex; gap: 6px; align-items: baseline; }
.telemetry b { color: var(--haze); font-weight: 400; min-width: 6ch; text-align: right; }
.telemetry em { font-style: normal; opacity: .6; }

.scroll-hint {
  opacity: 0; transition: opacity .6s var(--ease);
  position: fixed; z-index: 20; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; color: var(--haze);
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--haze), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- 3D tags ---------------- */
#tags { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; opacity: 0; transition: opacity .5s var(--ease); will-change: transform; color: var(--haze); }
.tag-lead { width: 80px; height: 40px; flex: none; margin-top: -34px; overflow: visible; }
.tag-lead path { fill: none; stroke: var(--ion); stroke-width: 1; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .9s var(--ease); }
.tag.on .tag-lead path { stroke-dashoffset: 0; }
.tag-body { margin: -42px 0 0 8px; display: grid; gap: 5px; font-size: 9.5px; color: var(--dim); white-space: nowrap; }
.tag-body b { color: var(--haze); font-weight: 500; font-size: 10.5px; }
.tag-body em { color: var(--ion); font-style: normal; }
.tag::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ion); }
.tag.flip { flex-direction: row-reverse; }
.tag.flip::before { left: auto; right: -4px; }
.tag.flip .tag-lead { transform: scaleX(-1); }
.tag.flip .tag-body { margin: -42px 8px 0 0; text-align: right; }

/* ---------------- Chapters ---------------- */
.stage { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.ch {
  position: absolute; visibility: hidden;
  width: min(460px, calc(100vw - 2 * var(--gutter)));
}
.ch.live { visibility: visible; }
.ch .btn, .ch a { pointer-events: auto; }

.ch-left  { left: calc(var(--gutter) + 2vw); top: 50%; transform: translateY(-50%); }
.ch-right { right: calc(var(--gutter) + 9vw); top: 50%; transform: translateY(-50%); }
.ch-center { left: 50%; transform: translateX(-50%); text-align: center; width: min(760px, calc(100vw - 2 * var(--gutter))); }
.ch-dot { top: 12vh; }
.ch-moon { top: 17vh; transform: none; }
.ch-home { top: 15vh; }

.eyebrow { margin: 0 0 22px; color: var(--dim); }
.eyebrow b { color: var(--dawn); font-weight: 500; margin-right: 10px; }

.title {
  margin: 0 0 22px; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance;
}
.title i.serif { font-size: 1.12em; letter-spacing: -.01em; color: var(--ion); }
.title.big { font-size: clamp(40px, 6.4vw, 104px); }
.title b { font-weight: 300; }
.body { margin: 0 0 30px; color: var(--dim); font-size: clamp(15px, 1.05vw, 17px); max-width: 42ch; font-weight: 300; }
.ch-center .body { margin-inline: auto; }

/* split text: every word sits in its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .24em 0; margin: 0 -.08em -.24em 0; }
.w > span { display: inline-block; will-change: transform; }

/* hero */
.ch-hero { left: 50%; top: 13vh; transform: translateX(-50%); width: min(1200px, calc(100vw - 2 * var(--gutter))); text-align: center; }
.ch-hero .eyebrow { color: var(--dawn); margin-bottom: 2vh; }
.wordmark {
  margin: 0; display: flex; justify-content: center; gap: .04em;
  font-family: var(--f-display); font-weight: 200; font-size: clamp(64px, 17vw, 260px);
  line-height: .9; letter-spacing: .06em; color: var(--haze);
}
.wordmark span { display: inline-block; opacity: 0.001; will-change: transform, filter; }
.ch-hero .lede { margin: 2.4vh 0 0; font-size: clamp(20px, 2vw, 30px); font-style: italic; color: var(--haze); }

/* stats */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 16px 14px 0 0; display: grid; gap: 8px; opacity: 0.001; transform: translateY(16px); }
.stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.stats dt { color: var(--dim); font-size: 9.5px; }
.stats dd { margin: 0; display: grid; gap: 4px; }
.stats dd b { font: 300 clamp(20px, 1.8vw, 28px)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats dd span { color: var(--dim); font-size: 12.5px; line-height: 1.3; }

/* probe */
.probe { display: grid; gap: 18px; opacity: 0.001; transform: translateY(16px); }
.probe-read { display: flex; gap: 10px; align-items: baseline; color: var(--dim); }
.probe-read b { font: 300 34px/1 var(--f-display); color: var(--haze); letter-spacing: -.02em; min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.layers { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.layers li {
  display: grid; grid-template-columns: 96px 1fr; gap: 2px 14px; padding: 9px 0 9px 16px; position: relative;
  color: var(--dim); transition: color .5s var(--ease);
}
.layers li::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--dawn); transform: scaleY(0); transition: transform .6s var(--ease); }
.layers li span { grid-row: span 2; font-size: 9.5px; padding-top: 3px; }
.layers li b { font-weight: 500; font-size: 14px; }
.layers li em { font-style: normal; font-size: 12.5px; }
.layers li.on { color: var(--haze); }
.layers li.on::before { transform: scaleY(1); }
.layers li.on span { color: var(--dawn); }

/* route */
.route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); opacity: 0.001; transform: translateY(16px); }
.route b { color: var(--haze); font-weight: 500; }
.route em { font-style: normal; color: var(--ion); }

/* quote */
.quote { margin: 0; display: grid; gap: 14px; }
.quote p { margin: 0; font-size: clamp(20px, 2.2vw, 32px); font-style: italic; color: var(--dawn); }
.quote cite { font-style: normal; color: var(--dim); opacity: 0.001; }
.ch-dot .title { font-size: clamp(28px, 3vw, 46px); }

/* home */
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0.001; transform: translateY(16px); }
.credits { margin: 28px 0 0; color: var(--dim); font-size: 9.5px; opacity: 0.001; }

/* ---------------- Cursor ---------------- */
#cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; }
#cursor .c-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--haze); will-change: transform; }
#cursor .c-ring { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; will-change: transform; }
#cursor .c-ring svg { width: 100%; height: 100%; overflow: visible; transition: transform .5s var(--ease); transform: scale(.28); }
#cursor .c-ring circle { fill: none; stroke: var(--haze); stroke-opacity: .45; stroke-width: 3.2; transition: stroke-width .5s var(--ease), stroke-opacity .5s; }
#cursor .c-ring text { font: 500 8.6px var(--f-mono); letter-spacing: .26em; fill: var(--haze); opacity: 0; transition: opacity .4s; }
#cursor.hover .c-ring svg { transform: scale(.52); }
#cursor.hover .c-ring circle { stroke: var(--dawn); stroke-opacity: .9; stroke-width: 1.6; }
#cursor.drag .c-ring svg { transform: scale(1) rotate(var(--spin, 0deg)); }
#cursor.drag .c-ring circle { stroke-width: 1; stroke-opacity: .35; }
#cursor.drag .c-ring text { opacity: 1; }
#cursor.drag.down .c-ring svg { transform: scale(.82) rotate(var(--spin, 0deg)); }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; z-index: 300; background: var(--void); text-align: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .rail { display: none; }
  .ch-left, .ch-right { left: var(--gutter); right: auto; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); transform: none; }
  .ch-atmo .body, .ch-orbit .body { display: none; }
  .hud-chapter { display: none; }
  .hud-top { grid-template-columns: 1fr 1fr; }
  .telemetry { grid-template-columns: repeat(2, auto); gap: 4px 16px; }
  .layers li { grid-template-columns: 84px 1fr; padding-block: 6px; }
  .layers li em { display: none; }
  .ch-dot { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); }
  .ch-home { top: 11vh; }
  .stats dd span { font-size: 11px; }
  .tag-body { font-size: 8.5px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats > div + div { padding-left: 10px; }
  .telemetry { display: none; }
  .ch-hero { top: 16vh; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i, .sound[aria-pressed="true"] .eq i { animation: none; }
}

/* ================= Act two ================= */
body.act2 .telemetry { opacity: 0; }
.telemetry { transition: opacity .6s var(--ease); }
.ch-car { left: calc(var(--gutter) + 2vw); top: 13vh; }
.ch-return { top: 12vh; }
.ch-found { top: auto; bottom: 13vh; transform: none; }
.ch-final { top: 16vh; }
.ch-credits { left: 50%; top: 17vh; transform: translateX(-50%); width: min(1100px, calc(100vw - 2 * var(--gutter))); text-align: center; }
.ch-credits .eyebrow { color: var(--dawn); }
.wordmark.name { font-size: clamp(52px, 13vw, 200px); letter-spacing: .08em; }
.ch-credits .lede { margin: 2vh 0 4vh; font-size: clamp(20px, 2.2vw, 32px); font-style: italic; }
.ch-credits .credits { margin-top: 26px; }

/* ---------- the screen: a viewport-sized DOM layer mapped onto 3D quads ---------- */
#scr {
  position: fixed; left: 0; top: 0; z-index: 4; transform-origin: 0 0; visibility: hidden;
  pointer-events: none; overflow: hidden; background: #060a11; color: var(--haze);
  will-change: transform; backface-visibility: hidden; border-radius: 22px;
}
#scr.on { visibility: visible; }
#scr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(143, 208, 255, .22); pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .05), transparent 30%, transparent 70%, rgba(143, 208, 255, .04)); }
.scr-flash { position: absolute; inset: 0; background: #d8ecff; opacity: 0; will-change: opacity; }
.scr-auto, .scr-car { position: absolute; inset: 0; }
/* content change: the console lifts away, a light sweep crosses the glass, the car UI assembles */
.scr-auto { transition: opacity .55s var(--ease), transform .9s var(--ease); }
#scr.car .scr-auto { opacity: 0; transform: scale(1.04); }
.scr-car { opacity: 0; transition: opacity .3s linear .12s; }
#scr.car .scr-car { opacity: 1; }
.sc-top, .sc-viz, .sc-side { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform 1s var(--ease); }
#scr.car .sc-top, #scr.car .sc-viz, #scr.car .sc-side { opacity: 1; transform: none; }
#scr.car .sc-top { transition-delay: .32s; }
#scr.car .sc-viz { transition-delay: .44s; }
#scr.car .sc-side { transition-delay: .58s; }
.scr-wipe { position: absolute; inset: 0; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(100deg, transparent 38%, rgba(143, 208, 255, .22) 47%, rgba(235, 245, 255, .75) 50%, rgba(143, 208, 255, .22) 53%, transparent 62%); }
#scr.car .scr-wipe { animation: wipe 1.15s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes wipe { 0% { opacity: 0; transform: translateX(-70%); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%); } }

.scr-auto {
  display: grid; grid-template-rows: auto 1fr; gap: clamp(14px, 3vh, 30px);
  padding: clamp(14px, 3vh, 30px) clamp(16px, 2.8vw, 42px) clamp(16px, 3.6vh, 38px);
  background:
    radial-gradient(70% 60% at 88% 0%, rgba(143, 208, 255, .1), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(255, 184, 119, .05), transparent 60%),
    linear-gradient(rgba(143, 208, 255, .028) 1px, transparent 1px) 0 0 / 100% 34px,
    #060a11;
}
.sa-bar { display: flex; align-items: center; gap: 18px; padding-bottom: clamp(10px, 2vh, 16px); border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10px; }
.sa-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--haze); letter-spacing: .32em; }
.sa-brand i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ion); background: radial-gradient(circle, var(--ion) 0 28%, transparent 32%); }
.sa-tabs { display: flex; gap: 4px; margin-left: 14px; }
.sa-tabs > * { padding: 6px 12px; border-radius: 999px; font-weight: 400; border: 1px solid transparent; }
.sa-tabs b { color: var(--haze); background: rgba(143, 208, 255, .08); border-color: rgba(143, 208, 255, .22); }
.sa-status { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--haze); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.sa-status i { width: 7px; height: 7px; border-radius: 50%; background: #46ff8c; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.sa-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(14px, 2.2vw, 34px); min-height: 0; }
.sa-left { display: grid; grid-template-rows: auto 1fr auto; gap: clamp(12px, 2.6vh, 26px); min-width: 0; min-height: 0; }
.sa-title { display: grid; gap: 12px; }
.sa-title .mono { color: var(--dim); font-size: 10px; }
.sa-title .mono b { color: var(--dawn); font-weight: 500; margin-right: 8px; }
.sa-title h3 { margin: 0; font: 300 clamp(22px, 2.9vw, 50px)/1.05 var(--f-display); letter-spacing: -.02em; max-width: 17ch; }
.sa-title h3 i { font-size: 1.1em; color: var(--ion); }

.sa-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9vw; align-items: center; }
.sa-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sa-lines path { fill: none; stroke: var(--ion); stroke-width: 1.5; stroke-opacity: .5; vector-effect: non-scaling-stroke; }
.sa-lines circle { fill: var(--dawn); }
.sa-node {
  position: relative; display: grid; gap: 7px; padding: 14px 12px; min-width: 0;
  background: linear-gradient(180deg, #0e1521, #0a0f18); border: 1px solid var(--line); border-radius: 14px;
  opacity: .12; transform: translateY(18px) scale(.96);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.sa-node.on { opacity: 1; transform: none; border-color: rgba(143, 208, 255, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.sa-node em { font-style: normal; color: var(--dawn); font-size: 9.5px; }
.sa-node b { font: 400 clamp(13px, 1.25vw, 21px)/1.1 var(--f-display); }
.sa-node span { color: var(--dim); font-size: clamp(10px, .78vw, 12.5px); line-height: 1.35; }
.sa-node i { display: block; height: 3px; background: rgba(211, 222, 236, .08); border-radius: 2px; overflow: hidden; }
.sa-node s { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--ion), var(--dawn)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.sa-node.on s { transform: scaleX(1); }

.sa-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sa-metrics > div { display: grid; gap: 6px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); opacity: .15; transition: opacity .6s; }
.sa-metrics > div.on { opacity: 1; }
.sa-metrics span { color: var(--dim); font-size: 9.5px; }
.sa-metrics b { font: 300 clamp(16px, 1.7vw, 30px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.sa-metrics svg { width: 100%; height: clamp(18px, 3.2vh, 30px); overflow: visible; }
.sa-metrics polyline { fill: none; stroke: var(--ion); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.8s var(--ease) .15s; }
.sa-metrics > div:nth-child(2) polyline { stroke: #7fe0b0; }
.sa-metrics > div:nth-child(3) polyline { stroke: var(--dawn); }
.sa-metrics .on polyline { stroke-dashoffset: 0; }

.sa-code { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0a0f18, #070b12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.sa-code-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9.5px; background: rgba(255, 255, 255, .02); }
.sa-code-head .dots { display: flex; gap: 6px; }
.sa-code-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: #253041; }
.sa-code-head b { color: var(--haze); font-weight: 500; text-transform: none; letter-spacing: .04em; }
.sa-code-head em { margin-left: auto; font-style: normal; color: #46ff8c; }
.sa-src { list-style: none; margin: 0; padding: clamp(8px, 1.8vh, 16px) 0; counter-reset: ln; font-size: clamp(9px, .78vw, 12.5px); line-height: 1.8;
  text-transform: none; letter-spacing: 0; color: #aab6c8; overflow: hidden; min-height: 0; }
.sa-src li { counter-increment: ln; position: relative; padding-left: 46px; white-space: pre; clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(26, end); }
.sa-src li::before { content: counter(ln); position: absolute; left: 0; width: 30px; text-align: right; color: #364153; }
.sa-src li.on { clip-path: inset(0 0 0 0); }
.sa-src li.on:not(:has(+ li.on))::after { content: ""; display: inline-block; width: .55em; height: 1.15em; margin-left: 3px; vertical-align: -.22em; background: var(--ion); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sa-src .k { color: #c49cff; } .sa-src .f { color: #8fd0ff; } .sa-src .s { color: #ffb877; } .sa-src .n { color: #7fe0b0; } .sa-src .c { color: #4f5b6e; font-style: italic; }
.sa-log { list-style: none; margin: 0; padding: 12px 16px 14px; display: grid; gap: 6px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  color: var(--dim); font-size: clamp(8.5px, .7vw, 11px); text-transform: none; letter-spacing: .04em; }
.sa-log li { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-log li::before { content: "› "; color: #46ff8c; }
.sa-log li.on { opacity: 1; transform: none; }
.sa-log em { font-style: normal; color: var(--ion); margin-right: 10px; }

/* car UI */
.scr-car { display: grid; grid-template-rows: auto 1fr; gap: 2vh; padding: clamp(16px, 4vh, 44px) clamp(16px, 4vw, 64px); background: #05080e; }
.sc-top { display: flex; gap: 28px; align-items: center; color: var(--dim); }
.sc-top #sc-clock { color: var(--haze); }
.sc-ap { margin-left: auto; color: #6fb0ff; font-weight: 500; padding: 6px 12px; border: 1px solid rgba(111, 176, 255, .45); border-radius: 999px; }
.sc-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3vw; min-height: 0; }
.sc-viz { position: relative; display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 60%, rgba(79, 150, 255, .1), transparent 70%); border-radius: 18px; min-height: 0; }
.sc-viz svg { width: 100%; height: 100%; max-height: 70vh; }
.sc-path { fill: rgba(79, 150, 255, .25); }
.sc-edge { stroke: rgba(211, 222, 236, .4); stroke-width: 2; fill: none; }
.sc-lane { stroke: rgba(211, 222, 236, .35); stroke-width: 2; fill: none; stroke-dasharray: 14 16; animation: lane .6s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -30; } }
.sc-ego { fill: #d3deec; }
.sc-other { fill: rgba(211, 222, 236, .45); }
.sc-other.o1 { animation: drift 5s ease-in-out infinite alternate; }
.sc-other.o2 { animation: drift 7s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateY(26px); } }
.sc-speed { position: absolute; left: 4%; top: 4%; display: grid; }
.sc-speed b { font: 200 clamp(40px, 6vw, 96px)/1 var(--f-display); }
.sc-speed span { color: var(--dim); }
.sc-gear { position: absolute; left: 4%; bottom: 5%; color: var(--dim); letter-spacing: .4em; }
.sc-gear b { color: var(--haze); }
.sc-side { display: grid; align-content: center; gap: 12px; min-width: 0; overflow: hidden; }
.sc-h { margin: 0 0 4px; color: var(--dim); }
.pcard {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; min-width: 0;
  background: #0c121c; border: 1px solid var(--line); border-radius: 16px; opacity: .001; transform: translateX(110%);
}
.pcard > i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--f-mono); color: #06090f; font-style: normal; background: var(--c); box-shadow: 0 0 24px -6px var(--c); }
.pcard div { display: grid; gap: 3px; min-width: 0; }
.pcard b { font-weight: 500; font-size: clamp(14px, 1.2vw, 18px); }
.pcard .mono { font-size: 9.5px; color: var(--ion); }
.pcard em { font-style: normal; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* portrait screens reflow */
#scr.portrait .sa-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
#scr.portrait .sa-tabs, #scr.portrait .sa-lines, #scr.portrait .sa-log, #scr.portrait .sa-node span { display: none; }
#scr.portrait .sa-flow { grid-template-columns: 1fr; gap: 6px; }
#scr.portrait .sa-node { grid-template-columns: auto 1fr; align-items: center; padding: 8px 12px; gap: 4px 12px; }
#scr.portrait .sa-node i { grid-column: 2; }
#scr.portrait .sa-metrics { gap: 6px; }
#scr.portrait .sa-metrics > div { padding: 8px 9px; }
#scr.portrait .sa-src { font-size: 8.4px; line-height: 1.7; }
#scr.portrait .sa-src li { padding-left: 30px; }
#scr.portrait .sa-src li::before { width: 20px; }
#scr.portrait .sc-main { grid-template-columns: 1fr; grid-template-rows: 40vh auto; }
#scr.portrait .sc-top { gap: 14px; }

@media (max-width: 900px) {
  .ch-car { left: var(--gutter); top: 11vh; }
}

/* ================= XI: tonight, in numbers ================= */
.ch-ledger { top: 12vh; width: min(1080px, calc(100vw - 2 * var(--gutter))); }
.ch-ledger .eyebrow { margin-bottom: 18px; }
.ch-ledger .title { margin-bottom: 0; }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 5vh 0 0; text-align: left; opacity: 0.001; transform: translateY(16px);
  border: 1px solid rgba(211, 222, 236, .14); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 21, 33, .78), rgba(6, 10, 17, .62)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.ledger > div { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(18px, 3vh, 30px) clamp(16px, 1.8vw, 28px); }
.ledger > div + div { border-left: 1px solid rgba(211, 222, 236, .1); }
.ledger > div::before { content: ""; position: absolute; left: clamp(16px, 1.8vw, 28px); right: 40%; top: 0; height: 1px; background: linear-gradient(90deg, var(--dawn), transparent); }
.ledger > div > .mono { color: var(--dim); font-size: 9.5px; }
.ledger .num { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.ledger .num b { font: 200 clamp(40px, 4.8vw, 76px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--haze); }
.ledger .num i { font: italic 400 clamp(17px, 1.6vw, 26px)/1 var(--f-serif); color: var(--ion); }
.ledger p:last-child { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.45; max-width: 24ch; }
.path { list-style: none; position: relative; margin: 5vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); opacity: 0.001; }
.path::before, .path::after { content: ""; position: absolute; left: 4.2%; right: 4.2%; top: 5px; height: 1px; }
.path::before { background: var(--line); }
.path::after { background: linear-gradient(90deg, var(--ion), var(--dawn)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.5, 0, .2, 1) .45s; }
.ch-ledger.live .path::after { transform: scaleX(1); }
.path li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 9px; color: var(--dim); font-size: 8.5px; }
.path li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(211, 222, 236, .3); background: var(--void);
  transition: background .4s, border-color .4s, box-shadow .4s; transition-delay: calc(.45s + var(--i) * .2s); }
.ch-ledger.live .path li::before { background: var(--dawn); border-color: var(--dawn); box-shadow: 0 0 14px rgba(255, 184, 119, .65); }
.path li b { color: var(--haze); font-weight: 500; font-size: 10px; }
@media (max-width: 900px) {
  .ch-ledger { top: 10vh; }
  .ledger { grid-template-columns: 1fr 1fr; margin-top: 3vh; }
  .ledger > div:nth-child(3) { border-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid rgba(211, 222, 236, .1); }
  .ledger p:last-child { font-size: 11.5px; }
  .path { margin-top: 3.5vh; }
  .path li span { display: none; }
}

/* ================= VII: Amritsar and Zlaark ================= */
.zl-logo { display: block; width: 100%; height: auto; overflow: visible; }
.zl-logo path, .zl-logo text { fill: #ff5a1f; }
.zl-logo text { font: 600 100px/1 Outfit, "Hanken Grotesk", sans-serif; letter-spacing: -.01em; }
.ch-brand { width: min(500px, calc(100vw - 2 * var(--gutter))); }
.brand-mark { width: min(300px, 62vw); margin: 0 0 26px; opacity: 0.001; filter: drop-shadow(0 0 22px rgba(255, 90, 31, .45)); }
.ch-brand .stats dd b { font-variant-numeric: tabular-nums; }
.tag-hq .tag-body b, .tag-hq::before { color: #ff8a52; border-color: #ff8a52; }
.tag-gold .tag-body b { color: #ffcf7a; }
.tag-zoom .tag-body b { font-size: 1.25em; letter-spacing: .3em; }
.tag-zoom::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--dawn); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 900px) { .ch-brand .body { display: none; } .brand-mark { width: 220px; margin-bottom: 18px; } }

.ch-city { top: 14vh; }
.ch-city .title.big { font-size: clamp(56px, 10vw, 160px); letter-spacing: -.03em; margin-bottom: 14px; }
.ch-city .eyebrow b, .ch-lobby .eyebrow b { color: var(--dawn); }
.ch-lobby { top: auto; bottom: 14vh; transform: none; }

/* ================= IX: the studio ================= */
.ch-studio { top: 9vh; width: min(1140px, calc(100vw - 2 * var(--gutter))); }
.ch-studio .eyebrow b { color: var(--dawn); }
.ch-studio .title { margin-bottom: 14px; }
.studio-lede { margin: 0 auto; max-width: 60ch; color: var(--dim); font-size: clamp(14px, 1vw, 16px); font-weight: 300; opacity: 0.001; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4.2vh; text-align: left; }
.svc {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 22px 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 23, 35, .86), rgba(8, 12, 19, .78));
  border: 1px solid rgba(211, 222, 236, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .8s var(--ease), transform 1.1s var(--ease), border-color .6s;
}
.svc::before { content: ""; position: absolute; left: 22px; right: 45%; top: 0; height: 1px; background: linear-gradient(90deg, #ff5a1f, transparent); opacity: 0; transition: opacity .8s .3s; }
.svc.on { opacity: 1; transform: none; border-color: rgba(143, 208, 255, .2); }
.svc.on::before { opacity: 1; }
.svc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(143, 208, 255, .07); border: 1px solid rgba(143, 208, 255, .2); }
.svc-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ion); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc em { position: absolute; right: 20px; top: 22px; font-style: normal; color: #4f5b6e; font-size: 10px; }
.svc h3 { margin: 4px 0 0; font: 400 clamp(17px, 1.45vw, 23px)/1.1 var(--f-display); letter-spacing: -.01em; }
.svc p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; font-weight: 300; }
.svc ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 9px; color: var(--haze); }
.svc li { padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(211, 222, 236, .14); background: rgba(255, 255, 255, .02); }
.proc { list-style: none; margin: 3.6vh auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 860px; position: relative; }
.proc::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 1px; background: var(--line); }
.proc li { position: relative; display: grid; justify-items: center; gap: 10px; color: var(--dim); font-size: 13px; opacity: .25; transition: opacity .6s var(--ease); }
.proc li b { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 500; color: var(--haze);
  background: var(--void); border: 1px solid var(--line); transition: background .5s, border-color .5s, color .5s, box-shadow .5s; }
.proc li.on { opacity: 1; color: var(--haze); }
.proc li.on b { background: #ff5a1f; border-color: #ff5a1f; color: #160803; box-shadow: 0 0 18px rgba(255, 90, 31, .55); }
@media (max-width: 900px) {
  .ch-studio { top: 8vh; }
  .studio-lede { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2.4vh; }
  .svc { padding: 14px; gap: 6px; }
  .svc p, .svc ul, .svc em { display: none; }
  .proc { margin-top: 2.4vh; } .proc li span { font-size: 10.5px; }
}

/* ================= server hall telemetry ================= */
.dc-hud { position: fixed; z-index: 6; right: calc(var(--gutter) + 46px); top: 84px; transform: translate(14px, 0); width: 230px; padding: 16px 18px;
  border: 1px solid rgba(143, 208, 255, .2); border-radius: 14px; background: linear-gradient(180deg, rgba(10, 16, 26, .72), rgba(6, 10, 17, .6));
  color: var(--dim); font-size: 9.5px; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.dc-hud.on { opacity: 1; transform: none; }
.dc-h { display: flex; align-items: center; gap: 8px; color: var(--haze); padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dc-h i { width: 6px; height: 6px; border-radius: 50%; background: #46ff8c; animation: blink 1.4s infinite; }
.dc-hud dl { margin: 0; display: grid; gap: 9px; }
.dc-hud dl div { display: flex; justify-content: space-between; gap: 10px; }
.dc-hud dd { margin: 0; color: var(--haze); font-variant-numeric: tabular-nums; }
.dc-state { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dawn); }
@media (max-width: 900px) { .dc-hud { display: none; } }

/* ================= VIII–X: the core ================= */
.node-ui, .chip-ui, .uni-ui { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.node-ui .nu-title { position: absolute; right: calc(var(--gutter) + 5vw); top: 15vh; display: grid; justify-items: end; gap: 6px; }
.nu-title span { font-size: 10px; color: #e9cf9f; letter-spacing: .14em; text-transform: none; font-weight: 500; }
.nu-title b { font: 500 clamp(64px, 10vw, 158px)/.86 var(--f-display); letter-spacing: -.03em; color: #f4efe6; }
.nu-list { position: absolute; left: calc(var(--gutter) + 2vw); bottom: 15vh; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 12px; color: #efe6d6; letter-spacing: .12em; }
.nu-list li { display: flex; align-items: center; gap: 16px; }
.nu-list i { width: 14px; height: 14px; position: relative; flex: none; }
.nu-list i::before, .nu-list i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #e6c48a; }
.nu-list i::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.nu-list i::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.node-ui .nu-title, .node-ui .nu-list li { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.node-ui.on .nu-title, .node-ui.on .nu-list li { opacity: 1; transform: none; }
.node-ui.on .nu-list li:nth-child(2) { transition-delay: .08s; } .node-ui.on .nu-list li:nth-child(3) { transition-delay: .16s; } .node-ui.on .nu-list li:nth-child(4) { transition-delay: .24s; }

.chip-ui { display: grid; justify-items: center; align-content: start; padding-top: 11vh; gap: 4px; }
.chip-ui span { font-size: 10px; color: #e9cf9f; letter-spacing: .14em; text-transform: none; }
.chip-ui b { font: 500 clamp(56px, 9.5vw, 150px)/.9 var(--f-display); letter-spacing: -.02em; color: rgba(244, 239, 230, .22); }
.chip-ui > * { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
.chip-ui.on > * { opacity: 1; transform: none; }
.chip-ui.on b { transition-delay: .1s; }

.ch-uni { top: auto; bottom: 11vh; }
.ch-uni .eyebrow b { color: #f2c67a; }

.uni-ui { opacity: 0; transition: opacity .4s linear; }
.uni-ui.on { opacity: 1; }
.uni-frame { position: absolute; left: 0; top: 0; border: 1px solid rgba(255, 228, 180, .28); box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .03); will-change: transform; }
.uni-word { position: absolute; left: 0; top: 0; font: 500 clamp(26px, 6.6vw, 104px)/.9 var(--f-display); letter-spacing: -.02em; color: #fbf6ee; white-space: nowrap; will-change: transform, opacity; }
.uni-track { position: absolute; inset: 0; }
.uni-card { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-sizing: border-box; border-radius: 22px; overflow: hidden; color: #f6efe3; opacity: 0; will-change: transform, opacity;
  display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 2.4vw, 36px);
  border: 1px solid transparent;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 120, .13), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(120, 190, 255, .05), transparent 60%),
    linear-gradient(165deg, #1d1712 0%, #0f0c0a 55%, #0a0908 100%) padding-box,
    linear-gradient(140deg, rgba(255, 226, 170, .55), rgba(255, 226, 170, .06) 30%, rgba(255, 255, 255, .03) 60%, rgba(255, 196, 120, .4)) border-box;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 240, 210, .08); }
/* a light sweep crosses the card as it lands */
.uni-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 200, .12) 48%, rgba(255, 250, 235, .22) 50%, rgba(255, 236, 200, .12) 52%, transparent 65%); transform: translateX(-120%); }
.uni-card.live::after { animation: sweep 1.6s cubic-bezier(.6, 0, .2, 1) .1s both; }
@keyframes sweep { to { transform: translateX(120%); } }
.uc-num { position: absolute; right: -.04em; bottom: -.22em; font: 500 clamp(140px, 19vw, 300px)/1 var(--f-display); letter-spacing: -.06em; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 220, 160, .1), rgba(255, 220, 160, 0) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uc-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(10px, 1.6vh, 16px); border-bottom: 1px solid rgba(255, 232, 196, .1); font-size: 9.5px; color: #cdb48e; }
.uc-head b { font-weight: 500; color: #f6e2bd; letter-spacing: .2em; } .uc-head b i { font-style: normal; color: #6f6252; margin-left: 6px; }
.uc-body { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(14px, 2.4vw, 40px); align-items: center; min-height: 0; padding: clamp(10px, 2vh, 22px) 0; }
.uc-text { display: grid; gap: clamp(10px, 1.6vh, 18px); min-width: 0; }
.uc-text h3 { margin: 0; font: 500 clamp(28px, 3.5vw, 58px)/.95 var(--f-display); letter-spacing: -.025em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff8ec 20%, #e6c48a 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uc-text p { margin: 0; font-size: clamp(15px, 1.35vw, 22px); line-height: 1.25; color: #d9cbb5; max-width: 22ch; }
.uc-stage { position: relative; height: 100%; min-height: 0; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 55%, rgba(255, 190, 110, .16), transparent 70%), linear-gradient(rgba(255, 230, 190, .045) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 230, 190, .045) 1px, transparent 1px) 0 0 / 22px 22px, #0b0907;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 186, .1), inset 0 -40px 60px -30px rgba(0, 0, 0, .8); }
.uc-stage::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 120, .22), transparent 65%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.uc-art { position: relative; width: 88%; height: 88%; overflow: visible; fill: none; stroke: url(#ug); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.uc-foot { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: clamp(10px, 1.6vh, 16px); border-top: 1px solid rgba(255, 232, 196, .1); font-size: 9px; color: #eadbc2; }
.uc-foot span { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 226, 180, .16); background: rgba(255, 230, 190, .035); }
.uc-foot em { margin-left: auto; font-style: normal; color: #8d7a60; }
.uni-prog { position: absolute; left: 50%; top: 0; display: flex; align-items: center; gap: 14px; transform: translateX(-50%); font-size: 10px; color: #cdb48e; opacity: 0; will-change: transform, opacity; }
.uni-prog i { width: 180px; height: 1px; background: rgba(255, 226, 180, .18); overflow: hidden; }
.uni-prog s { display: block; height: 100%; background: linear-gradient(90deg, #f6d9a8, #ffb35c); transform-origin: 0 50%; transform: scaleX(0); }
.uc-art .blk, .uc-art .img, .uc-art .bar, .uc-art .node, .uc-art .pk, .uc-art rect[x="104"], .uc-art rect[x="204"] { fill: rgba(232, 182, 98, .16); }
.uc-art .node { fill: #7fe8ff; stroke: #bff4ff; }
.uc-art .trace { stroke: #7fe8ff; stroke-dasharray: 220; stroke-dashoffset: 220; }
.uni-card.live .trace { animation: draw 2.4s var(--ease) infinite; }
.uc-art .scan { stroke-width: 1; opacity: .6; animation: scanY 3s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { transform: translateY(-50px); } 50% { transform: translateY(70px); } }
.uc-art .line { stroke-dasharray: 260; stroke-dashoffset: 260; }
.uni-card.live .line { animation: draw 2.8s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 260; } 60%, 100% { stroke-dashoffset: 0; } }
.uc-art .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 2.2s var(--ease) infinite alternate; }
.uc-art .bar.d1 { animation-delay: .2s; } .uc-art .bar.d2 { animation-delay: .4s; } .uc-art .bar.d3 { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(1); } to { transform: scaleY(4.5); } }
.uc-art .slide { animation: slideUp 4s var(--ease) infinite; }
@keyframes slideUp { 0%, 20% { transform: translateY(0); } 50%, 70% { transform: translateY(-48px); } 100% { transform: translateY(0); } }
.uc-art .ping { animation: ping 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.uc-art .fan path { stroke-width: 1.4; opacity: .85; stroke-dasharray: 6 3; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -90; } }
.uc-art .cube { stroke-width: 1.6; fill: rgba(232, 182, 98, .2); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.uc-art .pk { animation: move 2.4s linear infinite; } .uc-art .pk.d1 { animation-delay: .8s; } .uc-art .pk.d2 { animation-delay: 1.6s; }
@keyframes move { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(180px); opacity: 0; } }
.uc-art .orb { stroke-width: 1; opacity: .5; stroke-dasharray: 4 6; animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.uc-art .orb.o2 { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.uc-art .pen { stroke-width: 3; stroke-dasharray: 300; animation: draw 3.2s var(--ease) infinite; }
@media (max-width: 900px) {
  .uni-card { padding: 16px; border-radius: 16px; }
  .uc-body { grid-template-columns: 1fr; }
  .uc-stage { display: none; }
  .uc-foot em, .uc-head span { display: none; }
  .nu-title b { font-size: 64px; }
  .node-ui .nu-title { top: 12vh; }
}

/* ================= II: the satellite ================= */
.sat-ui { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.sat-ui.on { opacity: 1; }
.sat-ui.on .hs { pointer-events: auto; }
.hs { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 0; background: none; color: var(--haze); cursor: pointer; will-change: transform; }
.hs i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); background: rgba(10, 16, 26, .35); backdrop-filter: blur(3px); }
.hs i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.hs i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); animation: ping 2.2s var(--ease) infinite; }
.hs span { position: absolute; left: 34px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; font-size: 9.5px; opacity: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.hs.right span { left: auto; right: 34px; }
.hs:hover i, .hs:focus-visible i { background: rgba(255, 184, 119, .35); border-color: var(--dawn); }
.hs:hover span, .hs:focus-visible span { opacity: 1; color: var(--dawn); transform: translate(0, -50%); }
.hs:focus-visible { outline: none; }
.sat-card { position: absolute; left: 0; top: 0; width: 310px; padding: 18px 20px 16px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(160deg, rgba(20, 28, 42, .82), rgba(8, 12, 20, .9)); border: 1px solid rgba(143, 208, 255, .25); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); will-change: transform; }
.sat-card.on { opacity: 1; }
.sat-card em { font-style: normal; color: var(--dawn); font-size: 9.5px; }
.sat-card b { display: block; margin: 8px 0 8px; font: 400 21px/1.15 var(--f-display); }
.sat-card p { margin: 0 0 12px; color: var(--dim); font-size: 13.5px; line-height: 1.5; font-weight: 300; }
.sat-card dl { margin: 0; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 9.5px; }
.sat-card dl div, .sat-spec div { display: flex; justify-content: space-between; gap: 12px; }
.sat-card dt, .sat-spec dt { color: var(--dim); } .sat-card dd, .sat-spec dd { margin: 0; color: var(--haze); text-align: right; }
.ch-sat { top: 50%; }
.sat-spec { margin: 0; display: grid; gap: 9px; max-width: 380px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; opacity: 0.001; }
@media (max-width: 900px) {
  .hs span { display: none; }
  .sat-card { width: calc(100vw - 32px); }
  .ch-sat { top: auto; bottom: 7vh; transform: none; }
  .ch-sat::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter) - 2vw); right: calc(-1 * var(--gutter)); top: -70px; bottom: -8vh; background: linear-gradient(rgba(4, 6, 10, 0), rgba(4, 6, 10, .82) 38%); }
  .ch-sat .body, .sat-spec div:nth-child(n+4) { display: none; }
}

/* ================= XIII: the galaxy ================= */
.ch-galaxy { top: 11vh; }
.ch-galaxy .eyebrow b { color: var(--dawn); }
.tag-sun .tag-body b { color: #ffd9a0; }
.tag-sun::before { border-color: #ffd9a0; }

/* ================= typewriter body copy ================= */
.tw { display: inline-block; white-space: nowrap; }
.tc { visibility: hidden; color: var(--dawn); }
.tc.on { visibility: visible; color: inherit; transition: color .6s var(--ease); }
.caret { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: -0.12em; }
.caret::after { content: ""; position: absolute; left: 2px; top: 0; width: 2px; height: 100%; background: var(--dawn); box-shadow: 0 0 8px rgba(255, 184, 119, .7); }
.typing .caret::after { animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* the core: a status pill that narrates each step */
.core-status { position: fixed; z-index: 7; left: 50%; bottom: 7vh; transform: translate(-50%, 12px); display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  font-size: 10.5px; color: #f3e6cf; background: rgba(20, 15, 10, .7); border: 1px solid rgba(255, 210, 150, .25); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s var(--ease), transform .6s var(--ease); pointer-events: none; }
.core-status.on { opacity: 1; transform: translate(-50%, 0); }
.core-status i { width: 7px; height: 7px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 10px #ffb35c; animation: ping 1.4s var(--ease) infinite; }
.core-status.ok { border-color: rgba(125, 255, 176, .35); }
.core-status.ok i { background: #7dffb0; box-shadow: 0 0 10px #7dffb0; }

/* ================= studio cards: live product mockups ================= */
.mk { position: relative; width: 86%; height: 82%; border-radius: 12px; overflow: hidden; font-family: var(--f-mono); color: #f3e6cf;
  background: linear-gradient(170deg, #1a1511, #0e0b09); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 226, 180, .14); }
.mk * { box-sizing: border-box; }
.uni-card:not(.live) .mk *, .uni-card:not(.live) .mk::before { animation-play-state: paused !important; }
/* websites */
.mk-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; background: rgba(255, 236, 205, .06); border-bottom: 1px solid rgba(255, 226, 180, .1); }
.mk-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 226, 180, .35); }
.mk-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 236, 205, .07); font-size: 7.5px; color: #cdb48e; letter-spacing: .08em; }
.mk-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding: 9% 8% 6%; align-items: center; }
.mk-img { aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(60% 60% at 30% 30%, #ffd59a, transparent 60%), radial-gradient(70% 70% at 80% 80%, #ff7a3a, transparent 60%), #3a2414; background-size: 160% 160%; animation: mkPan 6s ease-in-out infinite alternate; }
@keyframes mkPan { to { background-position: 100% 100%; } }
.mk-copy { display: grid; gap: 8px; }
.mk-copy b { height: 9px; border-radius: 4px; background: linear-gradient(90deg, #fff4e2, #e6c48a); width: 100%; }
.mk-copy b.s { width: 70%; opacity: .5; }
.mk-copy em { justify-self: start; margin-top: 6px; padding: 5px 10px; border-radius: 99px; background: #ff7a3a; color: #1a0d04; font: 600 7.5px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; animation: mkClick 4s var(--ease) infinite; }
@keyframes mkClick { 0%, 55% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 122, 58, .6); } 62% { transform: scale(.92); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 122, 58, 0); } 100% { transform: scale(1); } }
.mk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; padding: 0 8%; }
.mk-row span { height: 34px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 236, 205, .05), rgba(255, 236, 205, .12), rgba(255, 236, 205, .05)); background-size: 200% 100%; animation: mkShim 2.4s linear infinite; }
@keyframes mkShim { to { background-position: -200% 0; } }
.mk-cursor { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(-20deg); filter: drop-shadow(0 1px 2px #000); animation: mkCur 4s var(--ease) infinite; }
@keyframes mkCur { 0%, 100% { left: 84%; top: 88%; } 55%, 70% { left: 64%; top: 60%; } }
/* web apps */
.mk-app { display: grid; grid-template-columns: 28px 1fr; }
.mk-app aside { display: grid; align-content: start; gap: 10px; padding: 12px 8px; background: rgba(255, 236, 205, .04); border-right: 1px solid rgba(255, 226, 180, .08); }
.mk-app aside i { height: 10px; border-radius: 3px; background: rgba(255, 226, 180, .22); } .mk-app aside i:first-child { background: #ffb35c; }
.mk-main { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 10px; min-height: 0; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-kpis div { padding: 6px 7px; border-radius: 6px; background: rgba(255, 236, 205, .05); display: grid; gap: 2px; }
.mk-kpis small { font-size: 6.5px; color: #a8957c; letter-spacing: .08em; text-transform: uppercase; } .mk-kpis b { font: 500 11px/1 var(--f-display); color: #fff4e2; }
.mk-chart { width: 100%; height: 100%; min-height: 40px; }
.mk-chart .area { fill: url(#mkg); } .mk-chart .ln { fill: none; stroke: #ffbf73; stroke-width: 2; stroke-dasharray: 420; stroke-dashoffset: 420; animation: mkDraw 3.2s var(--ease) infinite; }
@keyframes mkDraw { 0% { stroke-dashoffset: 420; } 60%, 100% { stroke-dashoffset: 0; } }
.mk-tbl { display: grid; gap: 4px; } .mk-tbl span { height: 6px; border-radius: 3px; background: rgba(255, 236, 205, .08); } .mk-tbl span:nth-child(2) { width: 80%; } .mk-tbl span:nth-child(3) { width: 60%; }
/* mobile */
.mk-phone { width: auto; height: 92%; aspect-ratio: 9 / 18; border-radius: 22px; padding: 5px; background: linear-gradient(160deg, #2b231b, #120e0b); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 226, 180, .3); }
.mk-notch { position: absolute; z-index: 2; left: 50%; top: 9px; width: 34%; height: 9px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.mk-screen { position: relative; height: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #1e1813, #0d0a08); }
.mk-feed { display: grid; gap: 7px; padding: 26px 9px 0; animation: mkFeed 6s var(--ease) infinite; }
@keyframes mkFeed { 0%, 25% { transform: translateY(0); } 50%, 75% { transform: translateY(-34%); } 100% { transform: translateY(0); } }
.mk-pc { height: 52px; border-radius: 10px; background: radial-gradient(80% 90% at 20% 20%, rgba(255, 191, 115, .35), transparent 60%), rgba(255, 236, 205, .07); }
.mk-pc.b { height: 30px; background: rgba(255, 236, 205, .05); }
.mk-toast { position: absolute; left: 8px; right: 8px; top: 22px; padding: 7px 9px; border-radius: 10px; font-size: 7px; letter-spacing: .06em; color: #1a0d04; background: #ffd59a; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); animation: mkToast 6s var(--ease) infinite; }
@keyframes mkToast { 0%, 30% { transform: translateY(-160%); opacity: 0; } 38%, 62% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(-160%); opacity: 0; } }
.mk-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 0 11px; background: rgba(10, 8, 6, .85); border-top: 1px solid rgba(255, 226, 180, .1); }
.mk-tabs i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 226, 180, .25); } .mk-tabs i.on { background: #ffb35c; }
/* AI */
.mk-ai { display: grid; align-content: start; gap: 8px; padding: 12px; }
.mk-msg { max-width: 82%; padding: 7px 10px; border-radius: 10px; font-size: 7.5px; letter-spacing: .04em; }
.mk-msg.me { justify-self: end; background: #ff7a3a; color: #1a0d04; animation: mkIn 6s var(--ease) infinite; }
.mk-msg.bot { justify-self: start; display: grid; gap: 4px; width: 70%; background: rgba(255, 236, 205, .07); border: 1px solid rgba(255, 226, 180, .14); animation: mkIn2 6s var(--ease) infinite; }
.mk-msg.bot b { height: 5px; border-radius: 3px; background: rgba(255, 236, 205, .55); } .mk-msg.bot b.s { width: 80%; } .mk-msg.bot b.t { width: 55%; }
.mk-dots { display: flex; gap: 3px; padding: 6px 8px; justify-self: start; border-radius: 10px; background: rgba(255, 236, 205, .06); animation: mkDotsShow 6s steps(1) infinite; }
.mk-dots i { width: 4px; height: 4px; border-radius: 50%; background: #e6c48a; animation: mkDot 0.9s ease-in-out infinite; } .mk-dots i:nth-child(2) { animation-delay: .15s; } .mk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mkDot { 50% { transform: translateY(-3px); opacity: .4; } }
@keyframes mkDotsShow { 0%, 15% { opacity: 0; } 16%, 38% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes mkIn { 0%, 5% { opacity: 0; transform: translateY(6px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mkIn2 { 0%, 38% { opacity: 0; transform: translateY(6px); } 45%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mk-steps { display: grid; gap: 4px; font-size: 7px; color: #b8f5cf; letter-spacing: .06em; }
.mk-steps span { opacity: 0; animation: mkStep 6s var(--ease) infinite; } .mk-steps span:nth-child(2) { animation-delay: .35s; } .mk-steps span:nth-child(3) { animation-delay: .7s; }
@keyframes mkStep { 0%, 52% { opacity: 0; transform: translateX(-6px); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* cloud */
.mk-ops { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 12px; }
.mk-pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-pipe div { display: grid; gap: 5px; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; } .mk-pipe b { font-weight: 500; color: #e6c48a; }
.mk-pipe i { height: 4px; border-radius: 2px; background: rgba(255, 236, 205, .1); overflow: hidden; }
.mk-pipe s { display: block; height: 100%; background: linear-gradient(90deg, #ffb35c, #7dffb0); transform-origin: 0 50%; animation: mkFill 4.5s var(--ease) infinite; }
.mk-pipe div:nth-child(2) s { animation-delay: .6s; } .mk-pipe div:nth-child(3) s { animation-delay: 1.2s; }
@keyframes mkFill { 0% { transform: scaleX(0); } 35%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.mk-map { position: relative; border-radius: 8px; background: radial-gradient(rgba(255, 226, 180, .14) 1px, transparent 1.2px) 0 0 / 9px 9px, rgba(255, 236, 205, .03); }
.mk-map span { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 8px #7dffb0; }
.mk-map span::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(125, 255, 176, .6); animation: ping 2s var(--ease) infinite; }
.mk-map span:nth-child(2)::after { animation-delay: .4s; } .mk-map span:nth-child(3)::after { animation-delay: .8s; } .mk-map span:nth-child(4)::after { animation-delay: 1.2s; }
.mk-log { font-size: 7px; color: #b8f5cf; letter-spacing: .06em; }
/* brand */
.mk-brand { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 12px; }
.mk-sw { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-sw i { border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); animation: mkSw 4s var(--ease) infinite; }
.mk-sw i:nth-child(2) { animation-delay: .15s; } .mk-sw i:nth-child(3) { animation-delay: .3s; } .mk-sw i:nth-child(4) { animation-delay: .45s; }
@keyframes mkSw { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px); } }
.mk-type { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(255, 236, 205, .05); }
.mk-type b { font: 500 26px/1 var(--f-display); color: #fff4e2; } .mk-type span { font-size: 6.5px; line-height: 1.5; color: #a8957c; letter-spacing: .06em; }
.mk-mark { display: grid; place-items: center; border-radius: 8px; background: #ff5a1f; }
.mk-mark svg { width: 36%; fill: #1a0d04; animation: mkMark 4s var(--ease) infinite; }
@keyframes mkMark { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-8deg) scale(1.12); } }

/* ================= XIII: the constellation ================= */
.ch-cons { top: 50%; }
.ch-cons .eyebrow b { color: var(--dawn); }

/* ================= XIV: the solar system ================= */
.ch-solar { top: 9vh; }
.ch-solar .eyebrow b { color: var(--dawn); }
.pl-tags { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
.pl-tags.on { opacity: 1; }
.pl-tag { position: absolute; left: 0; top: 0; display: grid; gap: 3px; padding-left: 16px; transform-origin: 0 0; will-change: transform; }
.pl-tag i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255, 220, 170, .7); }
.pl-tag b { font-size: 9.5px; font-weight: 500; color: #f3e6cf; letter-spacing: .2em; margin-top: -18px; }
.pl-tag span { font-size: 8px; color: #8f8574; letter-spacing: .1em; }
.pl-tag.home b { color: var(--ion); } .pl-tag.home i { border-color: var(--ion); box-shadow: 0 0 10px var(--ion); }
/* credits: EARTH, signed */
.credit-by .sig { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: .01em; margin-left: .18em; }
.credit-by .sig .w > span { padding-right: .06em; background: linear-gradient(90deg, #ffe2b4, #ffb877 60%, #ff8a52); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .pl-tag span { display: none; } }

/* the solar system's copy sits on a soft dark pool so it reads over the orbits */
.ch-solar::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 150%; height: 230%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(3, 4, 7, .88), rgba(3, 4, 7, .6) 55%, rgba(3, 4, 7, 0)); pointer-events: none; }
.ch-solar .title, .ch-solar .body { text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
.ch-solar .body { color: #c3cbd6; }
/* the chapter rail is hidden for now */
.rail { display: none !important; }
