@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Twilight base — deep indigo-violet evening */
  --bg: #0a0612;
  --bg-raised: #120a1c;
  --bg-hover: #170d24;
  --text: #ece4f5;
  --text-secondary: #b8a8d0;
  --text-muted: #7a6a96;
  --text-dim: #5a4a78;
  --border: rgba(200, 170, 230, 0.12);
  --border-strong: rgba(200, 170, 230, 0.26);

  /* Hearth accents — the flame against the twilight */
  --rose: #fb7185;
  --rose-light: #fda4af;
  --rose-glow: rgba(251, 113, 133, 0.32);
  --amber: #fbbf24;
  --amber-light: #fcd34d;
  --amber-glow: rgba(251, 191, 36, 0.28);
  --violet: #a78bfa;
  --violet-light: #c4b5fd;
  --violet-glow: rgba(167, 139, 250, 0.28);
  --hearth: #f97316;
  --hearth-light: #fb923c;
  --hearth-glow: rgba(249, 115, 22, 0.26);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Ambient twilight + hearth glow ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(167, 139, 250, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 50% 108%, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 70%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px var(--rose-glow);
  white-space: nowrap;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 0 8px var(--rose-glow));
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(200, 170, 230, 0.06); }
.nav-link.active { color: var(--text); background: rgba(200, 170, 230, 0.10); }

.nav-spacer { flex: 1; }

.nav-services { display: flex; gap: 6px; }

.nav-service {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.nav-service:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.nav-service.active { color: var(--rose-light); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.10); }

/* ── Layout ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 28px;
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.hero {
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-emblem-wrap { flex-shrink: 0; position: relative; }

.hero-emblem {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(251, 113, 133, 0.42);
  box-shadow:
    0 0 60px rgba(251, 113, 133, 0.28),
    0 0 120px rgba(167, 139, 250, 0.14),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  animation: hearth-pulse 5s ease-in-out infinite;
}

@keyframes hearth-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(251, 113, 133, 0.28), 0 0 120px rgba(167, 139, 250, 0.14); }
  50%      { box-shadow: 0 0 80px rgba(251, 113, 133, 0.40), 0 0 160px rgba(251, 191, 36, 0.12); }
}

.hero-content { flex: 1; }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px var(--rose-glow);
  line-height: 1.05;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--amber) 0%, var(--rose) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero .tagline {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
}

.hero .tagline strong { color: var(--text); font-weight: 600; }

.hero .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.hero .meta a {
  color: var(--rose-light);
  border-bottom: 1px solid rgba(251, 113, 133, 0.3);
  transition: border-color 0.15s;
}
.hero .meta a:hover { border-color: var(--rose); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-strong) 50%, transparent 100%);
  margin: 48px 0;
}

/* ── Sections ── */
.section { margin-bottom: 56px; }

.section-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  font-variation-settings: 'opsz' 96;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  transform: translateY(-6px);
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Posture tenets ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tenet {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-raised) 100%);
  padding: 28px;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tenet:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #1d0f30 0%, var(--bg-hover) 100%);
}

.tenet-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--amber) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.tenet-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.tenet-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Roster ── */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.roster-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin: 28px 0 12px;
}

.agent-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-raised) 100%);
  padding: 24px;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--agent-accent, var(--rose)), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.agent-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #1d0f30 0%, var(--bg-hover) 100%);
}
.agent-card:hover::before { opacity: 1; }

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.agent-name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.agent-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-rose   { color: var(--rose-light);   background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge-amber  { color: var(--amber-light);  background: rgba(251, 191, 36, 0.14);  border: 1px solid rgba(251, 191, 36, 0.28); }
.badge-violet { color: var(--violet-light); background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.28); }
.badge-hearth { color: var(--hearth-light); background: rgba(249, 115, 22, 0.14);  border: 1px solid rgba(249, 115, 22, 0.28); }
.badge-muted  { color: var(--text-muted);   background: rgba(148, 120, 184, 0.10); border: 1px solid var(--border); }

.agent-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.agent-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.agent-desc strong { color: var(--text); font-weight: 600; }
.agent-desc em { color: var(--rose-light); font-style: italic; }

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.agent-tag {
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* ── Featured agent ── */
.agent-card.featured {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  border-color: rgba(251, 113, 133, 0.32);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.07) 0%, var(--bg-raised) 55%);
  box-shadow: 0 0 60px rgba(251, 113, 133, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.agent-card.featured:hover {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 80px rgba(251, 113, 133, 0.16);
}
.agent-card.featured::before { display: none; }

.agent-card.featured .featured-emblem {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(251, 113, 133, 0.42);
  box-shadow: 0 0 32px rgba(251, 113, 133, 0.28);
}

.agent-card.featured .agent-name { font-size: 22px; }
.agent-card.featured .agent-desc { font-size: 15px; }

/* ── Prose ── */
.prose {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--rose-light); font-style: italic; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.10);
  color: var(--violet-light);
  border: 1px solid var(--border);
}

/* ── Heartbeats table ── */
.heartbeats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.heartbeat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-raised) 100%);
  padding: 18px 22px;
  transition: all 0.2s;
}
.heartbeat:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #1d0f30 0%, var(--bg-hover) 100%);
}

.hb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px var(--rose-glow);
  animation: hb-blink 3s ease-in-out infinite;
}
@keyframes hb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hb-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.hb-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hb-cadence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-light);
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}
.hb-agent {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Trust posture block ── */
.trust {
  border-radius: 16px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.06) 0%, var(--bg-raised) 60%);
  box-shadow: 0 0 60px rgba(251, 113, 133, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.trust-pillar {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.5);
  padding: 22px;
}

.trust-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: var(--rose-light);
  margin-bottom: 8px;
}

.trust-pillar-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.trust-pillar-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  opacity: 0.7;
}

.footer-mark .footer-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200, 170, 230, 0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 170, 230, 0.30); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
  .agent-card.featured { grid-column: span 2; }
  .heartbeats { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .hero-emblem { width: 170px; height: 170px; }
  .section-title { font-size: 24px; }
}

@media (max-width: 640px) {
  .roster { grid-template-columns: 1fr; }
  .agent-card.featured { grid-column: span 1; flex-direction: column; text-align: center; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
  .hero-emblem { width: 150px; height: 150px; }
  .hero h1 { font-size: 40px; }
  .container { padding: 24px 16px; }
  .nav-inner { padding: 0 16px; gap: 16px; }
  .nav-services { display: none; }
  .heartbeat { grid-template-columns: auto 1fr; }
  .heartbeat .hb-cadence { grid-column: 2; text-align: left; margin-top: 4px; }
}


/* Compact roster card — the free tier are workers, not headliners. Half the
   padding, muted name, no role line; they should read as a footnote to the
   featured agent rather than competing with it. */
.agent-card.compact {
  padding: 16px 18px;
}
.agent-card.compact .agent-name {
  font-size: 0.95rem;
}
.agent-card.compact .agent-desc {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}
