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

:root {
  --stone: #ece8df;
  --stone-light: #f6f4ee;
  --stone-deep: #dfd9cc;
  --ink: #161714;
  --ink-soft: #4c4a42;
  --ink-muted: #787469;
  --obsidian: #121410;
  --obsidian-card: #1b1d18;
  --obsidian-border: rgba(246, 244, 238, 0.13);
  --cream: #f4f1e8;
  --cream-soft: #b8b4a8;
  --olive: #41591d;
  --olive-hover: #324614;
  --chartreuse: #b7d956;
  --amber: #e8a331;
  --coral: #dd5135;
  --moss: #7fc97b;
  --border: rgba(22, 23, 20, 0.12);
  --border-strong: rgba(22, 23, 20, 0.22);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Harmonious whole-site typographic scale */
  --type-h1: clamp(2.15rem, 3.6vw, 3rem);
  --type-h2: clamp(1.95rem, 3.4vw, 2.7rem);
  --type-h3: clamp(1.12rem, 1.3vw, 1.24rem);
  --type-lead: 1rem;
  --type-body: 0.875rem;
  --type-eyebrow: 0.74rem;
  --type-code: 0.81rem;
  --header-h: clamp(64px, 6.2vh, 80px);

  --shadow-card: 0 22px 50px -18px rgba(18, 19, 16, 0.34), 0 2px 6px rgba(18, 19, 16, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Tactile risograph grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.036;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: min(1320px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 44px);
}

header .wrap,
.story-band .wrap {
  max-width: min(1500px, 94vw);
}

@media (min-width: 1720px) {
  .wrap { max-width: min(1440px, 88vw); }
  header .wrap,
  .story-band .wrap { max-width: min(1640px, 92vw); }
}

/* ================= SMART SCROLL-AWARE NAV ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

header.header-dark {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

header.header-dark.is-scrolled {
  background: rgba(17, 20, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(244, 241, 232, 0.08);
}

header.header-light {
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px -20px rgba(18, 19, 16, 0.25);
}

.nav-bar {
  height: clamp(64px, 6.2vh, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s ease;
}

header.header-dark .brand { color: var(--cream); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

section[id] { scroll-margin-top: 78px; }
#story { scroll-margin-top: 0; }

header.header-dark .brand-mark {
  background: transparent;
  box-shadow: none;
}

header.header-light .brand-mark {
  background: var(--obsidian);
  box-shadow: 0 2px 8px rgba(18, 19, 16, 0.18);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand-cli {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

header.header-dark .brand-cli {
  color: var(--chartreuse);
  background: rgba(183, 217, 86, 0.14);
}

header.header-light .brand-cli {
  color: var(--olive);
  background: rgba(65, 89, 29, 0.11);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

header.header-dark .nav-links a { color: rgba(244, 241, 232, 0.76); }
header.header-dark .nav-links a:hover { color: var(--cream); }

header.header-light .nav-links a { color: var(--ink-soft); }
header.header-light .nav-links a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

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

.btn-olive { background: var(--olive); color: #f6f4ee; }
.btn-olive:hover { background: var(--olive-hover); }

header.header-dark .btn-ghost {
  background: rgba(244, 241, 232, 0.04);
  color: var(--cream);
  border-color: rgba(244, 241, 232, 0.22);
}
header.header-dark .btn-ghost:hover {
  background: rgba(244, 241, 232, 0.1);
  border-color: rgba(244, 241, 232, 0.4);
}

header.header-dark .btn-cta {
  background: var(--chartreuse);
  color: var(--obsidian);
  font-weight: 600;
}
header.header-dark .btn-cta:hover { background: #c6e668; }

header.header-light .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
header.header-light .btn-ghost:hover { background: rgba(22, 23, 20, 0.05); }

header.header-light .btn-cta {
  background: var(--olive);
  color: #f6f4ee;
}
header.header-light .btn-cta:hover { background: var(--olive-hover); }

/* ================= HERO #2 CTA STRIP (Cleanly below Hero #1's bottom divider) ================= */
.hero-cta-strip {
  margin-top: 0;
  padding: 44px 0 56px;
  border-top: none;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
  scroll-margin-top: 90px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: var(--stone-light);
  border: 1px solid var(--border);
  font-size: var(--type-eyebrow);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.eyebrow-pill.dark {
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.14);
  color: var(--cream-soft);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chartreuse);
  box-shadow: 0 0 0 3px rgba(183, 217, 86, 0.25);
}

.hero-cta-copy h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--type-h1);
  line-height: 1.05;
  letter-spacing: -0.034em;
  color: var(--cream);
}

.hero-cta-copy h1 em {
  font-style: italic;
  color: var(--chartreuse);
  font-weight: 400;
}

.hero-sub {
  margin: 0;
  font-size: var(--type-lead);
  line-height: 1.58;
  color: var(--cream-soft);
  max-width: 60ch;
}

.hero-sub code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--chartreuse);
}

.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.btn-gh-hero {
  background: var(--chartreuse);
  color: var(--obsidian);
  font-weight: 600;
  padding: 9px 18px;
}

.btn-gh-hero:hover {
  background: #c8e86b;
}

.btn-subtle-hero {
  background: rgba(244, 241, 232, 0.06);
  color: var(--cream);
  border-color: rgba(244, 241, 232, 0.2);
  padding: 9px 16px;
}

.btn-subtle-hero:hover {
  background: rgba(244, 241, 232, 0.12);
  border-color: rgba(244, 241, 232, 0.36);
}

/* Install switcher */
.hero-cta-strip > * { min-width: 0; }

.install-box {
  min-width: 0;
  max-width: 100%;
  background: rgba(12, 15, 10, 0.76);
  backdrop-filter: blur(14px);
  color: var(--cream);
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 16px;
  padding: 13px 15px 15px;
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, 0.7);
}

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

.install-tabs { display: flex; gap: 4px; }

.it-btn {
  border: none;
  background: transparent;
  color: var(--cream-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.14s;
}

.it-btn:hover { color: var(--cream); }
.it-btn.active { background: rgba(183, 217, 86, 0.16); color: var(--chartreuse); }
.it-btn:focus { outline: none; }
.it-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(183, 217, 86, 0.55); }

.install-copy {
  border: 1px solid var(--obsidian-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.71rem;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.install-copy:hover { border-color: var(--chartreuse); color: var(--chartreuse); }

.install-cmd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  color: var(--cream);
}

.install-cmd .prompt { color: var(--chartreuse); user-select: none; }

.install-foot {
  margin-top: 9px;
  font-size: 0.74rem;
  color: var(--cream-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.install-foot code { font-family: var(--mono); color: var(--chartreuse); font-size: 0.72rem; }

/* ================= FULL-BLEED DARK CINEMATIC STORY BAND (Two-Block Viewport-Adaptive Hero) ================= */
.story-band {
  position: relative;
  background: #11140f;
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  overflow: hidden;
  padding: 0;
}

.story-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/hero-mycelium.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.62;
  filter: saturate(0.95) contrast(1.04);
  pointer-events: none;
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 58% at 50% 34%, rgba(17, 20, 15, 0.28) 0%, rgba(17, 20, 15, 0.04) 58%, rgba(13, 16, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(14, 17, 13, 0.25) 0%, rgba(17, 20, 15, 0.04) 22%, rgba(14, 17, 13, 0.25) 75%, rgba(13, 16, 11, 0.88) 100%);
}

.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.story-band-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* HERO #1: Diorama Stage + Controls Dock ending on the horizontal divider line */
.hero-block-stage {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h, 68px);
  border-bottom: 1px solid rgba(183, 217, 86, 0.14);
}

.hero-stage-center {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.hero-controls-dock {
  flex: 0 0 auto;
  width: 100%;
  padding-bottom: 18px;
}

/* Mode A — Laptop / Standard Desktop: Header + Hero #1 = exact 100svh (divider flush at viewport bottom) */
@media (min-width: 761px) {
  .hero-block-stage {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Mode B — Big / Tall Desktop Screens: Header + Hero #1 + Divider + Hero #2 = exact 100svh */
@media (min-width: 1100px) and (min-height: 990px) {
  .story-band {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  .story-band-inner {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h, 68px);
  }
  .hero-block-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding-top: 0;
  }
  .hero-cta-strip {
    flex: 0 0 auto;
    padding: 26px 0 32px;
  }
}

.story-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.story-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chartreuse);
}

.story-hint {
  font-family: var(--mono);
  font-size: 0.71rem;
  color: var(--cream-soft);
}

/* Unboxed, proportionally scaled 1200x590 diorama — zero box border, zero horizontal overflow */
.story-viewport {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 1220px) {
  .story-viewport { overflow: visible; }
}

.story-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 590px;
  transform-origin: top left;
  overflow: visible;
  background: transparent;
  border: none;
}

.story-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.soil-web path {
  fill: none;
  stroke: rgba(183, 217, 86, 0.08);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 4 7;
}

