/* Reyna site — page-level styles only.
 *
 * The palette lives in theme.css and is NOT redefined here. It used to be: this
 * file carried its own :root, loaded after theme.css, so it silently won every
 * token and a theme change had no visible effect.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(182, 242, 92, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 8%, rgba(240, 194, 122, 0.1), transparent 50%),
    linear-gradient(165deg, var(--ink-2) 0%, var(--ink) 42%, var(--ink) 100%);
  background-attachment: fixed;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal-hot);
}

img {
  max-width: 100%;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
}

.brand span {
  color: var(--signal);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--fog);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-signal {
  background: var(--signal);
  color: var(--panel);
}

.btn-signal:hover {
  background: var(--signal-hot);
  color: var(--panel);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--signal-dim);
  color: var(--signal);
}

/* —— Landing hero (one composition) —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(10, 13, 12, 0.55) 78%, var(--ink) 100%),
    radial-gradient(circle at 70% 35%, rgba(182, 242, 92, 0.12), transparent 42%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 38px,
      rgba(238, 243, 234, 0.025) 38px,
      rgba(238, 243, 234, 0.025) 39px
    );
  pointer-events: none;
  animation: wash 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin: 0 0 1.1rem;
  color: var(--paper);
}

.hero-brand em {
  font-style: normal;
  color: var(--signal);
}

.hero-line {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--fog);
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-dim);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--fog);
  max-width: 36rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-row {
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature-row:nth-child(odd) {
  padding-right: 1.25rem;
}

@media (min-width: 720px) {
  .feature-row:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
  }
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-row p {
  margin: 0;
  color: var(--fog);
  font-size: 0.96rem;
}

.how-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  padding-top: 0.5rem;
  border-top: 2px solid var(--signal);
}

.how-step h3 {
  margin: 0.85rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.how-step p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--paper);
  font-family: var(--font-display);
}

/* —— Console —— */
.console {
  padding: 2rem 0 3.5rem;
}

.console-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.console-nav a {
  color: var(--fog);
  text-decoration: none;
}

.console-nav a.is-active,
.console-nav a:hover {
  color: var(--signal);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 1rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--signal);
}

.stat span {
  color: var(--fog);
  font-size: 0.82rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.chat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.chat-table th,
.chat-table td {
  text-align: left;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.chat-table th {
  color: var(--fog);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat-table a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.chat-table a:hover {
  color: var(--signal);
}

.muted {
  color: var(--fog);
  font-size: 0.88rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--paper);
  font: inherit;
}

.search-bar input:focus {
  outline: 1px solid var(--signal-dim);
}

.pager {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--fog);
}

/* —— Transcript —— */
.chat-head {
  margin-bottom: 1.25rem;
}

.chat-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52rem;
}

.bubble {
  max-width: min(100%, 38rem);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
  animation: rise 0.45s ease both;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}

.bubble.out {
  align-self: flex-end;
  background: rgba(182, 242, 92, 0.08);
  border-color: rgba(182, 242, 92, 0.28);
}

.bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--fog);
}

.empty {
  padding: 2rem 0;
  color: var(--fog);
}

/* --- operator sign-in (/boss) ------------------------------------------- */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 4rem 0 6rem;
}

.auth-card {
  width: min(100%, 26rem);
  padding: 2rem 1.9rem 1.6rem;
}

.auth-card h1 { font-size: 1.9rem; margin: .3rem 0 .6rem; }
.auth-lead { font-size: .92rem; margin: 0 0 1.5rem; }

.auth-form { display: grid; gap: 1rem; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: .3rem; }

.auth-error {
  border-left: 2px solid var(--danger);
  background: rgba(224, 122, 95, .1);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin-bottom: 1.1rem;
}
.auth-error p { margin: 0; font-size: .9rem; }

.field-error { color: var(--danger); font-size: .8rem; margin: .3rem 0 0; }

.auth-foot { font-size: .82rem; margin: 1.4rem 0 0; }

/* --- sign-in surfaces ---------------------------------------------------- */

.auth-split {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding: 3.5rem 0 5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.auth-pitch h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .7rem; }
.auth-lead { font-size: .95rem; max-width: 46ch; }

