@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ==========================================
   DESIGN SYSTEM: DARK EDITORIAL TECH
   Palette: Deep charcoal + electric teal + warm amber accent
   Fonts: Syne (display/headings) + Space Mono (code/labels) + Crimson Pro (body)
   ========================================== */

:root {
  --bg-primary: #0d0e12;
  --bg-secondary: #13151c;
  --bg-card: #181b24;
  --bg-glass: rgba(24, 27, 36, 0.7);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);

  --teal: #00e5c3;
  --teal-dim: #00b89a;
  --teal-glow: rgba(0, 229, 195, 0.15);
  --amber: #f5a623;
  --amber-dim: #c97d0f;
  --amber-glow: rgba(245, 166, 35, 0.15);
  --coral: #ff6b52;
  --violet: #9b72ff;

  --text-primary: #f0f2f7;
  --text-secondary: #8892a4;
  --text-muted: #525d71;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-teal: 0 0 30px rgba(0, 229, 195, 0.2);
  --shadow-glow-amber: 0 0 30px rgba(245, 166, 35, 0.2);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--teal); }
h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--amber); }

strong { color: var(--text-primary); font-weight: 600; }
em { font-style: italic; color: var(--text-secondary); }

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--teal-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ==========================================
   LAYOUT
   ========================================== */
.site-wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #0d0e12;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Dropdown nav */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.nav-toggle-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

.nav-toggle-btn .chevron {
  transition: transform 0.3s;
  font-size: 10px;
  opacity: 0.6;
}

.nav-toggle-btn.open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 280px;
  box-shadow: var(--shadow-card), var(--shadow-glow-teal);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
}

.nav-dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s;
  color: var(--text-secondary);
}

.nav-item:hover {
  background: var(--teal-glow);
  color: var(--teal);
}

.nav-item .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-item .nav-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.home-btn:hover { color: var(--teal); }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--teal); }

/* ==========================================
   TABLES
   ========================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

thead {
  border-bottom: 2px solid var(--teal);
}

th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 12px 16px;
  text-align: left;
  background: var(--bg-card);
}

th:first-child { border-radius: var(--radius-sm) 0 0 0; }
th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

td strong { color: var(--text-primary); }

tr:hover td { background: rgba(0, 229, 195, 0.03); }
tr:last-child td { border-bottom: none; }

/* ==========================================
   CODE
   ========================================== */
code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: rgba(0, 229, 195, 0.1);
  color: var(--teal);
  padding: 0.15em 0.5em;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 195, 0.2);
}

pre {
  background: #0a0b0f;
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  position: relative;
}

pre code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  color: #abb2bf;
  line-height: 1.7;
}

pre::before {
  content: 'CODE';
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.diagram pre, pre.diagram {
  border-left-color: var(--amber);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.diagram pre::before, pre.diagram::before { content: 'DIAGRAM'; }

/* ==========================================
   PAGE HEADER (subpages)
   ========================================== */
.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
}

.page-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

/* ==========================================
   SECTION HEADINGS (inside content)
   ========================================== */
.content-wrapper h2 {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.content-wrapper h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--teal), var(--violet));
  border-radius: 2px;
}

/* ==========================================
   CALLOUT BOXES
   ========================================== */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: currentColor;
}

.callout.info, .callout:not(.success):not(.warning):not(.danger) {
  border-color: rgba(0, 229, 195, 0.3);
  color: var(--teal);
  background: var(--teal-glow);
}

.callout.success {
  border-color: rgba(0, 200, 120, 0.3);
  color: #00c878;
  background: rgba(0, 200, 120, 0.08);
}

.callout.warning {
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--amber);
  background: var(--amber-glow);
}

.callout.danger {
  border-color: rgba(255, 107, 82, 0.3);
  color: var(--coral);
  background: rgba(255, 107, 82, 0.08);
}

.callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: inherit;
}

.callout p { margin-bottom: 0; color: var(--text-secondary); }
.callout a { color: inherit; text-decoration: underline; }

/* ==========================================
   TECH/NAV CARDS
   ========================================== */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.nav-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-card:hover {
  border-color: rgba(0, 229, 195, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow-teal);
}

.nav-card:hover::after { transform: scaleX(1); }

.nav-card .icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.nav-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.nav-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.nav-card a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-card a:hover { color: var(--amber); }

/* ==========================================
   TECH GRID (design decisions)
   ========================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s;
}

.tech-card:hover {
  border-color: rgba(0, 229, 195, 0.25);
  background: rgba(24, 27, 36, 0.9);
}

.tech-card h4 {
  font-size: 0.9rem;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================
   HERO (home page)
   ========================================== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 229, 195, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(155, 114, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================
   STATS GRID
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}

.stat-item {
  background: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================
   RESULTS TABLE (special styling)
   ========================================== */
.results-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.results-table th {
  background: linear-gradient(90deg, var(--bg-secondary), var(--bg-card));
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 2px 4px 2px 0;
}

.badge-teal { background: var(--teal-glow); color: var(--teal); border: 1px solid rgba(0,229,195,0.3); }
.badge-amber { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(245,166,35,0.3); }
.badge-violet { background: rgba(155,114,255,0.1); color: var(--violet); border: 1px solid rgba(155,114,255,0.3); }
.badge-coral { background: rgba(255,107,82,0.1); color: var(--coral); border: 1px solid rgba(255,107,82,0.3); }

/* ==========================================
   QUICK FACTS TABLE (home page)
   ========================================== */
.quick-facts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
}

.quick-facts table { margin: 0; }
.quick-facts th { background: transparent; font-size: 0.65rem; }

/* ==========================================
   PAGE ANIMATIONS
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
  animation: fadeUp 0.5s ease-out;
}

/* ==========================================
   HORIZONTAL RULE
   ========================================== */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .nav-cards, .tech-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0 2rem; }
  .header-inner { padding: 0; }
  .logo-text { display: none; }
  pre { font-size: 0.72rem; padding: 1.25rem; }
  table { font-size: 0.82rem; }
  th, td { padding: 10px; }
  .content-wrapper { padding: 2rem 1rem 4rem; }
  .footer-inner { flex-direction: column; }
}

/* ==========================================
   ARCHITECTURE DIAGRAMS (HTML-based, replaces ASCII art)
   ========================================== */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: var(--shadow-card);
}

.arch-diagram::before {
  content: 'ARCHITECTURE';
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.arch-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.arch-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  min-width: 180px;
  flex: 1;
  max-width: 280px;
  text-align: center;
  font-family: var(--font-mono);
}

.arch-node.primary {
  border-color: var(--teal);
  background: var(--teal-glow);
}

.arch-node.accent {
  border-color: var(--violet);
  background: rgba(155, 114, 255, 0.08);
}

.arch-node.amber {
  border-color: var(--amber);
  background: var(--amber-glow);
}

.arch-node-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.arch-node-port {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.arch-node-detail {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.4rem;
}

.arch-node-list {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  line-height: 1.6;
}

.arch-arrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--teal);
  margin: 0.5rem 0;
  line-height: 1;
}

.arch-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.arch-step-number {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Image embed styling */
.embed-img {
  margin: 2rem 0;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.embed-img img {
  width: 100%;
  display: block;
}

.embed-img-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Team member cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.team-card:hover {
  border-color: var(--teal);
}

.team-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (max-width: 768px) {
  .arch-row { flex-direction: column; align-items: stretch; }
  .arch-node { max-width: 100%; }
}