.myc-strand {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 2.35;
  stroke-linecap: round;
  opacity: 0;
  filter: url(#hyphaGlow);
  transition: stroke-dashoffset 1.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, stroke 0.35s ease;
}

.myc-strand.amber { stroke: var(--amber); }
.myc-strand.coral { stroke: var(--coral); }
.myc-strand.moss { stroke: var(--moss); }
.myc-strand.grown { opacity: 0.95; }
.myc-strand.soft { opacity: 0.3; }

/* Braided companion hyphae + forked lateral capillaries */
.hypha-bundle {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hypha-bundle.grown { opacity: 1; }
.hypha-bundle.soft { opacity: 0.28; }

.hypha-bundle .myc-weave {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 1.15;
  stroke-linecap: round;
  opacity: 0.52;
  transition: stroke-dashoffset 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hypha-bundle .myc-weave.fine {
  stroke-width: 0.78;
  opacity: 0.36;
  stroke-dasharray: 6 4;
}

.hypha-bundle .myc-twig {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.44;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.hypha-bundle .myc-spore {
  fill: var(--chartreuse);
  opacity: 0.65;
}

.hypha-bundle.amber .myc-weave,
.hypha-bundle.amber .myc-twig { stroke: var(--amber); }
.hypha-bundle.amber .myc-spore { fill: var(--amber); }

.hypha-bundle.coral .myc-weave,
.hypha-bundle.coral .myc-twig { stroke: var(--coral); }
.hypha-bundle.coral .myc-spore { fill: var(--coral); }

.hypha-bundle.moss .myc-weave,
.hypha-bundle.moss .myc-twig { stroke: var(--moss); }
.hypha-bundle.moss .myc-spore { fill: var(--moss); }

/* Arrival absorption pulse when a wire packet lands at destination */
.pkt-arrive {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--chartreuse);
  box-shadow: 0 0 14px var(--chartreuse);
  pointer-events: none;
  z-index: 12;
  transform: translate(-50%, -50%) scale(0.4);
  animation: pktLand 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pkt-arrive.amber { border-color: var(--amber); box-shadow: 0 0 14px var(--amber); }
.pkt-arrive.coral { border-color: var(--coral); box-shadow: 0 0 14px var(--coral); }
.pkt-arrive.moss { border-color: var(--moss); box-shadow: 0 0 14px var(--moss); }

@keyframes pktLand {
  0% { transform: translate(-50%, -50%) scale(0.45); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

/* One-shot labeled message packets gliding along mycelium strands */
.wire-pkt {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  pointer-events: none;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(16, 20, 14, 0.94);
  border: 1px solid rgba(183, 217, 86, 0.72);
  color: var(--chartreuse);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(183, 217, 86, 0.25);
  will-change: left, top, opacity, transform;
}

.wire-pkt .pkt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.wire-pkt.amber {
  border-color: rgba(232, 163, 49, 0.8);
  color: var(--amber);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(232, 163, 49, 0.28);
}

.wire-pkt.coral {
  background: rgba(38, 17, 13, 0.96);
  border-color: rgba(221, 81, 53, 0.85);
  color: #ff9c87;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 18px rgba(221, 81, 53, 0.38);
}

.wire-pkt.moss {
  border-color: rgba(127, 201, 123, 0.8);
  color: #9ae096;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(127, 201, 123, 0.28);
}

/* Entities — hidden until introduced gently */
.entity {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  filter: grayscale(0.35);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 7;
}

.entity.visible {
  opacity: 1;
  filter: grayscale(0);
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.entity.dim {
  opacity: 0.42;
  filter: grayscale(0.25);
  transform: translate(-50%, -50%) scale(0.96);
}

.entity.spotlight .avatar-ring {
  box-shadow: 0 0 0 3px var(--chartreuse), 0 0 32px rgba(183, 217, 86, 0.34), 0 18px 34px rgba(0, 0, 0, 0.58);
}

.entity.alert-hit .avatar-ring {
  box-shadow: 0 0 0 3px var(--coral), 0 0 34px rgba(221, 81, 53, 0.5), 0 18px 34px rgba(0, 0, 0, 0.58);
  animation: jiggle 0.52s ease-in-out;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes jiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-4.5deg) scale(1.05); }
  55% { transform: rotate(4.5deg) scale(1.05); }
  80% { transform: rotate(-2deg) scale(1.02); }
}

@keyframes rippleOut {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

/* BIG, CRISP RISOGRAPH SPRITES */
.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-ring {
  position: relative;
  z-index: 2;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  overflow: hidden;
  background: #161b15;
  border: 2.5px solid rgba(244, 241, 232, 0.24);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  animation: floatBob 4.8s ease-in-out infinite;
}

.avatar-ring.hub-ring {
  width: 222px;
  height: 222px;
  margin: 2px 0 4px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  animation-duration: 5.8s;
}

.avatar-ring.hub-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 22px rgba(232, 163, 49, 0.22));
}

.entity.spotlight .avatar-ring.hub-ring {
  box-shadow: none;
}

.entity.spotlight .avatar-ring.hub-ring img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 30px rgba(183, 217, 86, 0.45)) drop-shadow(0 0 18px rgba(232, 163, 49, 0.3));
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ping-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 2.5px solid var(--chartreuse);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.ping-ripple.fire { animation: rippleOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.ping-ripple.coral { border-color: var(--coral); }

.ent-name {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(16, 18, 14, 0.88);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  white-space: nowrap;
}

.ent-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.67rem;
  color: #b7b3a6;
  white-space: nowrap;
}

.ent-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  justify-content: center;
  min-height: 17px;
}

.sub-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(183, 217, 86, 0.16);
  border: 1px solid rgba(183, 217, 86, 0.5);
  color: var(--chartreuse);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.sub-badge.amber {
  background: rgba(232, 163, 49, 0.16);
  border-color: rgba(232, 163, 49, 0.55);
  color: var(--amber);
}

.sub-badge.show {
  opacity: 1;
  transform: scale(1);
}

.hub-badge {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 163, 49, 0.2);
  border: 1px solid rgba(232, 163, 49, 0.55);
  color: var(--amber);
}

.hub-caps {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 260px;
}

.hub-cap {
  font-family: var(--mono);
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.07);
  border: 1px solid rgba(244, 241, 232, 0.14);
  color: #cfcbc0;
  transition: all 0.25s ease;
}

.hub-cap.lit {
  background: rgba(183, 217, 86, 0.18);
  border-color: rgba(183, 217, 86, 0.58);
  color: var(--chartreuse);
}

.hub-cap.lit-coral {
  background: rgba(221, 81, 53, 0.22);
  border-color: rgba(221, 81, 53, 0.68);
  color: #ff9c87;
}

/* Spacious, zero-clipping speech bubbles */
.bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.92);
  width: max-content;
  max-width: 235px;
  background: rgba(246, 244, 238, 0.97);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 23, 20, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 14;
  text-align: left;
}

.bubble.align-left { left: -6px; transform: translateX(0) translateY(6px) scale(0.92); }
.bubble.side-left {
  bottom: auto;
  top: 16px;
  left: auto;
  right: calc(100% + 14px);
  max-width: 220px;
  transform: translateX(8px) scale(0.92);
}

.bubble.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.bubble.align-left.show,
.bubble.side-left.show { transform: translateX(0) translateY(0) scale(1); }

.bubble.alert {
  background: #2b1814;
  color: #ffdcd4;
  border-color: rgba(221, 81, 53, 0.68);
}

/* Event stream chips (GitHub PR live card & Prometheus) */
.flow-chip {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(23, 26, 21, 0.97);
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 13px;
  padding: 8px 13px;
  text-align: left;
  z-index: 8;
  white-space: nowrap;
  pointer-events: none;
}

.flow-chip.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.flow-chip.active-amber { border-color: rgba(232, 163, 49, 0.78); box-shadow: 0 0 24px rgba(232, 163, 49, 0.28); }
.flow-chip.active-coral { border-color: rgba(221, 81, 53, 0.88); background: rgba(45, 22, 17, 0.96); box-shadow: 0 0 28px rgba(221, 81, 53, 0.44); }
.flow-chip.active-green { border-color: rgba(183, 217, 86, 0.85); background: rgba(22, 31, 18, 0.96); box-shadow: 0 0 26px rgba(183, 217, 86, 0.32); }

.fc-k { display: block; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; color: var(--cream); }
.flow-chip.active-amber .fc-k { color: var(--amber); }
.flow-chip.active-coral .fc-k { color: #ff8c75; }
.flow-chip.active-green .fc-k { color: var(--chartreuse); }
.fc-v { display: block; font-family: var(--mono); font-size: 0.65rem; color: #b1ada1; }

.filter-tag {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.4s ease;
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(221, 81, 53, 0.22);
  border: 1px solid rgba(221, 81, 53, 0.68);
  color: #ffb2a2;
  white-space: nowrap;
  z-index: 6;
}

.filter-tag.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Sub-agent satellite spawned by Jack's builder during review */
.subagent-pill {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(28, 30, 21, 0.96);
  border: 1px solid rgba(232, 163, 49, 0.7);
  box-shadow: 0 0 24px rgba(232, 163, 49, 0.28);
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--amber);
  white-space: nowrap;
  z-index: 8;
}

.subagent-pill.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sub-orb { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1.6s ease-in-out infinite; }

.code-pill {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) scale(0.86);
  opacity: 0;
  transition: all 0.35s ease;
  font-family: var(--mono);
  font-size: 0.64rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(183, 217, 86, 0.16);
  border: 1px solid rgba(183, 217, 86, 0.58);
  color: var(--chartreuse);
  white-space: nowrap;
}

.code-pill.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* Local Node Bridge + Slack DM Card */
.priv-node {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(22, 28, 20, 0.98);
  border: 1.5px solid var(--moss);
  box-shadow: 0 0 26px rgba(127, 201, 123, 0.26);
  border-radius: 14px;
  padding: 9px 14px;
  text-align: center;
  z-index: 8;
  white-space: nowrap;
}