.auth-features { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.auth-features li {
  display: grid;
  gap: .15rem;
  padding-left: .9rem;
  border-left: 1px solid var(--line-strong);
}
.auth-features strong { font-size: .92rem; }
.auth-features span { font-size: .85rem; }

.auth-wrap { display: flex; justify-content: center; padding: 4rem 0 6rem; }
.auth-card { width: min(100%, 26rem); padding: 1.9rem 1.8rem 1.5rem; }
.auth-card h1 { font-size: 1.8rem; margin: .3rem 0 .6rem; }
.auth-card h2 { font-size: 1.35rem; margin: 0 0 1.2rem; }

.auth-form { display: grid; gap: 1rem; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: .3rem; }

.auth-error {
  border-left: 2px solid var(--danger);
  background: rgba(224, 122, 95, .1);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin-bottom: 1.1rem;
}
.auth-error p { margin: 0; font-size: .9rem; }

.auth-foot { font-size: .82rem; margin: 1.4rem 0 0; }

/* The admin door reads as a different, more serious surface. */
.boss-card { border-top: 2px solid var(--warm); }
.warn-text { color: var(--warm); }

.boss-panel { padding: 2.5rem 0 5rem; }
.boss-panel h2 { font-size: 1.15rem; margin: 2.2rem 0 .8rem; }
.boss-stats { margin-top: 1.5rem; }
.boss-foot { font-size: .85rem; margin-top: 2rem; }

/* --- admin panel --------------------------------------------------------- */

.boss { padding: 2.5rem 0 5rem; }

.boss-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}
.boss-header h1 { font-size: 1.9rem; margin: .2rem 0 .3rem; }
.boss-lead { margin: 0; font-size: .92rem; }

.boss-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.boss-tabs a {
  font-size: .86rem;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--fog);
  text-decoration: none;
}
.boss-tabs a:hover { color: var(--paper); background: rgba(232, 240, 228, .05); }
.boss-tabs a.on {
  color: var(--paper);
  border-color: var(--line-strong);
  background: var(--panel);
}

.boss-section { font-size: 1.05rem; margin: 2rem 0 .8rem; }
.boss-note { font-size: .84rem; margin-top: 1rem; max-width: 70ch; }

/* Problems come first and are stated as sentences, not codes. */
.boss-alerts { display: grid; gap: .7rem; margin-bottom: .5rem; }
.alert {
  border: 1px solid var(--line-strong);
  border-left-width: 2px;
  border-radius: var(--radius);
  padding: .8rem 1rem;
  background: var(--panel);
}
.alert div { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.alert-hint { margin: .35rem 0 0; font-size: .85rem; color: var(--fog); }
.alert-down { border-left-color: var(--danger); }
.alert-warn { border-left-color: var(--warm); }

.all-clear { color: var(--ok); font-size: .92rem; }

/* State reads from the dot as well as the text, so it survives a glance. */
.check-grid {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.check div { display: grid; gap: .1rem; min-width: 0; }
.check .muted { font-size: .82rem; }
.check-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  margin-top: .45rem;
  flex: none;
  background: var(--fog-dim);
}
.check-ok .check-dot { background: var(--ok); }
.check-warn .check-dot { background: var(--warm); }
.check-down .check-dot { background: var(--danger); }

.boss-split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .boss-split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 2.5rem; }
}

.acct-email { display: block; font-size: .8rem; }
.acct-actions { display: flex; gap: .8rem; justify-content: flex-end; }
.pw-row td { padding-top: 0; border-bottom: 1px solid var(--line); }
.pw-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pw-form label { margin: 0; font-size: .78rem; }
.pw-form input { max-width: 18rem; }

.mailbox-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.mailbox { display: grid; gap: .6rem; }
.mailbox-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.mailbox-head strong { word-break: break-all; }
.mailbox-host { font-size: .8rem; margin: 0; }

.meter {
  height: .4rem;
  border-radius: var(--radius);
  background: rgba(232, 240, 228, .08);
  overflow: hidden;
}
.meter-fill { display: block; height: 100%; background: var(--signal); }

.mailbox-usage { margin: 0; font-size: .86rem; display: flex; gap: .35rem; flex-wrap: wrap; }

.mailbox-facts { display: grid; gap: .3rem; margin: .3rem 0 0; }
.mailbox-facts > div { display: flex; justify-content: space-between; gap: 1rem; }
.mailbox-facts dt { font-size: .82rem; color: var(--fog); margin: 0; }
.mailbox-facts dd { margin: 0; font-size: .86rem; }

