/* ============================================================
   dreamborn.ai — Main Stylesheet
   Import tokens first, then component styles.
   ============================================================ */

@import url('/css/tokens.css');

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ─── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
}

.nav__mark-svg {
  width: 32px;
  height: 32px;
}

.nav__logo-img {
  width: 168px;
  height: auto;
  object-fit: contain;
}

.nav__logo-img--light {
  display: none;
}

[data-register="forge"] .nav__logo-img--dark {
  display: none;
}

[data-register="forge"] .nav__logo-img--light {
  display: block;
}

.nav__wordmark {
  font-family: var(--font-brand-heading);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

[data-register="forge"] .nav {
  background: rgba(10, 8, 7, 0.94);
  backdrop-filter: blur(10px);
}

[data-register="forge"] .nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
}

[data-register="forge"] .nav__cta {
  color: var(--color-status-active) !important;
  border-color: rgba(141, 198, 63, 0.35);
}

[data-register="forge"] .nav__cta:hover {
  background: rgba(141, 198, 63, 0.1) !important;
  color: var(--color-text-primary) !important;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-text-primary);
}

.nav__cta {
  font-size: var(--text-body-sm) !important;
  font-weight: 600 !important;
  color: var(--color-crimson) !important;
  border: 1px solid var(--color-crimson);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-base), color var(--transition-base) !important;
}

.nav__cta:hover {
  background: var(--color-crimson) !important;
  color: #fff !important;
}

/* ─── Page Wrapper ──────────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--nav-height);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0;
  margin-top: var(--space-20);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__copy {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__links a:hover { color: var(--color-text-primary); }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: var(--space-20) 0 var(--space-16);
}

.hero__eyebrow {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-chain);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.hero__h1 {
  font-size: var(--text-h1);
  line-height: 1;
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
}

.hero-subhead {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-8);
  transition: opacity var(--transition-slow);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), opacity var(--transition-base);
}

.btn--primary {
  background: var(--color-crimson);
  color: #fff;
}

.btn--primary:hover { background: var(--color-crimson-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn--outline:hover {
  border-color: var(--color-text-primary);
}

[data-register="forge"] .btn--outline {
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.01);
}

[data-register="forge"] .btn--primary {
  background: var(--color-status-active);
  color: #101406;
}

[data-register="forge"] .btn--primary:hover {
  background: #a3dc55;
}

.btn--inverted {
  background: #fff;
  color: var(--color-crimson);
  border: 1px solid #fff;
}

.btn--inverted:hover { background: rgba(255,255,255,0.9); }

/* ─── Agent Status Bar ──────────────────────────────────────── */
.agent-status-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.agent-status-bar__label {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.agent-status-bar__scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.agent-status-bar__scroll::-webkit-scrollbar {
  height: 4px;
}
.agent-status-bar__scroll::-webkit-scrollbar-track { background: transparent; }
.agent-status-bar__scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* ─── Agent Cards ───────────────────────────────────────────── */
.agent-card {
  flex: 0 0 220px;
  width: 220px;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--transition-base);
}

.agent-card:hover { border-color: var(--color-border-strong); }

.agent-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.agent-card__name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.status-dot--active  { background: var(--color-status-active); }
.status-dot--idle    { background: var(--color-status-idle); }
.status-dot--offline { background: var(--color-status-offline); }

.agent-card__name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.status-label {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-label--active  { color: var(--color-status-active); }
.status-label--idle    { color: var(--color-status-idle); }
.status-label--offline { color: var(--color-status-offline); }

.agent-action {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-1);
  transition: opacity var(--transition-slow);
}

.agent-time {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* ─── Section Headings ──────────────────────────────────────── */
.section {
  padding: var(--space-16) 0;
}

.section__label {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-chain);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

/* ─── Public Operating Surface ─────────────────────────────── */
.ops-home {
  --ops-green: #8DC63F;
  --ops-crimson: #C03535;
  --ops-amber: #C9963A;
  --ops-blue: #7FA7B8;
  --ops-stone: #A99A81;
  --ops-section-accent: var(--ops-green);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--color-bg);
  background-size: 48px 48px;
}

.ops-hero {
  width: min(1520px, calc(100vw - 48px));
  min-height: calc(100vh - var(--nav-height));
  margin: 0 auto;
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: minmax(470px, 1.04fr) minmax(520px, 0.96fr);
  gap: 32px;
  align-items: stretch;
}

