/* What it can reach, and what it can't (Dan, 2026-11-21). A live map: the
   Astrolabe mark in the middle, gold notes running out to the folders you
   point it at and back, a pulse that stops at the fence around your private
   folders, and a new service plugging in every few seconds from one plain
   sentence. Wires are drawn by reach.js from the chips' real positions, so
   the same map works wide or stacked. Tokens and color-mix only. */

.rm { grid-column: 1 / -1; margin-top: clamp(40px, 7vh, 90px); }
.rm-copy { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 0.7em; }
.rm-copy .room-head { grid-column: 1 / -1; text-align: center; margin: 0 0 0.6em; }
.rm-copy .room-line { margin: 0; }
.rm-copy .room-line b { display: block; margin-bottom: 0.25em; font: 600 var(--text-md)/1.25 var(--display); color: var(--lamp, var(--ink)); }

.rm-stage {
  position: relative; max-width: 1080px; margin: clamp(28px, 4vh, 48px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(130px, 14vw, 190px) minmax(0, 1fr);
  align-items: center; column-gap: clamp(36px, 6vw, 100px);
}
.rm-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.rm-wire { fill: none; stroke: color-mix(in oklab, var(--lamp, var(--kind-reference)) 38%, transparent); stroke-width: 1.4; }
.rm-wire.is-private { stroke: color-mix(in oklab, var(--kind-decision) 45%, transparent); stroke-dasharray: 3 5; }
.rm-wire.is-new { stroke: var(--pen); stroke-width: 1.8; }
.rm-dot { fill: var(--lamp, var(--kind-reference)); filter: drop-shadow(0 0 4px var(--lamp, var(--kind-reference))); }
.rm-dot.is-stopped { fill: var(--kind-decision); filter: drop-shadow(0 0 5px var(--kind-decision)); }

.rm-zone { position: relative; z-index: 1; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-xl, 22px); background: color-mix(in oklab, var(--paper) 70%, transparent); border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.rm-home { border-style: solid; }
.rm-world { border-style: dashed; border-color: color-mix(in oklab, var(--ink) 16%, transparent); }
.rm-label { margin: 0 0 0.9em; font: 600 0.75rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rm-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 16px 8px; }
/* each thing is its own icon, glowing softly in its own color; a note
   arriving makes it flare (Dan, 2026-11-21: icons that glow, not pills) */
.rm-ic { display: grid; justify-items: center; gap: 0.5em; text-align: center; }
.rm-ic svg { width: 30px; height: 30px; fill: var(--g); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--g) 55%, transparent)); transition: filter 500ms ease, transform 500ms ease; }
.rm-glyph svg { fill: none; stroke: color-mix(in oklab, var(--g) 85%, var(--ink)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rm-ic i { font: 500 var(--text-xs)/1.2 var(--body); font-style: normal; color: var(--ink-2); }
.rm-ic.is-hit svg { transform: scale(1.12); filter: drop-shadow(0 0 4px var(--g)) drop-shadow(0 0 16px color-mix(in oklab, var(--g) 80%, transparent)); }

.rm-private {
  position: relative; margin-top: 14px; display: flex; align-items: center; gap: 0.8em;
  padding: 0.75em 0.9em; border-radius: 14px;
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--kind-decision) 9%, transparent) 0 8px, transparent 8px 16px);
  border: 1.5px dashed color-mix(in oklab, var(--kind-decision) 55%, transparent);
}
.rm-private b { display: block; font: 600 var(--text-sm)/1.2 var(--body); color: var(--ink); }
.rm-private small { display: block; margin-top: 0.2em; font: var(--text-xs)/1.3 var(--body); color: var(--ink-3); }
.rm-lock { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--kind-decision) 22%, var(--paper)); }
.rm-lock svg { width: 1.2em; height: 1.2em; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.rm-private.is-knocked { animation: rm-knock 620ms ease; }
.rm-private.is-knocked .rm-lock { animation: rm-lock 620ms ease; }
@keyframes rm-knock { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--kind-decision) 25%, transparent), 0 0 26px -4px var(--kind-decision); } }
@keyframes rm-lock { 0%, 100% { rotate: 0deg; } 20% { rotate: -12deg; } 45% { rotate: 10deg; } 70% { rotate: -5deg; } }

.rm-hub { position: relative; z-index: 1; justify-self: center; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--lamp, var(--kind-reference)) 22%, transparent), transparent 75%); }
.rm-hub svg { width: 64%; height: auto; color: var(--ink); overflow: visible; }

.rm-new .rm-name { display: block; }
.rm-new.is-plugging { animation: rm-plug 700ms var(--ease-calm, ease); }
@keyframes rm-plug { 0% { opacity: 0; transform: translateX(18px) scale(0.9); } 60% { opacity: 1; transform: translateX(-3px) scale(1.04); } 100% { transform: none; } }
.rm-ask { margin: 0.9em 0 0; min-height: 1.4em; font: italic 500 var(--text-sm)/1.4 var(--display); color: var(--ink-2); }
.rm-said { opacity: 0; transition: opacity 300ms; }
.rm-done { margin-left: 0.4em; font: 600 var(--text-xs)/1 var(--body); font-style: normal; color: color-mix(in oklab, var(--kind-plan) 80%, var(--ink)); opacity: 0; transition: opacity 300ms; }
.rm-done::before { content: "\2713  "; }
.rm.is-asking .rm-said, .rm.is-connected .rm-said, .rm.is-connected .rm-done { opacity: 1; }

@media (max-width: 899.98px) {
  .rm-copy { grid-template-columns: 1fr; max-width: 34rem; row-gap: 1.1em; }
  .rm-stage { grid-template-columns: 1fr; row-gap: 44px; max-width: 30rem; }
  .rm-hub { width: 120px; }
  .rm-label { text-align: center; }
  .rm-chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-private, .rm-lock, .rm-new { animation: none !important; }
  .rm-said, .rm-done { opacity: 1; transition: none; }
}

/* The tools, and your files: one gold with the headings beside it, and the
   makers' own marks on their coins, as on the Place to B table */
.yours { --quiet-gold: var(--lamp); }
.engine-row { row-gap: 12px; }
.eng-c { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent); }
.engine-row .eng-c svg { width: 14px; height: 14px; }
.engine-row li.eng-more { flex-basis: 100%; }
.eng-stack { display: inline-flex; margin-right: 4px; }
.eng-stack .eng-c { margin-left: -5px; box-shadow: 0 0 0 2px var(--paper); }
.eng-stack .eng-c:first-child { margin-left: 0; }
.rm-new { transition: opacity 300ms ease; }
.rm.is-asking .rm-new { opacity: 0.2; }

/* the house above "What it can reach": open rooms, a locked one, services
   plugging in (Dan, 2026-11-21); its edges melt into the page */
.rm-art { margin: 0 auto clamp(8px, 2vw, 20px); width: min(100%, 820px); }
.rm-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse closest-side, var(--ink) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, var(--ink) 72%, transparent 100%); }
@media (max-width: 760px) { .rm-art { width: calc(100% + 24px); margin-left: -12px; } }
.rm-copy .room-head { margin-left: auto; margin-right: auto; max-width: none; text-align: center; }