.mailbox-form { display: flex; gap: .5rem; align-items: center; margin-top: .3rem; }
.mailbox-form label { margin: 0; font-size: .78rem; white-space: nowrap; }
.mailbox-form input { max-width: 6rem; }

.flash-error { border-left-color: var(--danger); background: rgba(224, 122, 95, .1); }
.payload { font-size: .76rem; word-break: break-all; }

/* --- sign-up and approvals ----------------------------------------------- */

.signup-note { font-size: .85rem; margin: 0 0 1.2rem; }
/* A successful request is not an error, even though it reuses the callout. */
.auth-ok { border-left-color: var(--signal); background: var(--signal-wash); }
.auth-ok p { color: var(--paper); }

.approvals { margin-bottom: 2rem; }
.approval {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-left: 2px solid var(--warm);
}
.approval-who { display: grid; gap: .2rem; min-width: 0; }
.approval-who .muted { font-size: .82rem; }
.approval-reason {
  margin: .35rem 0 0;
  font-size: .85rem;
  padding-left: .8rem;
  border-left: 1px solid var(--line);
  max-width: 60ch;
}
.approval-actions { display: flex; gap: .6rem; }

/* --- brand mark ----------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand .mark { color: var(--signal); flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--paper);
}
.brand:hover .brand-word { color: var(--hazel); }

/* The core is the only moving part of the mark — a heartbeat, not a spinner. */
.mark-core { transform-origin: 16px 16px; animation: corePulse 2.8s var(--ease) infinite; }
@keyframes corePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.78); }
}

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

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 4.5rem 0 4rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; padding: 6rem 0 5rem; }
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: .5rem 0 1rem;
  text-wrap: balance;
}
.hero-line em {
  font-style: normal;
  background: linear-gradient(100deg, var(--hazel), var(--signal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { font-size: 1.02rem; color: var(--fog); max-width: 52ch; margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-facts > div { display: grid; gap: .2rem; }
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.hero-facts dd { margin: 0; font-size: .95rem; color: var(--paper); }

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

.hero-viz { position: relative; display: grid; gap: 1.2rem; justify-items: center; }
.hero-viz svg { width: min(100%, 340px); height: auto; }

/* Gradient stops must be styled here: custom properties do not resolve in the
   SVG `stop-color` presentation attribute, and the whole gradient paints
   nothing when they fail — which is invisible rather than broken-looking. */
#thread .stop-a { stop-color: var(--hazel); stop-opacity: .95; }
#thread .stop-b { stop-color: var(--signal); stop-opacity: .95; }

.viz-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
/* Rings drift at different speeds so the composition breathes without spinning
   like a loader. Dashes make the motion legible at all. */
.r1 { stroke-dasharray: 3 9; animation: spin 46s linear infinite; transform-origin: 160px 160px; }
.r2 { stroke-dasharray: 2 14; animation: spin 32s linear infinite reverse; transform-origin: 160px 160px; }
.r3 { stroke: var(--hazel); opacity: .28; }

.viz-thread {
  stroke: url(#thread);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw 1.1s var(--ease) forwards;
}
.viz-thread.d1 { animation-delay: .55s; }
.viz-thread.d2 { animation-delay: .75s; }
.viz-thread.d3 { animation-delay: .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.node { fill: var(--hazel); opacity: 0; animation: pop .5s var(--ease) forwards; }
.n1 { animation-delay: .3s; }
.n2 { animation-delay: 1.3s; }
.n3 { animation-delay: 1.5s; }
.n4 { animation-delay: 1.7s; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

.viz-core { fill: var(--panel); stroke: var(--signal); stroke-width: 1.5; }
.viz-dot { fill: var(--signal); }
/* One expanding ring: the agent thinking, sent outward on each beat. */
.viz-pulse {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  transform-origin: 160px 160px;
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.viz-legend .k { color: var(--signal); margin-right: .35rem; }

@media (prefers-reduced-motion: reduce) {
  /* The graphic still draws, it just arrives complete. */
  .mark-core, .r1, .r2, .viz-pulse { animation: none; }
  .viz-thread { stroke-dashoffset: 0; animation: none; }
  .node { opacity: 1; animation: none; }
}