.ops-hero__copy,
.ops-feed-shell,
.ops-section,
.ops-dispatch,
.ops-close {
  border: 1px solid var(--color-border);
  background: rgba(16, 13, 12, 0.86);
}

.ops-hero__copy {
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ops-kicker,
.ops-panel-label,
.ops-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ops-section-accent);
}

.ops-hero__copy {
  --ops-section-accent: var(--ops-green);
}

.ops-feed-shell {
  --ops-section-accent: var(--ops-green);
}

.ops-work-section {
  --ops-section-accent: var(--ops-crimson);
}

.ops-ledger-section {
  --ops-section-accent: var(--ops-amber);
}

.ops-agent-section {
  --ops-section-accent: var(--ops-blue);
}

.ops-dispatch {
  --ops-section-accent: var(--ops-stone);
}

.ops-kicker,
.ops-panel-label {
  margin-bottom: 14px;
}

.ops-hero__title {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(54px, 6.2vw, 94px);
  line-height: 0.94;
  font-weight: 600;
}

.ops-hero__subhead {
  max-width: 640px;
  color: var(--color-text-secondary);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.ops-proof {
  margin: 38px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
}

.ops-proof__item {
  min-height: 86px;
  padding: 16px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ops-proof__item:nth-child(2n) {
  border-right: 0;
}

.ops-proof__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ops-proof__item span,
.ops-card-meta dt,
.ops-ledger-row time,
.ops-ledger-row code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.ops-proof__item strong {
  font-family: var(--font-mono);
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 500;
}

.ops-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ops-live-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(141, 198, 63, 0.1);
  border: 1px solid rgba(141, 198, 63, 0.38);
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ops-live-link span:first-child {
  color: var(--color-status-active);
}

.ops-feed-shell {
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.ops-feed-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.ops-feed-shell h2,
.ops-section h2,
.ops-dispatch h2,
.ops-close h2 {
  margin: 0;
  color: var(--color-text-primary);
}

.ops-feed-shell h2 {
  font-size: 18px;
}

.ops-live-badge {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid rgba(141, 198, 63, 0.28);
  color: var(--ops-section-accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ops-system-state {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ops-feed {
  min-height: 0;
  max-height: calc(100vh - 238px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-color: var(--color-border-strong) transparent;
}

.ops-feed-row {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 82px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 11px 10px;
  border: 1px solid rgba(255,255,255,0.035);
  background: rgba(255,255,255,0.018);
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
}

.ops-feed-row:disabled {
  cursor: default;
}

.ops-feed-row:hover:not(:disabled),
.ops-feed-row:focus-visible {
  border-color: var(--color-border-strong);
  background: rgba(255,255,255,0.04);
  outline: none;
}

.ops-feed-row time,
.ops-feed-row__agent {
  font-family: var(--font-mono);
  font-size: 11px;
}

.ops-feed-row time {
  color: var(--color-text-muted);
}

.ops-feed-row__agent {
  color: var(--color-text-primary);
}

.ops-feed-row__body {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ops-feed-row__body strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.ops-feed-row--blocked {
  border-color: rgba(192, 53, 53, 0.34);
}

.ops-feed-row--blocked .ops-feed-row__agent,
.ops-work-card--blocked .ops-card-status {
  color: #F0A8A4;
}

.ops-feed__empty,
.ops-ledger__empty {
  padding: 18px;
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ops-section,
.ops-dispatch,
.ops-close {
  width: min(1520px, calc(100vw - 48px));
  margin: 24px auto 0;
  padding: clamp(22px, 3vw, 36px);
}

.ops-section__intro {
  max-width: 720px;
  margin-bottom: 22px;
}

.ops-section__intro h2,
.ops-ledger-copy h2,
.ops-dispatch h2,
.ops-close h2 {
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1;
}

.ops-section__intro p,
.ops-dispatch p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.ops-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-work-card {
  min-height: 312px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.018);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ops-work-card--selected {
  border-color: var(--color-status-active);
  background: rgba(141, 198, 63, 0.08);
  transform: translateY(-2px);
}

.ops-work-card__topline,
.ops-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-card-status {
  padding: 3px 6px;
  border: 1px solid currentColor;
  color: var(--ops-section-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-work-card--pending .ops-card-status,
.ops-work-card--active .ops-card-status {
  color: #C9963A;
}

.ops-card-title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.ops-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-card-meta dd {
  margin-top: 3px;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ops-card-preview {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.ops-card-output {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.ops-card-output summary {
  cursor: pointer;
  color: var(--ops-section-accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ops-card-output pre {
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

.ops-ledger-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
}

.ops-ledger {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.ops-ledger-row {
  display: grid;
  grid-template-columns: 86px 92px 110px 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ops-ledger-row:last-child {
  border-bottom: 0;
}

.ops-ledger-row strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.ops-agent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.ops-agent-card {
  width: 100%;
  min-height: 128px;
  padding: 13px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.018);
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ops-agent-card:hover,
.ops-agent-card:focus-visible,
.ops-agent-card--selected {
  border-color: color-mix(in srgb, var(--ops-section-accent) 45%, var(--color-border));
  background: color-mix(in srgb, var(--ops-section-accent) 7%, rgba(255,255,255,0.018));
  outline: none;
}

.ops-agent-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.ops-agent-card p,
.ops-agent-card small {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}

.ops-agent-card span {
  width: max-content;
  padding: 3px 6px;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.ops-agent-card--working span,
.ops-agent-card--running span,
.ops-agent-card--active span {
  color: var(--color-status-active);
  border-color: rgba(141, 198, 63, 0.35);
}

.ops-agent-card--blocked span,
.ops-agent-card--error span {
  color: #F0A8A4;
  border-color: rgba(192, 53, 53, 0.34);
}

.ops-persona-panel {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--ops-section-accent) 38%, var(--color-border));
  background: rgba(255,255,255,0.024);
}

.ops-persona-panel[hidden] {
  display: none;
}

.ops-persona-panel__topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ops-persona-panel__topline span,
.ops-persona-panel small {
  color: var(--ops-section-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.ops-persona-panel h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.ops-persona-panel p {
  max-width: 920px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.ops-persona-panel small {
  display: block;
  margin-top: 14px;
  color: var(--color-text-muted);
  text-transform: none;
}

.ops-dispatch,
.ops-close {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ops-dispatch {
  border-color: color-mix(in srgb, var(--ops-section-accent) 32%, var(--color-border));
}

.ops-read-link {
  width: max-content;
  margin-top: 22px;
  color: var(--ops-section-accent);
  font-family: var(--font-mono);
  text-decoration: none;
}

.ops-close {
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 24px;
}

.live-room {
  --ops-green: #8DC63F;
  --ops-crimson: #C03535;
  --ops-amber: #C9963A;
  --ops-blue: #7FA7B8;
  --ops-section-accent: var(--ops-green);
  min-height: calc(100vh - var(--nav-height));
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--color-bg);
  background-size: 48px 48px;
}

.live-room__header,
.live-room__metrics,
.live-agent-strip,
.live-panel {
  border: 1px solid var(--color-border);
  background: rgba(16, 13, 12, 0.88);
}

.live-room__header {
  min-height: 112px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.live-room__header h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.92;
}

.live-room__status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.live-room__metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(120px, 1fr));
}

.live-room__metrics div {
  min-height: 72px;
  padding: 14px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-room__metrics div:last-child {
  border-right: 0;
}

.live-room__metrics span,
.live-agent-strip__header span,
.live-panel__header span,
.live-wire-row__index {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.live-room__metrics strong {
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}

.live-agent-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 108px;
}

.live-agent-strip__header {
  padding: 14px 16px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-agent-strip__header h2 {
  margin: 0;
  font-size: 20px;
}

.live-agent-strip {
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 202px;
}

.live-fleet {
  min-width: 0;
  padding: 12px;
}

.live-fleet__stage {
  margin-bottom: 14px;
}

.fleet-stage-label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fleet-stage-label--live {
  color: var(--ops-green);
}

.fleet-stage-label--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ops-green);
  animation: live-dot-pulse 1.5s ease-in-out infinite;
}

.fleet-stage,
.fleet-bench {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-color: var(--color-border-strong) transparent;
}

.fleet-stage {
  padding-bottom: 2px;
}

.fleet-bench {
  flex-wrap: wrap;
  gap: 6px;
  max-height: 68px;
  overflow-y: auto;
}

.fleet-scard {
  flex: 0 0 210px;
  min-height: 128px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.045);
  background: rgba(255,255,255,0.018);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.fleet-scard:disabled,
.fleet-chip:disabled {
  cursor: default;
}

.fleet-scard:hover:not(:disabled),
.fleet-scard:focus-visible,
.fleet-chip:hover:not(:disabled),
.fleet-chip:focus-visible {
  border-color: rgba(141, 198, 63, 0.42);
  background: rgba(141, 198, 63, 0.06);
  outline: none;
}

.fleet-scard--working {
  border-color: rgba(141, 198, 63, 0.32);
  box-shadow: 0 0 18px rgba(141, 198, 63, 0.06);
}

.fleet-scard--blocked {
  border-color: rgba(192, 53, 53, 0.42);
  box-shadow: 0 0 16px rgba(192, 53, 53, 0.08);
}

.fleet-scard--verification {
  border-color: rgba(201, 150, 58, 0.38);
  box-shadow: 0 0 16px rgba(201, 150, 58, 0.07);
}

.fleet-scard__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.fleet-scard__avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--fleet-color) 16%, transparent);
  color: var(--fleet-color);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.fleet-scard__name {
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.fleet-scard__role {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.fleet-scard__bar {
  height: 2px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--color-border);
}

.fleet-scard__fill {
  height: 100%;
  border-radius: 1px;
}

.fleet-scard__fill--working {
  background: var(--ops-green);
  animation: live-fleet-fill 2s ease-in-out infinite;
}

.fleet-scard__fill--blocked {
  background: var(--ops-crimson);
}

.fleet-scard__fill--verification {
  background: var(--ops-amber);
  animation: live-fleet-fill 2.6s ease-in-out infinite;
}

.fleet-scard__task {
  min-height: 38px;
  padding-left: 8px;
  border-left: 2px solid rgba(141, 198, 63, 0.3);
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fleet-scard--blocked .fleet-scard__task {
  border-left-color: rgba(192, 53, 53, 0.46);
  color: #F0A8A4;
}

.fleet-scard__elapsed {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.fleet-chip {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.045);
  background: rgba(255,255,255,0.018);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.72;
}

.fleet-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--fleet-color);
}

.fleet-chip__name {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.live-room__grid {
  height: min(670px, calc(100vh - 406px));
  min-height: 560px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1fr) minmax(340px, 0.82fr);
  gap: 12px;
}

.live-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-panel__header {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.live-panel__header h2 {
  margin: 0;
  font-size: 20px;
}

.live-wire,
.live-receipts,
.live-inspector,
.live-ledger {
  min-height: 0;
  overflow: auto;
  scrollbar-color: var(--color-border-strong) transparent;
}

.live-wire,
.live-receipts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
}

.live-wire {
  position: relative;
}

.live-wire__signal {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 34px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(141, 198, 63, 0.36), transparent);
  overflow: hidden;
}

.live-wire__signal span {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(141, 198, 63, 0.95), transparent);
  filter: drop-shadow(0 0 9px rgba(141, 198, 63, 0.55));
  animation: live-wire-travel 4.8s linear infinite;
}

.live-wire__signal span:nth-child(2) {
  animation-delay: 1.45s;
}

.live-wire__signal span:nth-child(3) {
  animation-delay: 3.1s;
}

.live-wire-row,
.live-receipt {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.045);
  background: rgba(255,255,255,0.018);
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
}

.live-wire-row:hover:not(:disabled),
.live-wire-row:focus-visible,
.live-wire-row.is-selected,
.live-receipt:hover,
.live-receipt:focus-visible,
.live-receipt.is-selected {
  border-color: rgba(141, 198, 63, 0.42);
  background: rgba(141, 198, 63, 0.07);
  outline: none;
}

.live-wire-row {
  display: grid;
  grid-template-columns: 28px 86px 78px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px;
  position: relative;
}

.live-wire-row__pulse {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(141, 198, 63, 0.74);
  border-radius: 999px;
  background: #0f0b0a;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.3);
  animation: live-node-pulse 2.8s ease-out infinite;
  z-index: 1;
}

.live-wire-row:nth-of-type(3n) .live-wire-row__pulse {
  animation-delay: 0.6s;
}

.live-wire-row:nth-of-type(4n) .live-wire-row__pulse {
  animation-delay: 1.2s;
}

.live-wire-row:nth-of-type(5n) .live-wire-row__pulse {
  animation-delay: 1.8s;
}

.live-wire-row time,
.live-wire-row strong,
.live-wire-row em {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

.live-wire-row time {
  color: var(--color-text-muted);
}

.live-wire-row strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.live-wire-row span:not(.live-wire-row__index) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.live-wire-row em {
  grid-column: 4;
  color: var(--ops-green);
}

.live-wire-row--blocked,
.live-wire-row--error {
  border-color: rgba(192, 53, 53, 0.34);
}

.live-wire-row--blocked .live-wire-row__pulse,
.live-wire-row--error .live-wire-row__pulse {
  border-color: rgba(240, 168, 164, 0.84);
  animation-name: live-node-pulse-red;
}

.live-wire-row--blocked em,
.live-wire-row--error em {
  color: #F0A8A4;
}

.live-receipt {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-receipt__top,
.live-receipt__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.live-receipt__top span,
.live-receipt__top strong,
.live-receipt__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.live-receipt__top span {
  color: var(--ops-blue);
}

.live-receipt__top strong {
  padding: 3px 6px;
  border: 1px solid currentColor;
  color: var(--ops-green);
  font-weight: 500;
}

.live-receipt__title {
  color: var(--color-text-primary);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}

.live-receipt__meta {
  color: var(--color-text-muted);
}

.live-inspector {
  padding: 16px;
}

.live-network {
  min-height: 260px;
  padding: 14px;
  border-bottom: 1px solid var(--color-border);
}

.wire-map {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  background:
    radial-gradient(circle at 70% 50%, rgba(141, 198, 63, 0.08), transparent 90px),
    rgba(255,255,255,0.014);
}

.wire-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wire-map__line {
  fill: none;
  stroke: rgba(141, 198, 63, 0.22);
  stroke-width: 1.2;
  filter: url(#wireGlow);
}

.wire-map__line--blocked {
  stroke: rgba(240, 168, 164, 0.32);
}

.wire-map__line--verification {
  stroke: rgba(201, 150, 58, 0.32);
}

.wire-map__packet {
  fill: var(--ops-green);
  filter: drop-shadow(0 0 9px rgba(141, 198, 63, 0.7));
}

.wire-map__engine {
  position: absolute;
  top: 50%;
  right: 44px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(141, 198, 63, 0.42);
  background: rgba(10, 8, 7, 0.92);
  border-radius: 999px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 24px rgba(141, 198, 63, 0.12), inset 0 0 18px rgba(141, 198, 63, 0.05);
  animation: live-engine-glow 3s ease-in-out infinite;
}

.wire-map__engine strong,
.wire-map__engine span,
.wire-map__node strong,
.wire-map__node span,
.live-inspector-label span {
  font-family: var(--font-mono);
}

.wire-map__engine strong {
  color: var(--color-text-primary);
  font-size: 12px;
}

.wire-map__engine span {
  margin-top: 4px;
  color: var(--ops-green);
  font-size: 9px;
  text-transform: uppercase;
}

.wire-map__node {
  position: absolute;
  left: 14px;
  top: var(--node-y);
  width: 118px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.055);
  background: rgba(10, 8, 7, 0.82);
  transform: translateY(-50%);
}

.wire-map__node--working {
  border-color: rgba(141, 198, 63, 0.24);
}

.wire-map__node--blocked {
  border-color: rgba(192, 53, 53, 0.34);
}

.wire-map__node strong,
.wire-map__node span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-map__node strong {
  color: var(--color-text-primary);
  font-size: 10px;
}

.wire-map__node span {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 9px;
}

.live-inspector-label {
  padding: 10px 16px 0;
}

.live-inspector-label span {
  color: var(--color-text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.live-inspector p {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.live-inspector__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ops-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.live-inspector__topline strong {
  color: var(--ops-green);
  font-weight: 500;
}

.live-inspector h3 {
  margin: 14px 0;
  color: var(--color-text-primary);
  font-size: 26px;
  line-height: 1.08;
}

.live-inspector dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.live-inspector dt,
.live-inspector dd {
  font-family: var(--font-mono);
  font-size: 11px;
}

.live-inspector dt {
  color: var(--color-text-muted);
}

.live-inspector dd {
  margin: 3px 0 0;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.live-inspector pre {
  max-height: 260px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: rgba(0,0,0,0.18);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.live-panel--ledger {
  margin-top: 12px;
  min-height: 230px;
  max-height: 320px;
}

.live-ledger-row {
  display: grid;
  grid-template-columns: 88px 120px 120px minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.live-ledger-row:last-child {
  border-bottom: 0;
}

.live-ledger-row time,
.live-ledger-row code {
  color: var(--color-text-muted);
}

.live-ledger-row strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

@keyframes live-wire-travel {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 40px));
    opacity: 0;
  }
}

@keyframes live-node-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.34);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(141, 198, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0);
  }
}

@keyframes live-node-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 168, 164, 0.32);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(240, 168, 164, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 168, 164, 0);
  }
}

@keyframes live-agent-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.38), 0 0 14px rgba(141, 198, 63, 0.38);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(141, 198, 63, 0), 0 0 14px rgba(141, 198, 63, 0.28);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0), 0 0 14px rgba(141, 198, 63, 0.2);
  }
}

@keyframes live-agent-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 168, 164, 0.34), 0 0 14px rgba(240, 168, 164, 0.28);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 168, 164, 0), 0 0 14px rgba(240, 168, 164, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 168, 164, 0), 0 0 14px rgba(240, 168, 164, 0.14);
  }
}

@keyframes live-dot-pulse {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(141, 198, 63, 0);
  }
}

@keyframes live-fleet-fill {
  0%, 100% {
    opacity: 0.72;
    filter: brightness(0.9);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
}

@keyframes live-engine-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(141, 198, 63, 0.1), inset 0 0 18px rgba(141, 198, 63, 0.05);
  }
  50% {
    box-shadow: 0 0 34px rgba(141, 198, 63, 0.2), inset 0 0 24px rgba(141, 198, 63, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-wire__signal span,
  .live-wire-row__pulse,
  .live-agent-chip__orb,
  .fleet-stage-label--live::before,
  .fleet-scard__fill,
  .wire-map__engine {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .ops-hero,
  .ops-ledger-section {
    grid-template-columns: 1fr;
  }

  .ops-feed {
    max-height: 540px;
  }

  .ops-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-room__grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .live-panel--wire,
  .live-panel--receipts,
  .live-panel--inspect {
    min-height: 420px;
  }

  .live-room__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-agent-strip {
    grid-template-columns: 1fr;
  }

  .live-agent-strip__header {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .live-room__metrics div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .nav__inner {
    padding: 0 var(--space-3);
  }

  .nav__logo-img {
    width: 112px;
  }

  .nav__links {
    gap: var(--space-3);
  }

  .nav__links a {
    font-size: 11px;
  }

  .nav__cta {
    padding: var(--space-2) var(--space-3);
  }

  .nav__links li:nth-child(2),
  .nav__links li:nth-child(3) {
    display: none;
  }

  .ops-hero,
  .ops-section,
  .ops-dispatch,
  .ops-close {
    width: min(100vw - 24px, 1520px);
  }

  .ops-hero {
    padding-top: 24px;
    gap: 12px;
  }

  .ops-hero__copy,
  .ops-feed-shell,
  .ops-section,
  .ops-dispatch,
  .ops-close {
    padding: 18px;
  }

  .ops-proof,
  .ops-work-grid,
  .ops-agent-grid {
    grid-template-columns: 1fr;
  }

  .ops-proof__item,
  .ops-proof__item:nth-child(2n),
  .ops-proof__item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .ops-proof__item:last-child {
    border-bottom: 0;
  }

  .ops-feed-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ops-feed-row__agent {
    display: none;
  }

  .ops-ledger-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ops-ledger-row code,
  .ops-ledger-row span:nth-of-type(2) {
    display: none;
  }

  .live-room {
    padding: 12px;
  }

  .live-room__header {
    flex-direction: column;
  }

  .live-room__metrics {
    grid-template-columns: 1fr;
  }

  .live-agent-chip {
    flex-basis: 156px;
  }

  .live-room__metrics div,
  .live-room__metrics div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .live-room__metrics div:last-child {
    border-bottom: 0;
  }

  .live-wire-row {
    grid-template-columns: 28px 82px minmax(0, 1fr);
  }

  .live-wire-row strong {
    display: none;
  }

  .live-wire-row span:not(.live-wire-row__index),
  .live-wire-row em {
    grid-column: 3;
  }

  .live-ledger-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .live-ledger-row code,
  .live-ledger-row span:nth-of-type(2) {
    display: none;
  }
}

.section__h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

/* ─── Post Cards ────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-bg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.topic-tag {
  display: inline-block;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-chain);
  background: rgba(159, 123, 76, 0.08);
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
}

.post-card__date {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.post-card__title {
  font-family: var(--font-editorial-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--color-text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title em {
  font-family: var(--font-brand-body);
  font-style: italic;
  font-weight: 400;
  color: var(--color-crimson);
}

.post-card__title:hover { color: var(--color-crimson); }

.post-card__excerpt {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__author {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  margin-top: auto;
}

/* ─── Featured Posts (condensed) ───────────────────────────── */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .featured-strip {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
  }

  .featured-strip > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* ─── Finn Invite Band ──────────────────────────────────────── */
.finn-band {
  background: var(--color-crimson);
  padding: var(--space-8) 0;
  cursor: pointer;
  transition: background var(--transition-base);
  text-decoration: none;
  display: block;
}

.finn-band:hover { background: var(--color-crimson-dark); }

.finn-band__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finn-band__text {
  font-family: var(--font-brand-body);
  font-size: var(--text-body-lg);
  color: #fff;
}

.finn-band__arrow {
  font-size: var(--text-h3);
  color: rgba(255,255,255,0.7);
}

/* ─── Topic Filter Pills ────────────────────────────────────── */
.filter-bar {
  padding: var(--space-4) 0;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  position: sticky;
  top: var(--nav-height);
  background: var(--color-bg);
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  border-radius: 100px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.filter-pill:hover,
.filter-pill[aria-pressed="true"] {
  background: var(--color-crimson);
  border-color: var(--color-crimson);
  color: #fff;
}

/* ─── Load More ─────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: var(--space-10) 0;
}

/* ─── Article Layout ────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 240px;
  gap: var(--space-16);
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  align-items: start;
  justify-content: center;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: var(--space-10) var(--space-5);
  }
}

.article-body {
  width: 100%;
  max-width: 680px;
  min-width: 0;
}

.article-body h1 { font-size: var(--text-h2); margin-bottom: var(--space-4); }
.article-body h2 { font-size: var(--text-h3); margin: var(--space-8) 0 var(--space-4); }
.article-body h3 { font-size: var(--text-h4); margin: var(--space-6) 0 var(--space-3); }
.article-body p  { font-size: var(--text-body-lg); line-height: 1.7; margin-bottom: var(--space-4); }
.article-body a  { color: var(--color-crimson); }

.article-body h1,
.article-body h2 {
  letter-spacing: -0.01em;
}

.article-body h1 em,
.article-body h2 em {
  font-family: var(--font-brand-body);
  font-style: italic;
  font-weight: 400;
  color: var(--color-crimson);
}
.article-body blockquote {
  border-left: 3px solid var(--color-crimson);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}
.article-body pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.article-figure {
  margin: var(--space-8) 0;
}

.article-figure img {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.article-figure figcaption {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: 1.4;
}

.article-figure--wide {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .article-figure--wide {
    width: 100%;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  width: 240px;
  align-self: start;
}

.sidebar-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
  margin-bottom: var(--space-4);
}

.sidebar-card__title {
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

@media (max-width: 900px) {
  .article-sidebar {
    position: static;
    width: 100%;
  }
}

/* ─── Stack Grid (/system) ──────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stack-grid { grid-template-columns: 1fr; }
}

.stack-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--color-surface);
}

.stack-card__name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.stack-card__role {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-chain);
  margin-bottom: var(--space-2);
}

.stack-card__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.stack-card--onchain {
  border-color: var(--color-chain);
  background: rgba(159, 123, 76, 0.04);
}

.stack-card--onchain .stack-card__name {
  color: var(--color-chain);
}

/* ─── Developer Row (/system) ───────────────────────────────── */
.developer-row {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}

.dev-link {
  font-size: var(--text-body-sm);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.dev-link:hover { color: var(--color-chain); }

/* ─── /connect Layout ───────────────────────────────────────── */
.connect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-12) 0;
}

@media (max-width: 900px) {
  .connect-layout { grid-template-columns: 1fr; }
}

/* ─── Finn Chat ─────────────────────────────────────────────── */
.finn-chat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 560px;
  background: var(--color-bg);
}

@media (max-width: 900px) {
  .finn-chat { height: 480px; }
}

.finn-chat__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
}

.finn-chat__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.finn-chat__name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.finn-chat__subtitle {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.finn-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.message-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}

.message-bubble--finn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-sm);
  align-self: flex-start;
}

.message-bubble--user {
  background: var(--color-crimson);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
  align-self: flex-end;
}

.suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-3);
  transition: opacity var(--transition-slow), max-height var(--transition-slow);
  overflow: hidden;
}

