/* Resolution Network — design system v1
   Iron rule: nothing on this surface is simulated. Motion is caused by data. */

:root {
  --void: #07070c;
  --panel: #0d0e16;
  --panel-2: #12131e;
  --line: rgba(148, 163, 184, 0.14);
  --line-soft: rgba(148, 163, 184, 0.08);
  --text: #e8eaf2;
  --text-dim: #9aa1b5;
  --text-faint: #676e82;
  --accent: #e8eaf2;
  --accent-soft: rgba(232, 234, 242, 0.1);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --lift-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- elevation: tonal at rest, a soft lift on hover/focus ---------- */
a, button, .resolver-card, .const-card.live, .panel, input, textarea {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
}
:focus-visible {
  outline: 2px solid var(--accent, var(--text)); outline-offset: 2px; border-radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(14, 165, 233, 0.35); }
img { max-width: 100%; }
a { color: inherit; }

/* ---------- atmosphere ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(14, 165, 233, 0.07), transparent 62%),
    radial-gradient(900px 620px at 8% 108%, rgba(6, 182, 212, 0.05), transparent 60%),
    var(--void);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 380px at 50% 40%, rgba(232, 234, 242, 0.028), transparent 70%);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- structure ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
.section-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-sub { color: var(--text-dim); max-width: 640px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 12, 0.78); border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 28px;
}
.nav-mark { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--void); background: var(--text); padding: 8px 16px;
  border-radius: 999px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #fff; color: var(--void); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- aperture mark ---------- */
.aperture { width: 22px; height: 22px; border-radius: 50%; position: relative; flex: none;
  border: 2px solid var(--text);
}
.aperture::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: var(--text);
}
.aperture.lg { width: 120px; height: 120px; border-width: 2px; opacity: 0.9; }
.aperture.lg::after { inset: 46px; }
.aperture.accent { border-color: var(--accent); }
.aperture.accent::after { background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 110px 0 72px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 820px;
}
.hero .lede { margin-top: 22px; max-width: 660px; color: var(--text-dim); font-size: 18px; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); transition: all 0.2s;
}
.btn:hover, .btn:focus-visible { border-color: var(--text-dim); transform: translateY(-2px); box-shadow: var(--lift-shadow); }
.btn.primary { background: var(--text); color: var(--void); border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.hero-phrase {
  margin-top: 46px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase;
}

/* ---------- truth strip (live counts) ---------- */
.truth-strip {
  margin-top: 54px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(13, 14, 22, 0.6));
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.truth-cell { padding: 22px 24px; border-right: 1px solid var(--line-soft); }
.truth-cell:last-child { border-right: none; }
.truth-num { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.truth-label { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.truth-note { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding: 12px 24px; font-size: 12.5px; color: var(--text-faint); }
.truth-note a { color: var(--text-dim); }
@media (max-width: 820px) { .truth-strip { grid-template-columns: repeat(2, 1fr); } .truth-cell:nth-child(2n) { border-right: none; } }

/* ---------- resolver cards ---------- */
.resolver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 44px; }
.resolver-card {
  --accent: var(--text); --accent-soft: rgba(232,234,242,0.08);
  position: relative; display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 26px; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.resolver-card:hover, .resolver-card:focus-visible { transform: translateY(-4px); box-shadow: var(--lift-shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.resolver-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 85% -20%, var(--accent-soft), transparent 70%);
}
.rc-orb-field { position: relative; height: 150px; display: grid; place-items: center; margin: -6px -6px 4px; }
.rc-orb { width: 108px; height: 108px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--accent) 92%, #fff) 0%, var(--accent) 34%,
    color-mix(in srgb, var(--accent) 35%, #06070b) 70%, #06070b 100%);
  box-shadow: 0 0 60px var(--accent-soft); animation: orb-breathe 7s ease-in-out infinite; }
.rc-orb::after { content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
@keyframes orb-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
.rc-head { display: flex; align-items: center; gap: 12px; position: relative; }
.rc-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }
.rc-desig { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; }
.rc-role { position: relative; margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.rc-domain { position: relative; margin-top: 12px; color: var(--text-dim); font-size: 14.5px; min-height: 44px; }
.rc-stats { position: relative; display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.rc-stat { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.rc-stat b { color: var(--text); font-weight: 600; }
.status-pill {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-dim);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.status-pill.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.status-pill.active .status-dot { background: var(--accent); animation: pulse-dot 2.4s ease-in-out infinite; }
.status-pill.commissioning .status-dot { background: #eab308; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- panels / generic ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step-num { font-family: var(--font-mono); color: var(--text-faint); font-size: 13px; letter-spacing: 0.16em; }
.panel h3 { font-family: var(--font-display); font-size: 18px; margin: 10px 0 8px; }
.panel p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- pulse (live feed) ---------- */
.pulse-line {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-mono);
  font-size: 13.5px; color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 20px; background: var(--panel);
}
.pulse-beacon { width: 9px; height: 9px; border-radius: 50%; background: #eab308; flex: none; }
.pulse-beacon.live { background: #22c55e; animation: pulse-dot 2s ease-in-out infinite; }
.pulse-feed { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.pulse-row {
  display: grid; grid-template-columns: 168px 110px 1fr; gap: 14px;
  padding: 11px 6px; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px; align-items: baseline;
}
.pulse-ts { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.pulse-who { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.pulse-what { color: var(--text-dim); }
@media (max-width: 720px) { .pulse-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- ledger (org constellation) ---------- */
.ledger-band { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ledger-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0.85; }
.method-row { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.method-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); width: 200px; flex: none; }
.method-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); width: 34px; text-align: right; flex: none; }
.method-bar { height: 8px; border-radius: 4px; background: var(--accent); opacity: 0.85; min-width: 3px; }
@media (max-width: 640px) { .method-name { width: 130px; } }

/* ---------- follow ---------- */
.follow-box { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 34px; }
.follow-box h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.follow-box p { color: var(--text-dim); font-size: 14.5px; max-width: 520px; }
.follow-form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.follow-form input[type="email"] {
  flex: 1; min-width: 240px; background: var(--void); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 20px; color: var(--text); font-size: 15px;
  font-family: var(--font-body); outline: none; transition: border-color 0.2s;
}
.follow-form input[type="email"]:focus { border-color: var(--accent); }
.follow-form button {
  background: var(--text); color: var(--void); border: none; border-radius: 999px;
  padding: 12px 24px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--font-body);
}
.follow-form button:hover { background: #fff; }
.follow-fine { margin-top: 12px; font-size: 12px; color: var(--text-faint); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
table.ledger th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint); padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
table.ledger td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); }
table.ledger td:first-child { color: var(--text); font-weight: 500; }
table.ledger a { color: var(--text-dim); }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 44px 0 60px; margin-top: 40px; }
.foot { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; color: var(--text-faint); font-size: 13px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .spacer { flex: 1; }

/* ---------- resolver page ---------- */
.resolver-hero { padding: 90px 0 50px; }
.resolver-hero .rc-desig { margin-left: 0; }
.resolver-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: 0.02em; line-height: 1.05; }
.resolver-hero .role { color: var(--accent); font-weight: 700; font-size: 19px; margin-top: 8px; }
.resolver-hero .mission { margin-top: 20px; color: var(--text-dim); font-size: 17px; max-width: 680px; }
.first-q {
  margin-top: 30px; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px;
  color: var(--text); font-size: 16.5px; font-style: italic; max-width: 640px;
}
.watch-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 30px; }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 16px 18px; }
.stat-tile .n { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }
.stat-tile .l { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ---------- prose (protocol) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-display); font-size: 18px; margin: 30px 0 8px; }
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.prose li { color: var(--text-dim); margin: 0 0 10px 20px; }
.prose strong { color: var(--text); }
.prose .principle { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 18px 22px; margin-bottom: 12px; }
.prose .principle b { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- thinking orbs (assets/orbs.js) ---------- */
.rc-orb-canvas { display: block; width: 132px; height: 132px; }