.priv-node.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.priv-k { display: block; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; color: #9ae096; text-transform: uppercase; letter-spacing: 0.05em; }
.priv-v { display: block; font-family: var(--mono); font-size: 0.63rem; color: #b4b2a8; }

.slack-dm {
  position: absolute;
  transform: translate(-50%, -50%) translateY(10px) scale(0.92);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: 288px;
  background: rgba(246, 244, 238, 0.99);
  color: var(--ink);
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(22, 23, 20, 0.15);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
  z-index: 9;
  text-align: left;
  pointer-events: none;
}

.slack-dm.visible { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
.sd-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.sd-app { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--olive); }
.sd-lock { font-family: var(--mono); font-size: 0.62rem; padding: 2px 7px; border-radius: 999px; background: var(--stone-deep); color: var(--ink-soft); }
.sd-msg { margin: 0; font-size: 0.78rem; line-height: 1.4; color: var(--ink); }

/* Narrative subtitle + Replay CTA docked cleanly above the mycelial timeline */
.scene-subtitle-wrap {
  position: relative;
  z-index: 15;
  margin: 0 auto 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(100%, 960px);
  min-height: 60px;
}

.scene-subtitle {
  background: rgba(14, 17, 12, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 14px;
  padding: 8px 18px;
  font-size: 0.83rem;
  line-height: 1.44;
  color: var(--cream);
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.replay-cta {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(183, 217, 86, 0.85);
  background: var(--chartreuse);
  color: var(--obsidian);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(183, 217, 86, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}

.replay-cta.show {
  display: inline-flex;
  animation: fadePop 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.replay-cta:hover {
  background: #c8e86b;
  transform: translateY(-1px) scale(1.03);
}

@keyframes fadePop {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.scene-subtitle strong { color: var(--chartreuse); font-weight: 600; }
.scene-subtitle .coral-txt { color: #ff9c87; font-weight: 600; }
.scene-subtitle code { font-family: var(--mono); font-size: 0.84em; color: var(--amber); }

.code-card {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: 238px;
  background: rgba(18, 22, 16, 0.96);
  border: 1px solid rgba(183, 217, 86, 0.48);
  border-radius: 13px;
  padding: 9px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(183, 217, 86, 0.15);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: left;
  z-index: 9;
  pointer-events: none;
}

.code-card.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cc-head {
  display: flex;
  justify-content: space-between;
  color: #a9a599;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
}

.cc-add { color: var(--chartreuse); display: block; }
.cc-del { color: #ff9c87; display: block; opacity: 0.85; }
.cc-act { color: var(--amber); display: block; margin-top: 4px; }

/* Single-line Organic Mycelial Timeline (only the vine, spore dots & minimal controls) */
.myc-timeline {
  position: relative;
  z-index: 40;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  padding: 0 4px;
}

.tl-track-wrap {
  position: relative;
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
}

.tl-vine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tl-vine-bg {
  fill: none;
  stroke: rgba(244, 241, 232, 0.16);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.tl-vine-bg.thin {
  stroke: rgba(244, 241, 232, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.tl-vine-grow {
  fill: none;
  stroke: url(#vineGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-vine-grow.secondary {
  stroke: rgba(183, 217, 86, 0.45);
  stroke-width: 1.25;
}

.tl-dots {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tl-dot {
  position: relative;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(244, 241, 232, 0.3);
  background: #141712;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tl-dot:hover,
.tl-dot:focus-visible {
  border-color: var(--chartreuse);
  box-shadow: 0 0 0 4px rgba(183, 217, 86, 0.25);
  outline: none;
  z-index: 50;
}

.tl-dot.passed {
  background: var(--olive);
  border-color: var(--chartreuse);
  box-shadow: 0 0 10px rgba(183, 217, 86, 0.28);
}

.tl-dot.active {
  width: 18px;
  height: 18px;
  background: var(--chartreuse);
  border-color: var(--cream);
  box-shadow: 0 0 0 5px rgba(183, 217, 86, 0.22), 0 0 16px rgba(183, 217, 86, 0.65);
}

/* Delicate organic spore halo rings on active dot */
.tl-dot.active::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 163, 49, 0.55);
  animation: spinSlow 9s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Popover tooltip opens cleanly BELOW the timeline so it never touches the stage subtitle */
.tl-dot::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 12px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--stone-light);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.tl-dot:first-child::after { left: 0; transform: translateX(0) translateY(-4px); }
.tl-dot:last-child::after { left: auto; right: 0; transform: translateX(0) translateY(-4px); }

.tl-dot:hover::after,
.tl-dot:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tl-dot:first-child:hover::after,
.tl-dot:first-child:focus-visible::after,
.tl-dot:last-child:hover::after,
.tl-dot:last-child:focus-visible::after { transform: translateX(0) translateY(0); }

.story-transport { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.story-play-btn {
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.story-play-btn:hover { border-color: var(--chartreuse); color: var(--chartreuse); }

/* ================= VISUAL ARCHITECTURE HUB SECTION ================= */
.arch-section {
  position: relative;
  background:
    radial-gradient(ellipse 62% 52% at 50% 58%, rgba(183, 217, 86, 0.11) 0%, rgba(232, 163, 49, 0.045) 42%, transparent 74%),
    linear-gradient(180deg, #f7f5ef 0%, #f3efe6 100%);
  border-bottom: 1px solid var(--border-strong);
  padding: 84px 0 88px;
  overflow: hidden;
}

.arch-wrap {
  max-width: min(1400px, 95vw);
  padding: 0 clamp(18px, 2.4vw, 38px);
}

@media (min-width: 1720px) {
  .arch-wrap { max-width: min(1480px, 90vw); }
}

.section-intro.arch-intro { max-width: 960px; margin-bottom: 42px; position: relative; z-index: 2; }
.section-intro.arch-intro p { max-width: 760px; }
.arch-intro .spec-num { display: block; margin-bottom: 8px; }

.spec-num {
  display: block;
  font-family: var(--mono);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hub-stage {
  position: relative;
}

/* Subtle editorial botanical mycelium backdrop behind the hub board */
.hub-backdrop-web {
  position: absolute;
  inset: -34px -38px;
  width: calc(100% + 76px);
  height: calc(100% + 68px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hub-soil-veins path {
  stroke: rgba(65, 89, 29, 0.13);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.hub-soil-veins path.fine {
  stroke: rgba(65, 89, 29, 0.09);
  stroke-width: 0.9;
  stroke-dasharray: 4 6;
}

.hub-soil-spores circle {
  fill: rgba(65, 89, 29, 0.24);
}

.hub-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) clamp(50px, 5vw, 78px) clamp(246px, 20.5vw, 282px) clamp(50px, 5vw, 78px) minmax(0, 1.03fr);
  gap: 0;
  align-items: stretch;
}

.hub-right-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
  min-width: 0;
}

/* Unified rich cards (01, 02, 03) */
.hub-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #faf8f2 0%, #f1ede2 100%);
  border: 1px solid rgba(22, 23, 20, 0.12);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow:
    0 20px 44px -26px rgba(22, 23, 20, 0.3),
    0 2px 6px rgba(22, 23, 20, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-card-agents {
  border-right-color: rgba(65, 89, 29, 0.24);
}

.hub-card-sources {
  border-left-color: rgba(196, 132, 22, 0.28);
}

.hub-card-bridges {
  border-left-color: rgba(65, 118, 63, 0.28);
}

/* Delicate botanical corner veins inside each card */
.card-botanical-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 142px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.card-botanical-accent path {
  stroke: rgba(65, 89, 29, 0.14);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.card-botanical-accent path.thin {
  stroke-width: 0.85;
  opacity: 0.72;
}

.card-botanical-accent circle {
  fill: rgba(65, 89, 29, 0.25);
}

.card-botanical-accent.amber path { stroke: rgba(196, 132, 22, 0.18); }
.card-botanical-accent.amber circle { fill: rgba(196, 132, 22, 0.32); }

.card-botanical-accent.moss path { stroke: rgba(65, 118, 63, 0.18); }
.card-botanical-accent.moss circle { fill: rgba(65, 118, 63, 0.32); }

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-badge.olive {
  background: var(--obsidian);
  color: var(--chartreuse);
  box-shadow: 0 4px 12px rgba(18, 22, 16, 0.22), 0 0 0 3px rgba(183, 217, 86, 0.18);
}

.card-badge.amber {
  background: #271e12;
  color: var(--amber);
  box-shadow: 0 4px 12px rgba(39, 30, 18, 0.22), 0 0 0 3px rgba(232, 163, 49, 0.2);
}

.card-badge.moss {
  background: #142416;
  color: var(--moss);
  box-shadow: 0 4px 12px rgba(20, 36, 22, 0.22), 0 0 0 3px rgba(127, 201, 123, 0.2);
}

.card-head-meta {
  min-width: 0;
}

.card-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.card-kicker.olive { color: var(--olive); }
.card-kicker.amber { color: #9c640c; }
.card-kicker.moss { color: #2e6632; }

.card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--type-h3);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.card-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--ink-soft);
}

.card-lead code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--olive);
  background: rgba(65, 89, 29, 0.09);
  padding: 1px 5px;
  border-radius: 5px;
}

.wing-group-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 14px 0 8px;
}

.hub-card-agents .hub-tile-grid {
  gap: 9px;
}

.hub-card-agents .orch-stack {
  gap: 9px;
}

.hub-card-agents .wing-group-label {
  margin: 16px 0 9px;
}

.hub-card-agents .wing-group-label:first-of-type {
  margin-top: 2px;
}

.hub-tile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hub-card-sources .hub-tile-grid,
.hub-card-bridges .hub-tile-grid {
  margin-top: auto;
}

.hub-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fdfcf9;
  border: 1px solid rgba(22, 23, 20, 0.09);
  box-shadow: 0 1px 2px rgba(22, 23, 20, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.hub-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(65, 89, 29, 0.36);
  box-shadow: 0 8px 18px -12px rgba(22, 23, 20, 0.28);
}

.hub-tile.rich {
  padding: 10px 11px;
}

.hub-tile.custom {
  background: rgba(253, 252, 249, 0.72);
  border: 1px dashed rgba(65, 89, 29, 0.44);
}

.hub-tile.custom .tile-copy strong {
  color: var(--olive);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f1e9;
  border: 1px solid rgba(22, 23, 20, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.tile-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.tile-icon.app-icon {
  background: transparent;
  border: none;
  border-radius: 7px;
}

.tile-icon.app-icon img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.tile-icon.glyph svg {
  width: 15px;
  height: 15px;
}

.tile-icon.glyph.olive {
  background: rgba(65, 89, 29, 0.12);
  border-color: rgba(65, 89, 29, 0.18);
  color: var(--olive);
}

.tile-icon.glyph.amber {
  background: rgba(232, 163, 49, 0.16);
  border-color: rgba(232, 163, 49, 0.25);
  color: #a66909;
}

.tile-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.22;
}

.tile-copy strong {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tile-copy small {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .tile-copy small {
    font-size: 0.62rem;
  }
}

.orch-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #fdfcf9;
  border: 1px solid rgba(22, 23, 20, 0.09);
  box-shadow: 0 1px 2px rgba(22, 23, 20, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease;
  min-width: 0;
}

.orch-row:hover {
  transform: translateY(-1px);
  border-color: rgba(65, 89, 29, 0.34);
}

.orch-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.orch-nested {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.orch-nested em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.63rem;
  padding: 3px 7px 3px 5px;
  border-radius: 999px;
  background: #f1efe6;
  border: 1px solid rgba(22, 23, 20, 0.09);
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.orch-nested em img {
  width: 11px;
  height: 11px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.orch-nested em.orch-etc {
  padding: 3px 7px;
  background: rgba(241, 239, 230, 0.52);
  border: 1px dashed rgba(22, 23, 20, 0.2);
  color: var(--ink-muted);
  font-weight: 500;
}

/* Braided Organic Mycelial SVG Bridges linking Cards 01, 02, 03 into the Central Node */
.hub-bridge {
  position: relative;
  width: calc(100% + 20px);
  margin: 0 -10px;
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: stretch;
  pointer-events: none;
  z-index: 1;
}

.hub-bridge svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hub-mobile-stem {
  display: none;
  justify-content: center;
  align-items: center;
  height: 36px;
  margin: -18px 0;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.hub-mobile-stem svg {
  width: 120px;
  height: 36px;
  overflow: visible;
}

.hb-strand {
  stroke: rgba(65, 89, 29, 0.58);
  stroke-width: 1.95;
  stroke-linecap: round;
}

.hb-strand.primary {
  stroke: var(--olive);
  stroke-width: 2.35;
}

.hb-strand.amber {
  stroke: rgba(188, 122, 18, 0.74);
  stroke-width: 2.15;
}

.hb-strand.moss {
  stroke: rgba(52, 114, 56, 0.72);
  stroke-width: 2.15;
}

.hb-weave {
  stroke: rgba(65, 89, 29, 0.36);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.hb-weave.fine {
  stroke-width: 0.9;
  opacity: 0.78;
  stroke-dasharray: 5 4;
}

.hb-weave.amber { stroke: rgba(196, 132, 22, 0.44); }
.hb-weave.moss { stroke: rgba(65, 132, 68, 0.44); }

.hb-twig {
  stroke: rgba(65, 89, 29, 0.34);
  stroke-width: 1.05;
  stroke-linecap: round;
}

.hb-twig.amber { stroke: rgba(196, 132, 22, 0.44); }
.hb-twig.moss { stroke: rgba(65, 132, 68, 0.44); }

.hb-dot { fill: var(--olive); }
.hb-dot.amber { fill: #c47e12; }
.hb-dot.moss { fill: #3b7d40; }

.hb-node-port {
  fill: var(--chartreuse);
  stroke: var(--obsidian);
  stroke-width: 1.6;
}

.hb-node-port.amber { fill: var(--amber); }
.hb-node-port.moss { fill: var(--moss); }

/* Crisp circular glowing port sockets mounted directly on the central Node card flanks */
.node-port {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #12150f;
  z-index: 4;
  pointer-events: none;
}

.node-port.left {
  left: -4.5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--chartreuse);
  box-shadow: 0 0 10px rgba(183, 217, 86, 0.85);
}

.node-port.right-top {
  right: -4.5px;
  top: 44%;
  transform: translateY(-50%);
  background: var(--amber);
  box-shadow: 0 0 10px rgba(232, 163, 49, 0.85);
}

.node-port.right-bot {
  right: -4.5px;
  top: 56%;
  transform: translateY(-50%);
  background: var(--moss);
  box-shadow: 0 0 10px rgba(127, 201, 123, 0.85);
}

/* Subtle bioluminescent signal pulses drifting gently along the mycelial strands */
.hb-pulse {
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  stroke-dashoffset: 100;
  opacity: 0.88;
  animation: hbFlowForward 4.6s cubic-bezier(0.35, 0, 0.65, 1) infinite;
}

.hb-pulse.chartreuse { stroke: #9ec438; }
.hb-pulse.olive-glow { stroke: #8fb838; }
.hb-pulse.amber { stroke: var(--amber); }
.hb-pulse.moss { stroke: #68bf6a; }

.hb-pulse.slow { animation-duration: 5.8s; }
.hb-pulse.delay { animation-delay: -2.1s; animation-duration: 5.2s; }
.hb-pulse.rev { animation-name: hbFlowReverse; animation-delay: -1.4s; }

@keyframes hbFlowForward {
  0% { stroke-dashoffset: 116; opacity: 0; }
  12% { opacity: 0.92; }
  84% { opacity: 0.92; }
  100% { stroke-dashoffset: -16; opacity: 0; }
}

@keyframes hbFlowReverse {
  0% { stroke-dashoffset: -16; opacity: 0; }
  12% { opacity: 0.92; }
  84% { opacity: 0.92; }
  100% { stroke-dashoffset: 116; opacity: 0; }
}

/* Center Dark Obsidian Hyphae Node Card */
.hub-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hub-core-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: radial-gradient(circle at 50% 34%, #262e1e 0%, #151912 66%, #0f120d 100%);
  color: var(--cream);
  border: 1px solid rgba(183, 217, 86, 0.4);
  border-radius: 26px;
  padding: 22px 18px 22px;
  text-align: center;
  box-shadow:
    0 30px 60px -18px rgba(18, 22, 16, 0.62),
    0 0 0 5px rgba(183, 217, 86, 0.08),
    inset 0 1px 0 rgba(244, 241, 232, 0.14);
  overflow: visible;
}

/* Refined botanical mycelium texture echo inside the obsidian Node card */
.hub-core-mycelium {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("./assets/hero-mycelium.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.hub-core-veins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.hub-core-veins path {
  stroke: rgba(183, 217, 86, 0.16);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.hub-core-halo {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 217, 86, 0.28) 0%, rgba(232, 163, 49, 0.12) 44%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hub-core-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  background: rgba(183, 217, 86, 0.13);
  border: 1px solid rgba(183, 217, 86, 0.36);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.hub-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chartreuse);
  box-shadow: 0 0 8px var(--chartreuse);
  animation: pulse 2.6s ease-in-out infinite;
}

.hub-core-sprite-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 4px auto 10px;
}

.hub-core-img {
  position: relative;
  z-index: 1;
  width: 164px;
  height: 164px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 24px rgba(183, 217, 86, 0.28)) drop-shadow(0 0 14px rgba(232, 163, 49, 0.18));
  animation: floatBob 6s ease-in-out infinite;
}

.hub-core-title {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--serif);
  font-size: var(--type-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 12px;
  white-space: nowrap;
}

.hub-core-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.hub-core-pills span {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(244, 241, 232, 0.16);
  color: var(--cream);
  white-space: nowrap;
}

.hub-core-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 241, 232, 0.11);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.56;
  color: #bfbba9;
}

@media (prefers-reduced-motion: reduce) {
  .hb-pulse,
  .hub-live-dot,
  .hub-core-img {
    animation: none;
  }
  .hb-pulse { opacity: 0; }
}

/* ================= CLEAN COMPARISON TABLE ================= */
.section { padding: 84px 0; }

/* Crisp pure white alternating surface for #why (after dark #streams) */
.section-white {
  background: #ffffff;
  border-bottom: 1px solid rgba(22, 23, 20, 0.09);
}

.section-white .compare-shell {
  background: #faf9f5;
  border: 1px solid rgba(22, 23, 20, 0.14);
  box-shadow: 0 22px 48px -24px rgba(18, 19, 16, 0.22), 0 2px 6px rgba(18, 19, 16, 0.05);
}

/* Editorial botanical blueprint / organic mycelial contour paper surface for #install (after dark #topologies) */
.section-textured {
  position: relative;
  overflow: hidden;
  background-color: #f3efe6;
  background-image:
    radial-gradient(ellipse 56% 52% at 10% 14%, rgba(162, 196, 82, 0.13) 0%, transparent 62%),
    radial-gradient(ellipse 54% 52% at 92% 88%, rgba(219, 166, 74, 0.12) 0%, transparent 64%),
    linear-gradient(to right, rgba(65, 89, 29, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(65, 89, 29, 0.042) 1px, transparent 1px),
    linear-gradient(180deg, #f6f3eb 0%, #ede7da 100%);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px, 100% 100%;
  border-top: 1px solid rgba(22, 23, 20, 0.09);
  border-bottom: 1px solid rgba(22, 23, 20, 0.12);
}

.qs-botanical-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.qs-contour-rings ellipse {
  stroke: rgba(132, 120, 92, 0.13);
  stroke-width: 1;
}

.qs-mycelial-veins path {
  stroke: rgba(98, 116, 59, 0.15);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.qs-mycelial-veins path.fine {
  stroke: rgba(98, 116, 59, 0.11);
  stroke-width: 0.95;
  stroke-dasharray: 4 6;
}

.qs-spore-nodes circle {
  fill: rgba(98, 116, 59, 0.24);
}

.qs-wrap {
  position: relative;
  z-index: 2;
}

.qs-wrap .spec-num {
  display: block;
  margin-bottom: 8px;
}

.section-intro { max-width: 720px; margin-bottom: 30px; }

.section-intro h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.section-intro p {
  margin: 0;
  font-size: var(--type-lead);
  color: var(--ink-soft);
  line-height: 1.58;
  max-width: 64ch;
}

.compare-shell {
  background: var(--stone-light);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--type-body);
}

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.38;
}

.compare-table thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(235, 231, 221, 0.85);
  border-bottom: 1px solid var(--border-strong);
  vertical-align: top;
}

.compare-table thead th span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: rgba(246, 244, 238, 0.96);
  width: 19%;
}

.compare-table td {
  color: var(--ink-soft);
  width: 18%;
}

.compare-table td code,
.compare-table th code { font-size: 0.9em; }

.compare-table .col-hyp {
  width: 27%;
  background: rgba(23, 28, 20, 0.97);
  color: var(--cream);
  border-bottom-color: rgba(244, 241, 232, 0.11);
}

.compare-table thead th.col-hyp {
  background: var(--obsidian);
  color: var(--chartreuse);
  border-bottom-color: rgba(183, 217, 86, 0.3);
}

.compare-table thead th.col-hyp code {
  background: rgba(183, 217, 86, 0.16);
  color: var(--chartreuse);
  padding: 1px 6px;
  border-radius: 6px;
}

.compare-table .col-hyp strong { color: var(--cream); font-weight: 600; }
.compare-table .col-hyp code { color: var(--chartreuse); }

.cmp-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmp-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.cmp-val {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.cmp-val .cmp-part,
.cmp-val .cmp-no {
  margin-right: 0;
  margin-top: 1px;
}

.cmp-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(183, 217, 86, 0.38);
  background: rgba(183, 217, 86, 0.12);
  color: var(--chartreuse);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, color 0.16s ease;
}

.cmp-info-btn:hover,
.cmp-info-btn:focus-visible,
.cmp-info-btn.is-open {
  background: var(--chartreuse);
  border-color: var(--chartreuse);
  color: var(--obsidian);
  transform: scale(1.06);
  outline: none;
}

.cmp-yes,
.cmp-part,
.cmp-no {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 4px;
  vertical-align: -1px;
}

.cmp-main .cmp-yes { margin-right: 0; }
.cmp-yes { background: rgba(183, 217, 86, 0.22); color: #43571a; }
.col-hyp .cmp-yes { background: rgba(183, 217, 86, 0.24); color: var(--chartreuse); }
.cmp-part { background: rgba(232, 163, 49, 0.2); color: #8c5a08; }
.cmp-no { background: rgba(22, 23, 20, 0.08); color: var(--ink-muted); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-foot-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(235, 231, 221, 0.56);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.compare-foot-hint strong {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--obsidian);
  color: var(--chartreuse);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  margin: 0 2px;
  vertical-align: -1px;
}

.compare-swipe-hint {
  display: none;
  color: var(--olive);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Floating accessible popover card (mounted on body — never clipped by table overflow!) */
.cmp-popover {
  position: absolute;
  z-index: 95;
  width: min(304px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b2017 0%, #121510 100%);
  border: 1px solid rgba(183, 217, 86, 0.42);
  color: var(--cream);
  box-shadow: 0 22px 46px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cmp-popover.show {
  opacity: 1;
  transform: translateY(0);
}

.cmp-popover::after {
  content: "";
  position: absolute;
  left: var(--pop-arrow-x, 50%);
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #121510;
  border-right: 1px solid rgba(183, 217, 86, 0.42);
  border-bottom: 1px solid rgba(183, 217, 86, 0.42);
}

.cmp-popover.below::after {
  top: -6px;
  bottom: auto;
  background: #1b2017;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(183, 217, 86, 0.42);
  border-top: 1px solid rgba(183, 217, 86, 0.42);
}

.cmp-pop-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--chartreuse);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.cmp-pop-body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e4e0d5;
}

/* ================= DARK STREAMS, CLOUDEVENTS SPEC & BRIDGES BAND ================= */
.dark-band {
  position: relative;
  background-color: var(--obsidian);
  background-image: url("./assets/streams-plate.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cream);
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 19, 16, 0.78) 0%, rgba(18, 19, 16, 0.64) 50%, rgba(18, 19, 16, 0.86) 100%);
  pointer-events: none;
}

.dark-band .wrap { position: relative; z-index: 2; }

.dark-band h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--cream);
}

.dark-band h2 em { font-style: italic; color: var(--chartreuse); font-weight: 400; }

.dark-sub { margin: 0 0 22px; font-size: var(--type-lead); line-height: 1.58; color: #e2ded2; max-width: 68ch; }
.dark-sub strong { color: var(--cream); font-weight: 600; }
.dark-sub code { font-family: var(--mono); font-size: 0.88em; color: var(--chartreuse); }

/* 4-column Delivery Modes Legend Strip directly under #streams subtitle */
.gate-modes-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.gms-item {
  background: rgba(16, 20, 14, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 241, 232, 0.11);
  border-radius: 14px;
  padding: 12px 14px;
}

.gms-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.gms-head strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.gms-def {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chartreuse);
  background: rgba(183, 217, 86, 0.14);
  border: 1px solid rgba(183, 217, 86, 0.32);
  padding: 1px 6px;
  border-radius: 999px;
}

.gms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gms-dot.coral { background: #ff7a5c; box-shadow: 0 0 8px rgba(255, 122, 92, 0.7); }
.gms-dot.olive { background: var(--chartreuse); box-shadow: 0 0 8px rgba(183, 217, 86, 0.65); }
.gms-dot.amber { background: var(--amber); box-shadow: 0 0 8px rgba(232, 163, 49, 0.65); }
.gms-dot.slate { background: #8f8c81; }

.gms-item p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.46;
  color: #c2beb2;
}

.gms-item code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #e6d8ad;
}

/* ================= LOCAL NODE INBOUND CONTROL GATE ANIMATION ================= */
.gate-shell {
  background: rgba(14, 17, 13, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(183, 217, 86, 0.24);
  border-radius: 24px;
  padding: 16px 18px 16px;
  margin-bottom: 0;
  box-shadow: 0 32px 68px -20px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(244, 241, 232, 0.08);
}

/* Desktop/Laptop proportionally scaled 1120x456 interactive organic stage */
.gate-viewport {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 46% 64% at 50% 34%, rgba(183, 217, 86, 0.11) 0%, rgba(232, 163, 49, 0.045) 46%, transparent 74%),
    linear-gradient(180deg, rgba(16, 20, 14, 0.92) 0%, rgba(11, 14, 10, 0.97) 100%);
  border: 1px solid rgba(244, 241, 232, 0.08);
}

.gate-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1120px;
  height: 488px;
  transform-origin: top left;
  overflow: hidden;
}

.gate-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gate-soil-web path {
  fill: none;
  stroke: rgba(183, 217, 86, 0.08);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-dasharray: 4 7;
}

.gate-strand {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.85;
  filter: url(#gateGlow);
  transition: opacity 0.4s ease, stroke-dasharray 0.35s ease, stroke 0.35s ease;
}

.gate-strand.peer { stroke: var(--chartreuse); }
.gate-strand.amber { stroke: var(--amber); }
.gate-strand.amber-muted { stroke: #d19b47; }
.gate-strand.coral { stroke: var(--coral); }
.gate-strand.olive { stroke: #8fb44d; }
.gate-strand.moss { stroke: var(--moss); }
.gate-strand.soft-bridge { opacity: 0.52; stroke-width: 1.7; }
.gate-strand.unified {
  stroke: var(--chartreuse);
  stroke-width: 2.75;
  opacity: 0.94;
}

.gate-strand.unified.urgent {
  stroke: #ff7a5c;
  stroke-width: 3.1;
}

.gate-strand.unified.notify-mode {
  stroke: var(--amber);
  stroke-width: 2.4;
  opacity: 0.86;
}

/* Luminous curved Gate-Shield Arc on left intake rim of Local Node */
.gate-shield-arc {
  fill: none;
  stroke: rgba(232, 163, 49, 0.42);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.32;
  transition: opacity 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.gate-shield-arc.hit-amber {
  stroke: #f6b94c;
  stroke-width: 3.4;
  opacity: 0.96;
}

.gate-shield-arc.hit-coral {
  stroke: #ff7a5c;
  stroke-width: 3.5;
  opacity: 0.98;
}

.gate-dock-stem {
  fill: none;
  stroke: rgba(183, 217, 86, 0.56);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.gate-dock-port {
  fill: var(--chartreuse);
  stroke: #11160f;
  stroke-width: 2;
}

.gate-strand.dim {
  opacity: 0.22;
  filter: none;
}

.gate-strand.blocked {
  opacity: 0.44;
  stroke-dasharray: 5 5;
  filter: none;
}

.gate-strand.detached {
  opacity: 0.24;
  stroke-dasharray: 3 8;
  filter: none;
}

/* Braided companion hyphae inside the Gate stage */
.gate-bundle {
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.gate-bundle.dim { opacity: 0.16; }
.gate-bundle.blocked { opacity: 0.3; }
.gate-bundle.detached { opacity: 0.12; }

.gate-bundle .gb-weave {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: 0.44;
}

.gate-bundle .gb-weave.fine {
  stroke-width: 0.72;
  opacity: 0.3;
  stroke-dasharray: 5 4;
}

.gate-bundle .gb-twig {
  fill: none;
  stroke: var(--chartreuse);
  stroke-width: 0.82;
  stroke-linecap: round;
  opacity: 0.36;
}

.gate-bundle.amber .gb-weave,
.gate-bundle.amber .gb-twig,
.gate-bundle.amber-muted .gb-weave,
.gate-bundle.amber-muted .gb-twig { stroke: var(--amber); }

.gate-bundle.coral .gb-weave,
.gate-bundle.coral .gb-twig { stroke: var(--coral); }

.gate-bundle.olive .gb-weave,
.gate-bundle.olive .gb-twig { stroke: #8fb44d; }

.gate-bundle.moss .gb-weave,
.gate-bundle.moss .gb-twig { stroke: var(--moss); }

.gate-col-tag {
  position: absolute;
  z-index: 5;
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.46);
  pointer-events: none;
  white-space: nowrap;
}

.gate-col-tag.center,
.gate-col-tag.right {
  transform: translateX(-50%);
}

/* Left Visually Nested Parent-Node Groups (Team Node, Public Node, Private Keychain & P2P) */
.gate-sources {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.gate-group {
  position: absolute;
  left: 14px;
  width: 292px;
  border-radius: 14px;
  background: rgba(18, 22, 16, 0.94);
  border: 1px solid rgba(244, 241, 232, 0.14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  transition: border-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.gate-group.team {
  border-color: rgba(183, 217, 86, 0.3);
}

.gate-group.public {
  pointer-events: auto;
  cursor: pointer;
  border-color: rgba(232, 163, 49, 0.5);
}

.gate-group.public:hover,
.gate-group.public:focus-visible {
  border-color: rgba(244, 189, 86, 0.85);
  box-shadow: 0 0 0 2px rgba(232, 163, 49, 0.2), 0 14px 28px rgba(0, 0, 0, 0.52);
  outline: none;
}

.gate-group.public.is-unlinked {
  border-style: dashed;
  border-color: rgba(244, 241, 232, 0.2);
  background: rgba(17, 20, 15, 0.72);
  opacity: 0.74;
}

.gate-group.public.is-unlinked:hover {
  opacity: 0.96;
  border-color: rgba(232, 163, 49, 0.6);
}

.gate-group.private {
  border-color: rgba(127, 201, 123, 0.34);
}

.gg-head {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.038);
  border-bottom: 1px solid rgba(244, 241, 232, 0.09);
}

.gate-group.team .gg-head {
  background: linear-gradient(90deg, rgba(183, 217, 86, 0.12) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.gate-group.public:not(.is-unlinked) .gg-head {
  background: linear-gradient(90deg, rgba(232, 163, 49, 0.14) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.gate-group.private .gg-head {
  background: linear-gradient(90deg, rgba(127, 201, 123, 0.13) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.gg-thumb {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(183, 217, 86, 0.45);
}

.gg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gg-dot.amber { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.gg-dot.moss { background: var(--moss); box-shadow: 0 0 7px var(--moss); }
.gate-group.public.is-unlinked .gg-dot.amber { background: #7b776b; box-shadow: none; }

.gg-title {
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.gg-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  color: #a6a295;
  white-space: nowrap;
  flex-shrink: 0;
}

.gg-status.paired { color: var(--chartreuse); }
.gg-status.paired i {
  display: block;
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: var(--chartreuse);
  box-shadow: 0 0 6px var(--chartreuse);
}

.gg-status.linked { color: #ffd07a; }
.gg-status.moss { color: #9ae096; }

.gg-rows {
  display: flex;
  flex-direction: column;
}

.gate-src {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 10px 0 13px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.065);
  transition: opacity 0.25s ease, background 0.25s ease;
}

.gate-src:last-child {
  border-bottom: none;
}

.gate-group.public .gate-src {
  height: 41px;
}

.gate-group.private .gate-src {
  height: 46px;
}

.gate-src::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(244, 241, 232, 0.14);
}

.gate-src.state-pass::before { background: rgba(183, 217, 86, 0.72); }
.gate-src.moss.state-pass::before { background: rgba(127, 201, 123, 0.78); }
.gate-src.amber.state-pass::before { background: rgba(232, 163, 49, 0.78); }
.gate-src.state-urgent::before { background: #ff7a5c; }
.gate-src.state-notify::before { background: rgba(232, 163, 49, 0.74); }
.gate-src.state-muted::before { background: rgba(221, 81, 53, 0.62); }

.gate-src.state-urgent {
  background: rgba(221, 81, 53, 0.14);
}

.gate-src.state-muted {
  opacity: 0.76;
}

.gate-src.state-detached,
.gate-src.state-idle {
  opacity: 0.56;
}

.gs-bridge-icos {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.gs-bridge-icos span {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #f6f4ee;
  display: grid;
  place-items: center;
  padding: 2.5px;
}

.gs-bridge-icos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--chartreuse);
  box-shadow: 0 0 7px currentColor;
}

.gate-src.amber .gs-dot,
.gate-src.amber-soft .gs-dot { background: var(--amber); color: var(--amber); }
.gate-src.amber-muted .gs-dot { background: #c99748; color: #c99748; }
.gate-src.coral .gs-dot { background: var(--coral); color: var(--coral); }
.gate-src.olive .gs-dot { background: #8fb44d; color: #8fb44d; }
.gate-src.moss .gs-dot { background: var(--moss); color: var(--moss); }
.gate-src.state-detached .gs-dot { background: #737065; box-shadow: none; }

.gs-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.18;
}

.gs-text strong {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
}

.gs-text small {
  font-family: var(--mono);
  font-size: 0.56rem;
  color: #a6a295;
  white-space: nowrap;
  margin-top: 1px;
}

/* Crisp status badges on incoming wire rows (monitors reflecting Local Node rules) */
.gs-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(183, 217, 86, 0.16);
  border: 1px solid rgba(183, 217, 86, 0.48);
  color: var(--chartreuse);
}

.gate-src.state-blocked .gs-badge,
.gm-mob-row.state-blocked .gs-badge {
  background: rgba(232, 163, 49, 0.16);
  border-color: rgba(232, 163, 49, 0.56);
  color: #ffd07a;
}

.gate-src.state-muted .gs-badge,
.gm-mob-row.state-muted .gs-badge {
  background: rgba(221, 81, 53, 0.2);
  border-color: rgba(221, 81, 53, 0.62);
  color: #ffa591;
}

.gate-src.state-urgent,
.gm-mob-row.state-urgent {
  border-color: rgba(255, 118, 86, 0.82);
  box-shadow: 0 0 18px rgba(221, 81, 53, 0.28), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.gate-src.state-urgent .gs-badge,
.gm-mob-row.state-urgent .gs-badge {
  background: rgba(221, 81, 53, 0.28);
  border-color: rgba(255, 128, 98, 0.86);
  color: #ffc5b8;
  box-shadow: 0 0 10px rgba(221, 81, 53, 0.36);
}

.gate-src.state-notify,
.gm-mob-row.state-notify {
  border-color: rgba(232, 163, 49, 0.5);
}

.gate-src.state-notify .gs-badge,
.gm-mob-row.state-notify .gs-badge {
  background: rgba(232, 163, 49, 0.18);
  border-color: rgba(232, 163, 49, 0.58);
  color: #ffd07a;
}

.gate-src.state-batched .gs-badge,
.gm-mob-row.state-batched .gs-badge {
  background: rgba(232, 163, 49, 0.16);
  border-color: rgba(232, 163, 49, 0.5);
  color: #f4c469;
}

.gate-src.state-warn .gs-badge,
.gm-mob-row.state-warn .gs-badge {
  background: rgba(221, 81, 53, 0.28);
  border-color: rgba(255, 128, 102, 0.8);
  color: #ffd0c4;
}

.gate-src.state-detached .gs-badge,
.gate-src.state-idle .gs-badge,
.gm-mob-row.state-detached .gs-badge,
.gm-mob-row.state-idle .gs-badge {
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.2);
  color: #9e9a8d;
}

/* ================= macOS-CONTROL-CENTER-INSPIRED LOCAL NODE MODULE ================= */
.gate-cc {
  position: absolute;
  transform: translateX(-50%);
  width: 348px;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(35, 39, 33, 0.74) 0%, rgba(22, 25, 21, 0.82) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(246, 244, 238, 0.17);
  box-shadow:
    0 24px 52px -12px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  z-index: 10;
  pointer-events: auto;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cc-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 12px 0 10px;
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(58, 62, 55, 0.56) 0%, rgba(39, 43, 37, 0.64) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px -8px rgba(0, 0, 0, 0.52);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.cc-tile:hover,
.cc-tile:focus-visible {
  transform: translateY(-1.5px);
  background: linear-gradient(180deg, rgba(72, 77, 68, 0.68) 0%, rgba(48, 53, 45, 0.74) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px -8px rgba(0, 0, 0, 0.64);
  outline: none;
}

.cc-tile:active {
  transform: scale(0.98);
}

/* Bright liquid-glass active state — crisp ivory medallion just like macOS Control Center! */
.cc-tile.is-on {
  background: linear-gradient(180deg, rgba(74, 82, 66, 0.62) 0%, rgba(46, 52, 42, 0.7) 100%);
  border-color: rgba(245, 243, 236, 0.24);
}

.cc-tile.is-urgent {
  background: linear-gradient(180deg, rgba(96, 46, 36, 0.72) 0%, rgba(58, 28, 22, 0.8) 100%);
  border-color: rgba(255, 138, 112, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 198, 0.28),
    0 0 22px rgba(221, 81, 53, 0.28),
    0 8px 18px -8px rgba(0, 0, 0, 0.56);
}

.cc-tile.is-amber {
  background: linear-gradient(180deg, rgba(84, 68, 38, 0.66) 0%, rgba(52, 42, 24, 0.74) 100%);
  border-color: rgba(246, 198, 102, 0.34);
}

.cc-tile.is-danger {
  background: linear-gradient(180deg, rgba(78, 32, 26, 0.68) 0%, rgba(48, 20, 17, 0.78) 100%);
  border-color: rgba(255, 118, 92, 0.48);
}

.cc-medallion {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(244, 241, 232, 0.14);
  color: rgba(244, 241, 232, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cc-medallion svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Crisp bright warm-white medallion when ON/active! */
.cc-tile.is-on .cc-medallion,
.cc-tile.is-amber .cc-medallion,
.cc-tile.is-urgent .cc-medallion {
  background: #f5f3ec;
  color: #161813;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.36), 0 0 14px rgba(245, 243, 236, 0.24);
}

.cc-tile.is-urgent .cc-medallion {
  color: #c73c20;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.36), 0 0 16px rgba(255, 122, 92, 0.44);
}

.cc-tile.is-amber .cc-medallion {
  color: #9e6308;
}

.cc-tile.is-danger .cc-medallion {
  background: rgba(221, 81, 53, 0.26);
  color: #ff9f8a;
}

.cc-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.cc-copy strong {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8f6f0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cc-copy small {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(238, 234, 224, 0.66);
  margin-top: 2px;
  white-space: nowrap;
}

.cc-tile.is-on .cc-copy small { color: #d9ec9d; }
.cc-tile.is-amber .cc-copy small { color: #ffd78b; }
.cc-tile.is-urgent .cc-copy small { color: #ffbeb0; }
.cc-tile.is-danger .cc-copy small { color: #ffb2a1; }

/* Full-width tactile CI Burst Cap slider capsule (macOS Display/Sound bar inspiration!) */
.cc-slider-card {
  margin-top: 8px;
  padding: 9px 11px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(58, 62, 55, 0.56) 0%, rgba(39, 43, 37, 0.64) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}

.cc-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.cc-slider-head strong {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: #f8f6f0;
}

.cc-slider-head span {
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 600;
  color: #ffd78b;
}

.cc-slider-card[data-ci-state="unsub"] .cc-slider-head span { color: #b7b3a6; }
.cc-slider-card[data-ci-state="all"] .cc-slider-head span { color: #ffab98; }

.cc-slider-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  height: 26px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(14, 17, 13, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cc-slider-fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 243, 236, 0.88) 0%, #f5f3ec 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 243, 236, 0.28);
  transition: width 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.cc-slider-card[data-ci-state="unsub"] .cc-slider-fill {
  background: linear-gradient(90deg, rgba(226, 223, 214, 0.72) 0%, rgba(245, 243, 236, 0.88) 100%);
}

.cc-slider-card[data-ci-state="all"] .cc-slider-fill {
  background: linear-gradient(90deg, #ff9982 0%, #f5f3ec 100%);
}

.cc-step {
  position: relative;
  z-index: 2;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  color: rgba(244, 241, 232, 0.68);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 4px;
  transition: color 0.18s ease;
}

.cc-step:hover { color: var(--cream); }
.cc-step.active,
.cc-step.covered { color: #161813; font-weight: 700; }

/* Tiny centered "Reset Controls" frosted pill right beneath the widget (macOS "Edit Controls" aesthetic!) */
.cc-reset-pill {
  position: absolute;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(54, 58, 51, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.42);
  color: rgba(244, 241, 232, 0.82);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.cc-reset-pill:hover,
.cc-reset-pill:focus-visible {
  background: rgba(76, 82, 72, 0.78);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateX(-50%) translateY(-1px);
  outline: none;
}

/* Center: Local Node (Control Gate) */
.gate-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 8;
  pointer-events: none;
}

.gate-valve-ring {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(183, 217, 86, 0.42);
  box-shadow: 0 0 32px rgba(183, 217, 86, 0.16);
  animation: gateSpin 26s linear infinite;
  pointer-events: none;
}

.gate-valve-ring.mode-coalesce {
  border-color: rgba(232, 163, 49, 0.56);
  box-shadow: 0 0 34px rgba(232, 163, 49, 0.22);
}

.gate-valve-ring.mode-guard,
.gate-valve-ring.mode-mute {
  border-color: rgba(221, 81, 53, 0.54);
  box-shadow: 0 0 36px rgba(221, 81, 53, 0.22);
}

.gate-valve-ring.mode-digest {
  border-color: rgba(232, 163, 49, 0.52);
  box-shadow: 0 0 34px rgba(232, 163, 49, 0.2);
}

.gate-valve-ring.mode-unsub {
  border-color: rgba(127, 201, 123, 0.42);
  box-shadow: 0 0 28px rgba(127, 201, 123, 0.14);
}

@keyframes gateSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.gate-node-ripple {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid var(--chartreuse);
  opacity: 0;
  pointer-events: none;
}

.gate-node-ripple.fire { animation: rippleOut 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.gate-node-ripple.amber { border-color: var(--amber); }
.gate-node-ripple.coral { border-color: var(--coral); }

.gate-node-sprite {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  margin-top: 8px;
  animation: floatBob 5.6s ease-in-out infinite;
}

.gate-node-sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 18px rgba(183, 217, 86, 0.28));
}

.gate-node-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.18;
}

.gate-node-sub {
  font-family: var(--mono);
  font-size: 0.59rem;
  color: #a9a598;
  margin-top: 2px;
  white-space: nowrap;
}

/* Right: Your Agent Avatar + Matching macOS Focus Tile + Telemetry Card */
.gate-agent-head {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 9;
  pointer-events: none;
}

.cc-focus-tile {
  position: absolute;
  transform: translateX(-50%);
  width: 238px;
  z-index: 10;
}

.cc-focus-tile:hover,
.cc-focus-tile:focus-visible {
  transform: translateX(-50%) translateY(-1.5px);
}

.cc-focus-tile:active {
  transform: translateX(-50%) scale(0.98);
}

.gate-meter-stage {
  position: absolute;
  transform: translateX(-50%);
  width: 238px;
  margin-top: 0;
  z-index: 9;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 29, 23, 0.9) 0%, rgba(16, 20, 14, 0.94) 100%);
  border: 1px solid rgba(244, 241, 232, 0.13);
  padding: 12px 13px;
}

.gm-bar span.danger {
  background: linear-gradient(90deg, #b8381f 0%, var(--coral) 100%);
}

.gm-mob-cc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.gm-mob-cc .cc-grid {
  gap: 7px;
}

.gm-mob-cc .cc-tile {
  height: 50px;
  padding: 0 9px 0 8px;
  gap: 8px;
}

.gm-mob-cc .cc-medallion {
  width: 30px;
  height: 30px;
}

.gm-mob-cc .cc-medallion svg {
  width: 15px;
  height: 15px;
}

.gm-mob-cc .cc-copy strong { font-size: 0.71rem; }
.gm-mob-cc .cc-copy small { font-size: 0.6rem; }

.gm-mob-reset {
  align-self: center;
  position: static;
  transform: none;
  margin-top: 2px;
}

.gm-mob-reset:hover {
  transform: translateY(-1px);
}

.gm-mob-agent .cc-focus-tile {
  position: static;
  transform: none;
  width: 100%;
}

.gm-mob-agent .cc-focus-tile:hover {
  transform: translateY(-1px);
}

.gate-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.gate-avatar-ring {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #161b15;
  border: 2.5px solid rgba(183, 217, 86, 0.68);
  box-shadow: 0 0 24px rgba(183, 217, 86, 0.24), 0 14px 26px rgba(0, 0, 0, 0.56);
  animation: floatBob 4.8s ease-in-out infinite;
}

.gate-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate-agent-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--chartreuse);
  opacity: 0;
  pointer-events: none;
}

.gate-agent-ripple.fire { animation: rippleOut 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.gate-agent-name {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(16, 18, 14, 0.88);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  white-space: nowrap;
}

.gate-agent-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: #a9a598;
  white-space: nowrap;
}

.gate-meter {
  margin-top: 10px;
  width: 100%;
  background: rgba(19, 23, 17, 0.94);
  border: 1px solid rgba(244, 241, 232, 0.13);
  border-radius: 13px;
  padding: 9px 11px;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.gate-meter.gate-meter-stage {
  position: absolute;
  transform: translateX(-50%);
  width: 238px;
  margin-top: 0;
  z-index: 9;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 29, 23, 0.9) 0%, rgba(16, 20, 14, 0.94) 100%);
  border: 1px solid rgba(244, 241, 232, 0.14);
  padding: 12px 13px;
  overflow: hidden;
}

.gm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.63rem;
  color: #b5b1a4;
  margin-bottom: 5px;
  min-width: 0;
}

.gm-row span {
  white-space: nowrap;
  flex-shrink: 0;
}

.gm-row strong {
  color: var(--chartreuse);
  font-weight: 600;
  white-space: nowrap;
}

.gm-row strong.amber { color: var(--amber); }
.gm-row strong.coral { color: #ff9c87; }

.gm-bar-wrap {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
}

.gm-bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.61rem;
  color: #b5b1a4;
  margin-bottom: 4px;
}

.gm-bar-head strong { color: var(--chartreuse); }

.gm-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.1);
  overflow: hidden;
}

.gm-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive) 0%, var(--chartreuse) 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-foot {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.57rem;
  line-height: 1.35;
  color: #939084;
  white-space: normal;
  max-width: 100%;
  overflow: hidden;
}

/* Floating packets inside the Gate animation */
.gate-pkt {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px 2.5px 6px;
  border-radius: 999px;
  background: rgba(14, 18, 12, 0.96);
  border: 1px solid rgba(183, 217, 86, 0.72);
  color: var(--chartreuse);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.56), 0 0 14px rgba(183, 217, 86, 0.24);
  will-change: left, top, opacity, transform;
}

.gate-pkt .gp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.gate-pkt.amber { border-color: rgba(232, 163, 49, 0.8); color: var(--amber); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.56), 0 0 14px rgba(232, 163, 49, 0.24); }
.gate-pkt.coral { background: rgba(38, 17, 13, 0.96); border-color: rgba(221, 81, 53, 0.82); color: #ff9c87; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.56), 0 0 16px rgba(221, 81, 53, 0.34); }
.gate-pkt.moss { border-color: rgba(127, 201, 123, 0.8); color: #9ae096; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.56), 0 0 14px rgba(127, 201, 123, 0.24); }
.gate-pkt.blocked { background: rgba(34, 24, 14, 0.96); border-color: rgba(232, 163, 49, 0.76); color: #f2bd66; }

/* Hard gate-shield deflection visual on dropped/muted/unsub packets */
.gate-pkt.hit-drop {
  background: rgba(46, 18, 13, 0.98);
  border-color: rgba(242, 108, 79, 0.95);
  color: #ffb2a1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(221, 81, 53, 0.5);
}

.gate-pkt.hit-drop .gp-label {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.gate-pkt.hit-drop::after {
  content: "✕";
  margin-left: 2px;
  font-weight: 700;
  color: #ff7e66;
}

/* Ephemeral floating chip at the gate shield confirming zero-token drop */
.gate-drop-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 16;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(44, 20, 14, 0.96);
  border: 1px solid rgba(242, 108, 79, 0.88);
  color: #ffb09e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.62), 0 0 16px rgba(221, 81, 53, 0.42);
  will-change: transform, opacity;
}

.gate-drop-tag.amber {
  background: rgba(40, 28, 12, 0.96);
  border-color: rgba(232, 163, 49, 0.88);
  color: #ffd07a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.62), 0 0 16px rgba(232, 163, 49, 0.36);
}

.gate-merge-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 16;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(24, 34, 16, 0.96);
  border: 1px solid rgba(183, 217, 86, 0.86);
  color: var(--chartreuse);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.58), 0 0 16px rgba(183, 217, 86, 0.34);
  will-change: transform, opacity;
}

.gate-deflect-burst {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  box-shadow: 0 0 14px var(--amber);
  pointer-events: none;
  z-index: 11;
  transform: translate(-50%, -50%) scale(0.4);
  animation: pktLand 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gate-deflect-burst.coral { border-color: var(--coral); box-shadow: 0 0 14px var(--coral); }
.gate-deflect-burst.green { border-color: var(--chartreuse); box-shadow: 0 0 14px var(--chartreuse); }

/* Dedicated legible mobile Control-Gate flow (hidden on desktop) */
.gate-mobile {
  display: none;
}

.gm-mob-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gm-mob-group {
  border-radius: 14px;
  background: rgba(18, 22, 16, 0.94);
  border: 1px solid rgba(244, 241, 232, 0.13);
  overflow: hidden;
}

.gm-mob-group.team { border-color: rgba(183, 217, 86, 0.3); }
.gm-mob-group.public { border-color: rgba(232, 163, 49, 0.46); cursor: pointer; }
.gm-mob-group.public.is-unlinked { border-style: dashed; border-color: rgba(244, 241, 232, 0.2); opacity: 0.76; }
.gm-mob-group.private { border-color: rgba(127, 201, 123, 0.34); }

.gm-mob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  border-bottom: 1px solid rgba(244, 241, 232, 0.065);
}

.gm-mob-row:last-child { border-bottom: none; }
.gm-mob-row.state-muted { opacity: 0.78; }
.gm-mob-row.state-detached,
.gm-mob-row.state-idle { opacity: 0.56; }

.gm-mob-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gm-mob-left strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cream);
}

.gm-mob-left small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #a6a295;
}

.gm-mob-stem {
  display: flex;
  justify-content: center;
  height: 22px;
}

.gm-mob-stem svg { width: 64px; height: 22px; overflow: visible; }

.gm-mob-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 50%, rgba(183, 217, 86, 0.16) 0%, rgba(18, 22, 16, 0.96) 65%);
  border: 1px solid rgba(183, 217, 86, 0.4);
}

.gm-mob-node img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.gm-mob-node-body { min-width: 0; }
.gm-mob-node-body strong { display: block; font-family: var(--serif); font-size: 1rem; color: var(--cream); }
.gm-mob-node-body span { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--chartreuse); margin-top: 2px; }
.gm-mob-node-body small { display: block; font-family: var(--mono); font-size: 0.6rem; color: #b8b4a6; margin-top: 2px; }

.gm-mob-agent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(19, 23, 17, 0.94);
  border: 1px solid rgba(244, 241, 232, 0.14);
}

.gm-mob-agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gm-mob-agent-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(183, 217, 86, 0.65);
  object-fit: cover;
  flex-shrink: 0;
}

.gm-mob-agent-head strong { display: block; font-family: var(--mono); font-size: 0.76rem; color: var(--cream); }
.gm-mob-agent-head small { display: block; font-family: var(--mono); font-size: 0.63rem; color: #a9a598; }

@media (prefers-reduced-motion: reduce) {
  .gate-valve-ring,
  .gate-node-sprite,
  .gate-avatar-ring {
    animation: none;
  }
}

/* ================= COMPACT DARK TOPOLOGIES BAND (#topologies) ================= */
.topo-band {
  padding: 64px 0 70px;
  background-color: var(--obsidian);
  background-image:
    radial-gradient(ellipse 58% 60% at 18% 50%, rgba(127, 201, 123, 0.095) 0%, transparent 62%),
    radial-gradient(ellipse 50% 56% at 86% 62%, rgba(232, 163, 49, 0.085) 0%, transparent 64%),
    linear-gradient(180deg, #131611 0%, #10130e 100%);
}

.topo-band::before {
  background:
    radial-gradient(rgba(183, 217, 86, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 19, 14, 0.5) 0%, rgba(16, 19, 14, 0.3) 50%, rgba(16, 19, 14, 0.58) 100%);
  background-size: 26px 26px, 100% 100%;
}

.topo-intro {
  margin-bottom: 26px;
}

.topo-intro h2 {
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 10px;
}

.topo-intro .dark-sub {
  margin: 0;
  font-size: var(--type-lead);
  max-width: 64ch;
}

.topo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topo-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 28, 22, 0.94) 0%, rgba(15, 18, 13, 0.96) 100%);
  border: 1px solid rgba(244, 241, 232, 0.13);
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.topo-card:hover {
  border-color: rgba(244, 241, 232, 0.24);
  transform: translateY(-2px);
}

.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tc-emblem {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.tc-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(183, 217, 86, 0.56);
  background: #171c15;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.48), 0 0 14px rgba(183, 217, 86, 0.18);
  flex-shrink: 0;
}

.tc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-av.hub {
  width: 46px;
  height: 46px;
  border-color: rgba(183, 217, 86, 0.65);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.52), 0 0 18px rgba(183, 217, 86, 0.24);
}

.tc-av.pub {
  width: 46px;
  height: 46px;
  padding: 3px;
  border-color: rgba(232, 163, 49, 0.62);
  background: radial-gradient(circle, rgba(232, 163, 49, 0.22) 0%, #181a13 72%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.52), 0 0 20px rgba(232, 163, 49, 0.26);
}

.tc-av.pub img {
  object-fit: contain;
}

.tc-mini-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(232, 163, 49, 0.45);
  background: #171b14;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.tc-mini-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-link-svg {
  width: 38px;
  height: 22px;
  margin: 0 -2px;
  flex-shrink: 0;
}

.tc-strand-soft {
  stroke: rgba(183, 217, 86, 0.34);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.tc-strand-main {
  stroke: var(--chartreuse);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(183, 217, 86, 0.65));
}

.tc-spark {
  fill: var(--chartreuse);
  filter: drop-shadow(0 0 6px var(--chartreuse));
}

.tc-flank-svg {
  width: 28px;
  height: 34px;
  flex-shrink: 0;
}

.tc-flank-svg path {
  stroke: rgba(183, 217, 86, 0.48);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.tc-flank-svg circle {
  fill: var(--chartreuse);
  filter: drop-shadow(0 0 5px rgba(183, 217, 86, 0.7));
}

.tc-arc-svg {
  width: 20px;
  height: 26px;
  margin: 0 -2px;
  flex-shrink: 0;
}

.tc-arc-svg path {
  stroke: rgba(232, 163, 49, 0.65);
  stroke-width: 1.45;
  stroke-linecap: round;
}

.tc-arc-svg path.fine {
  stroke: rgba(232, 163, 49, 0.32);
  stroke-width: 1;
  stroke-dasharray: 2.5 2.5;
}

.tc-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #bab6a8;
  background: rgba(244, 241, 232, 0.06);
  border: 1px solid rgba(244, 241, 232, 0.13);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.topo-card h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: var(--type-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.tc-desc {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.54;
  color: #ccc8bc;
}

.tc-desc code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #eadbb0;
}

.tc-cmd {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px 8px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 9, 0.94);
  border: 1px solid rgba(244, 241, 232, 0.12);
  min-width: 0;
}

.tc-cmd code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #dce8b5;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .tc-cmd {
    padding: 7px 6px 7px 8px;
    gap: 4px;
  }
  .tc-cmd code {
    font-size: 0.57rem;
  }
  .topo-copy-btn {
    padding: 2px 6px;
    font-size: 0.58rem;
  }
}

.topo-copy-btn {
  border: 1px solid rgba(244, 241, 232, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.topo-copy-btn:hover {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
}

/* ================= QUICK START ================= */
.qs-wrap .section-intro {
  margin-bottom: 102px;
}

.qs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.qs-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #161914 0%, #10130e 100%);
  color: var(--cream);
  border: 1px solid rgba(183, 217, 86, 0.22);
  border-radius: 22px;
  padding: 20px 24px 20px;
  box-shadow: 0 26px 56px -22px rgba(18, 19, 16, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Cute transparent mushroom coding agent perched on top-right ledge of the terminal card */
.qs-sitter {
  position: absolute;
  right: 20px;
  top: -94px;
  height: 132px;
  width: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 6;
  filter: drop-shadow(0 10px 16px rgba(10, 12, 9, 0.34));
}

.qs-chrome {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 24px;
  margin-bottom: 14px;
  padding-right: 112px;
}

.qs-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qs-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.18);
}

.qs-dots i:first-child { background: rgba(221, 81, 53, 0.56); }
.qs-dots i:nth-child(2) { background: rgba(232, 163, 49, 0.56); }
.qs-dots i:nth-child(3) { background: rgba(183, 217, 86, 0.58); }

.qs-chrome-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #a6a295;
  white-space: nowrap;
}

.qs-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--obsidian-border);
  margin-bottom: 18px;
}

.qs-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.qs-tabs .it-btn { padding: 4px 8.5px; }
.card-inline-link {
  color: var(--olive);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(65, 89, 29, 0.36);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.card-inline-link:hover {
  color: var(--olive-hover);
  border-color: var(--olive-hover);
}
.qs-pre {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--type-code);
  line-height: 1.66;
  color: var(--cream);
  overflow-x: auto;
  white-space: pre;
  flex: 1;
}

.qs-comment {
  color: #8b8d80;
}

.qs-term-foot {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(244, 241, 232, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #a39f92;
}

.qs-term-foot code {
  color: var(--chartreuse);
}

/* Right Visual Spec & CTA Module */
.qs-facts {
  background: linear-gradient(180deg, rgba(254, 253, 249, 0.96) 0%, rgba(245, 242, 233, 0.94) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(22, 23, 20, 0.13);
  border-radius: 22px;
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: 0 22px 46px -26px rgba(22, 23, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.qs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.qs-metric {
  background: #ffffff;
  border: 1px solid rgba(22, 23, 20, 0.09);
  border-radius: 14px;
  padding: 10px 11px 10px;
  box-shadow: 0 2px 6px rgba(22, 23, 20, 0.035);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qm-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.qm-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qm-ico svg { width: 13px; height: 13px; display: block; }
.qm-ico.olive { background: rgba(65, 89, 29, 0.12); color: var(--olive); }
.qm-ico.amber { background: rgba(232, 163, 49, 0.16); color: #9c640c; }
.qm-ico.moss { background: rgba(65, 118, 63, 0.14); color: #2d6631; }

.qm-label {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.qm-val {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 7px;
}

.qm-os {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.qm-os span {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f2efe6;
  border: 1px solid rgba(22, 23, 20, 0.08);
  padding: 1.5px 5.5px;
  border-radius: 5px;
}

.qm-mini-bar {
  margin-top: auto;
}

.qm-bar-track {
  height: 4.5px;
  border-radius: 999px;
  background: rgba(22, 23, 20, 0.08);
  overflow: hidden;
  margin-bottom: 4px;
}

.qm-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive) 0%, #8fb834 100%);
}

.qm-bar-fill.low {
  background: linear-gradient(90deg, #3c8c42 0%, #7fc97b 100%);
}

.qm-mini-bar small {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.qs-cap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qs-cap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 23, 20, 0.085);
}

.qc-medallion {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.qc-medallion svg { width: 16px; height: 16px; display: block; }
.qc-medallion.olive { background: rgba(65, 89, 29, 0.12); color: var(--olive); border: 1px solid rgba(65, 89, 29, 0.18); }
.qc-medallion.amber { background: rgba(232, 163, 49, 0.16); color: #9c640c; border: 1px solid rgba(232, 163, 49, 0.24); }
.qc-medallion.moss { background: rgba(65, 118, 63, 0.14); color: #2d6631; border: 1px solid rgba(65, 118, 63, 0.22); }

.qc-body {
  flex: 1;
  min-width: 0;
}

.qc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.qc-head strong {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.qc-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.qc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: #2c5e2b;
  background: rgba(127, 201, 123, 0.2);
  border: 1px solid rgba(65, 118, 63, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.qc-live-pill i {
  display: block;
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #3c9c3a;
  box-shadow: 0 0 6px rgba(60, 156, 58, 0.6);
}

.qc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.qc-chips span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #f3f0e7;
  border: 1px solid rgba(22, 23, 20, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.qs-cta-box {
  margin-top: auto;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qs-gh-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2415 0%, #314517 100%);
  border: 1px solid rgba(183, 217, 86, 0.34);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 28px -14px rgba(18, 22, 16, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qs-gh-cta:hover {
  transform: translateY(-1.5px);
  border-color: rgba(183, 217, 86, 0.65);
  box-shadow: 0 18px 34px -14px rgba(18, 22, 16, 0.66), 0 0 0 3px rgba(183, 217, 86, 0.2);
}

.qs-gh-arrow {
  color: var(--chartreuse);
  font-weight: 700;
}

.qs-cta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.qs-cta-meta code {
  color: var(--olive);
  font-weight: 600;
}

.qs-meta-link {
  color: var(--olive);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(65, 89, 29, 0.36);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.qs-meta-link:hover {
  color: var(--olive-hover);
  border-color: var(--olive-hover);
}

/* ================= FOOTER ================= */
footer { border-top: 1px solid var(--border); padding: 34px 0 48px; font-size: 0.84rem; color: var(--ink-muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot-brand strong { color: var(--ink); font-weight: 600; }
.foot-brand code { font-family: var(--mono); font-size: 0.88em; color: var(--olive); }
.foot-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.76rem; }
.foot-sep { color: var(--border-strong); }
.foot-link { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: color 0.15s, border-color 0.15s; }
.foot-link:hover { color: var(--olive); border-color: var(--olive); }

/* ================= RESPONSIVE ================= */
.qs-card, .qs-facts, .hub-board > *, .qs-grid > * {
  min-width: 0;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .qs-pre { font-size: 0.75rem; }
}

@media (max-width: 1080px) {
  .hero-cta-strip, .hub-board, .qs-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hub-backdrop-web { display: none; }
  .hub-bridge { display: none; }
  .hub-mobile-stem { display: flex; }
  .node-port { display: none; }
  .hub-right-stack { grid-template-rows: auto; gap: 18px; }
  .hub-core-card { max-width: 420px; }
  .hub-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cta-strip { gap: 22px; padding: 32px 0 44px; }
  .nav-links { display: none; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 11px 12px; }
}

@media (max-width: 1080px) {
  .gate-modes-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topo-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .gate-viewport { display: none; }
  .gate-mobile { display: block; }
  .gate-shell { padding: 14px; }
  .compare-swipe-hint { display: inline; }
  .qs-wrap .section-intro { margin-bottom: 84px; }
  .qs-sitter { height: 108px; top: -77px; right: 14px; }
  .qs-chrome { padding-right: 90px; }
}

@media (max-width: 520px) {
  .gate-modes-strip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qs-metrics { grid-template-columns: minmax(0, 1fr); }
  .qs-facts { padding: 15px; }
}

@media (max-width: 640px) {
  .wrap,
  header .wrap,
  .story-band .wrap,
  .arch-wrap { max-width: 100%; padding: 0 16px; }
  .arch-section { padding: 54px 0 52px; }
  .hub-card { padding: 18px 16px 16px; border-radius: 18px; }
  .hub-core-card { max-width: 100%; padding: 20px 16px; }
  .hub-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hub-tile { padding: 8px 8px; gap: 7px; }
  .hub-tile.rich { padding: 9px 9px; }
  .tile-copy strong { font-size: 0.79rem; }
  .orch-row { padding: 7px 9px; flex-wrap: wrap; row-gap: 6px; }
  .nav-bar { height: 58px; gap: 10px; }
  .brand-word { font-size: 1.24rem; }
  .brand-cli { display: none; }
  .nav-right .btn-ghost { display: none; }
  .btn-pill { padding: 7px 14px; font-size: 0.8rem; }
  .hero-block-stage { padding-top: 66px; }
  .hero-stage-center { padding: 8px 0; }
  .hero-controls-dock { padding-bottom: 16px; }
  .hero-cta-strip { padding: 28px 0 40px; }
  .scene-subtitle-wrap { flex-wrap: wrap; min-height: 102px; }
  .scene-subtitle { font-size: 0.8rem; padding: 8px 12px; border-radius: 12px; max-width: 100%; }
  .myc-timeline { gap: 8px; margin-top: 8px; flex-wrap: wrap; height: auto; justify-content: center; }
  .tl-track-wrap { min-width: 100%; }
  .tl-dot { width: 13px; height: 13px; }
  .tl-dot.active { width: 16px; height: 16px; }
  .tl-dot::after { display: none; }
  .story-play-btn { padding: 4px 8px; font-size: 0.68rem; }
  .hero-cta-copy h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.94rem; }
  .install-cmd { font-size: 0.68rem; }
  .section { padding: 56px 0; }
  .dark-band { padding: 60px 0; }
  .topo-band { padding: 52px 0 56px; }
  .tc-cmd { padding: 7px 8px 7px 10px; gap: 6px; }
  .tc-cmd code { font-size: 0.61rem; }
  .topo-copy-btn { padding: 2px 8px; font-size: 0.62rem; }
  .qs-card { padding: 18px; }
  .qs-chrome-meta { font-size: 0.66rem; }
  .qs-pre { font-size: 0.67rem; }
}