.suggested-prompts.hidden {
  opacity: 0;
  max-height: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.prompt-pill {
  font-size: var(--text-caption);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.prompt-pill:hover {
  border-color: var(--color-crimson);
  color: var(--color-crimson);
}

.finn-chat__input-area {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
  background: var(--color-bg);
}

.finn-chat__input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  background: var(--color-bg);
  resize: none;
  outline: none;
  transition: border-color var(--transition-base);
}

.finn-chat__input:focus { border-color: var(--color-crimson); }

.finn-chat__send {
  padding: var(--space-2) var(--space-4);
  background: var(--color-crimson);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
  flex-shrink: 0;
}

.finn-chat__send:hover { background: var(--color-crimson-dark); }
.finn-chat__send:disabled { opacity: 0.5; cursor: not-allowed; }

.finn-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
}

.finn-typing.visible { display: flex; }

.finn-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typing-bounce 1.2s infinite;
}

.finn-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.finn-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.finn-error {
  display: none;
  font-size: var(--text-body-sm);
  color: var(--color-crimson);
  padding: var(--space-2) var(--space-4);
  text-align: center;
}

.finn-error.visible { display: block; }

/* ─── /work — Pillars ─────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

/* ─── /explainer ───────────────────────────────────────────── */
.explainer {
  background: var(--color-bg);
}

.explainer .container {
  max-width: 1180px;
}

.explainer-hero {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.explainer-hero__grid,
.explainer-story__grid,
.explainer-now__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.explainer-kicker {
  margin-bottom: var(--space-4);
  color: var(--color-crimson);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explainer h1,
.explainer h2 {
  color: var(--color-text-primary);
  line-height: 0.98;
}

.explainer h1 {
  max-width: 640px;
  margin-bottom: var(--space-6);
  font-size: clamp(54px, 8vw, 104px);
}

.explainer h2 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 68px);
}

.explainer h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0;
}

.explainer-hero__lede {
  max-width: 660px;
  color: var(--color-text-secondary);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.explainer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.explainer-proof {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.explainer-proof div {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.explainer-proof div:last-child {
  border-bottom: 0;
}

.explainer-proof span,
.explainer-steps span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-chain);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  text-transform: uppercase;
}

.explainer-proof strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1.22;
}

.explainer-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

.explainer-prose,
.explainer-columns,
.explainer-close p {
  color: var(--color-text-secondary);
  font-size: 19px;
  line-height: 1.65;
}

.explainer-prose p + p {
  margin-top: var(--space-5);
}

.explainer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.explainer-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.explainer-steps article,
.explainer-capabilities article {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-6);
}

.explainer-steps p,
.explainer-capabilities p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.explainer-capabilities {
  display: grid;
  gap: var(--space-4);
}

.explainer-close {
  text-align: center;
  border-bottom: 0;
}

.explainer-close h2,
.explainer-close p {
  margin-left: auto;
  margin-right: auto;
}

.explainer-close p {
  max-width: 780px;
  margin-top: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .explainer-hero__grid,
  .explainer-story__grid,
  .explainer-now__grid,
  .explainer-columns,
  .explainer-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar__heading {
  margin-bottom: var(--space-3);
}

.pillar__body {
  font-family: var(--font-brand-body);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: var(--color-crimson);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-band__h2 {
  color: #fff;
  margin-bottom: var(--space-6);
}

/* ─── Three Overlapping Circles Mark (SVG) ──────────────────── */
.mark-svg circle:nth-child(1) { fill: var(--color-crimson); opacity: 0.7; }
.mark-svg circle:nth-child(2) { fill: var(--color-chain);   opacity: 0.7; }
.mark-svg circle:nth-child(3) { fill: var(--color-stone);   opacity: 0.7; }

/* ─── Cal.com Embed ─────────────────────────────────────────── */
cal-inline {
  display: block;
  min-height: 600px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 900px) {
  cal-inline { min-height: 480px; }
}

/* Mobile /connect: Cal collapsed */
.cal-mobile-toggle {
  display: none;
}

@media (max-width: 900px) {
  .cal-mobile-toggle {
    display: block;
    margin-top: var(--space-4);
  }

  .cal-mobile-toggle summary {
    font-size: var(--text-body-sm);
    font-weight: 600;
    cursor: pointer;
    color: var(--color-crimson);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
  }

  .cal-mobile-toggle summary::-webkit-details-marker { display: none; }
  .cal-desktop-cal { display: none; }
}

/* ─── /thinking page header ─────────────────────────────────── */
.page-header {
  padding: var(--space-12) 0 var(--space-6);
}

.page-header__h1 {
  margin-bottom: var(--space-3);
}

.page-header__subhead {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
}

/* ─── Utility ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-crimson { color: var(--color-crimson); }
.text-chain   { color: var(--color-chain); }
.text-muted   { color: var(--color-text-muted); }

/* Avoid Google Fonts CDN — zero external font requests. All fonts are self-hosted. */
