    :root {
      --bg: #0f0d0a;
      --surface: #1a1710;
      --surface-2: #211e16;
      --border: #2e2a1f;
      --border-light: #3a3428;
      --text: #e8e2d6;
      --text-dim: #b0a898;
      --text-muted: #7a7060;
      --rust: #b84a28;
      --rust-dim: #8b3a20;
      --rust-glow: rgba(184, 74, 40, 0.12);
      --amber: #c49a3c;
      --amber-dim: rgba(196, 154, 60, 0.12);
      --sage: #5a8a5e;
      --sage-dim: rgba(90, 138, 94, 0.12);
      --ink: #4a6a8a;
      --ink-dim: rgba(74, 106, 138, 0.12);
      --danger: #c44040;
      --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
      --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --mono: 'IBM Plex Mono', 'Menlo', monospace;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; overflow-x: hidden; }

    html, body { max-width: 100vw; overflow-x: hidden; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-text-size-adjust: 100%;
      touch-action: pan-y;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(15, 13, 10, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      height: 60px;
      display: flex;
      align-items: center;
      padding: 0 24px;
    }

    .nav-inner {
      max-width: 1100px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -0.01em;
      cursor: pointer;
    }

    .nav-brand span { color: var(--rust); }

    .nav-links {
      display: flex;
      gap: 8px;
      list-style: none;
    }

    [data-nav] { cursor: pointer; }

    .nav-links a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      padding: 8px 14px;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .nav-links a:hover, .nav-links a.active {
      color: var(--text);
      background: var(--surface-2);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      background: none;
      border: none;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-dim);
      border-radius: 2px;
      transition: all 0.3s;
    }

    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: calc(100vh - 60px);
      height: calc(100dvh - 60px);
      background: var(--bg);
      z-index: 99;
      padding: 32px 24px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .mobile-menu.open { display: flex; flex-direction: column; gap: 8px; }

    .mobile-menu a {
      color: var(--text);
      text-decoration: none;
      font-size: 1.2rem;
      font-weight: 500;
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
      display: block;
    }

    /* ── PAGES ── */
    .page {
      display: none;
      padding-top: 60px;
      min-height: 100vh;
    }

    .page.active { display: block; }

    /* ── HERO ── */
    .hero {
      padding: 100px 24px 80px;
      text-align: center;
      background: linear-gradient(180deg, #1a1208 0%, var(--bg) 100%);
      position: relative;
    }

    .hero::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    }

    .hero-overline {
      font-family: var(--mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--rust);
      margin-bottom: 20px;
    }

    .hero h1 {
      font-family: var(--serif);
      font-size: clamp(2.8rem, 7vw, 5rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 20px;
      line-height: 1.1;
    }

    .hero h1 em {
      font-style: italic;
      color: var(--rust);
    }

    .hero .subtitle {
      font-size: 1.1rem;
      color: var(--text-muted);
      max-width: 560px;
      margin: 0 auto 48px;
      line-height: 1.7;
    }

    .stats-row {
      display: flex;
      justify-content: center;
      gap: 48px;
      flex-wrap: wrap;
    }

    .stat-block { text-align: center; }

    .stat-block .number {
      font-family: var(--mono);
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--amber);
      display: block;
      line-height: 1.2;
    }

    .stat-block .label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* ── SECTIONS ── */
    .section {
      max-width: 800px;
      margin: 0 auto;
      padding: 72px 24px;
    }

    .section-wide {
      max-width: 960px;
      margin: 0 auto;
      padding: 72px 24px;
    }

    .section-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-light), transparent);
      max-width: 960px;
      margin: 0 auto;
    }

    .section h2 {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .page-top { padding-top: 100px; }
    .color-rust { color: var(--rust); }
    .color-amber { color: var(--amber); }

    .section-wide h2 {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 8px;
      text-align: center;
    }

    .section-sub {
      color: var(--text-muted);
      font-size: 0.88rem;
      margin-bottom: 36px;
    }

    .section-wide .section-sub { text-align: center; }

    /* ── PROSE ── */
    .prose p {
      font-size: 1.02rem;
      color: var(--text-dim);
      margin-bottom: 18px;
      line-height: 1.8;
    }

    .prose p strong { color: var(--text); font-weight: 600; }

    .prose blockquote {
      border-left: 2px solid var(--rust);
      padding: 16px 24px;
      margin: 28px 0;
      background: var(--surface);
      border-radius: 0 6px 6px 0;
    }

    .prose blockquote p {
      font-family: var(--serif);
      font-style: italic;
      color: var(--text);
      margin-bottom: 6px;
      font-size: 1.05rem;
    }

    .prose blockquote cite {
      font-family: var(--sans);
      font-size: 0.8rem;
      color: var(--text-muted);
      font-style: normal;
    }

    /* ── CARDS ── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 28px;
      margin-bottom: 16px;
      transition: border-color 0.25s, transform 0.2s;
    }

    .card:hover {
      border-color: var(--border-light);
      transform: translateY(-1px);
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }

    .card-title {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 600;
    }

    .card-badge {
      font-family: var(--mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 4px 10px;
      border-radius: 4px;
      font-weight: 500;
    }

    .badge-rust { background: var(--rust-glow); color: var(--rust); }
    .badge-amber { background: var(--amber-dim); color: var(--amber); }
    .badge-sage { background: var(--sage-dim); color: var(--sage); }
    .badge-ink { background: var(--ink-dim); color: var(--ink); }
    .badge-danger { background: rgba(196, 64, 64, 0.15); color: var(--danger); }

    .card-grid {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 5px 16px;
      font-size: 0.88rem;
    }

    .card-grid dt { color: var(--text-muted); font-weight: 500; }
    .card-grid dd { color: var(--text-dim); word-break: break-word; }

    /* ── BOOK CARDS ── */
    .book-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px 28px;
      margin-bottom: 14px;
      transition: border-color 0.25s;
    }

    .book-card:hover { border-color: var(--border-light); }

    .book-title {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 3px;
    }

    .book-author {
      color: var(--text-muted);
      font-size: 0.88rem;
      margin-bottom: 14px;
    }

    .book-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 0.78rem;
      margin-bottom: 10px;
    }

    .tag {
      padding: 3px 9px;
      border-radius: 4px;
      font-weight: 500;
    }

    .tag-targeted { background: var(--rust-glow); color: var(--rust); }
    .tag-destroyed { background: rgba(196, 64, 64, 0.18); color: var(--danger); }
    .tag-ingested { background: rgba(196, 64, 64, 0.18); color: var(--danger); }
    .tag-available { background: var(--sage-dim); color: var(--sage); }
    .tag-unavailable { background: rgba(122, 112, 96, 0.15); color: var(--text-muted); }
    .tag-category { background: var(--amber-dim); color: var(--amber); }
    .tag-language { background: var(--ink-dim); color: var(--ink); }
    .no-results { text-align: center; color: var(--text-muted); padding: 48px 0; }

    .book-links {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .book-links a {
      font-size: 0.78rem;
      color: var(--rust);
      text-decoration: none;
      opacity: 0.8;
      transition: opacity 0.2s;
    }

    .book-links a:hover { opacity: 1; text-decoration: underline; }

    .book-note {
      margin-top: 10px;
      font-size: 0.82rem;
      color: var(--text-muted);
      font-style: italic;
      line-height: 1.6;
      word-break: break-word;
    }

    /* ── SEARCH ── */
    .search-bar {
      margin-bottom: 28px;
    }

    .search-bar input {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px 18px;
      color: var(--text);
      font-size: 0.92rem;
      font-family: var(--sans);
      outline: none;
      transition: border-color 0.2s;
    }

    .search-bar input:focus { border-color: var(--rust-dim); }
    .search-bar input::placeholder { color: var(--text-muted); }

    /* ── AT RISK ── */
    .risk-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .risk-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px;
    }

    .risk-card h3 {
      font-family: var(--serif);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .risk-list {
      list-style: none;
      font-size: 0.85rem;
      color: var(--text-dim);
    }

    .risk-list li {
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      line-height: 1.5;
    }

    .risk-list li:last-child { border-bottom: none; }
    .risk-list li::before { content: '- '; color: var(--text-muted); }

    /* ── CODE BLOCKS ── */
    .code-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px;
      margin-bottom: 14px;
      overflow-x: auto;
    }

    .code-block .endpoint {
      font-family: var(--mono);
      font-size: 0.82rem;
      color: var(--rust);
      margin-bottom: 10px;
      font-weight: 500;
    }

    .code-block pre {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: pre-wrap;
      word-break: break-word;
      line-height: 1.7;
    }

    /* ── SOURCE LIST ── */
    .source-list {
      list-style: none;
    }

    .source-list li {
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 16px;
      flex-wrap: wrap;
    }

    .source-list a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 0.92rem;
      transition: color 0.2s;
    }

    .source-list a:hover { color: var(--rust); }

    .source-date {
      color: var(--text-muted);
      font-size: 0.78rem;
      font-family: var(--mono);
      white-space: nowrap;
    }

    /* ── FOOTER ── */
    footer {
      text-align: center;
      padding: 48px 24px;
      color: var(--text-muted);
      font-size: 0.78rem;
      border-top: 1px solid var(--border);
      line-height: 1.8;
    }

    footer a { color: var(--text-muted); text-decoration: underline; }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .hero { padding: 80px 20px 60px; }
      .stats-row { gap: 28px; }
      .stat-block .number { font-size: 1.4rem; }
      .section, .section-wide { padding: 48px 20px; }
      .risk-grid { grid-template-columns: 1fr; }
      .card-grid { grid-template-columns: 1fr; }
      .card-header { flex-direction: column; }
    }

    @media (max-width: 480px) {
      .hero h1 { font-size: 2.2rem; }
      .stats-row { gap: 20px; }
      .card, .book-card, .risk-card, .code-block { padding: 20px; }
    }

    /* TIPS FORM */
    .tip-desc {
      font-size: 0.92rem;
      color: var(--text-dim);
      margin-top: 12px;
      line-height: 1.7;
    }

    .tip-form {
      margin-top: 24px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--text-dim);
      margin-bottom: 6px;
    }

    .form-input {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px 16px;
      color: var(--text);
      font-size: 0.92rem;
      font-family: var(--sans);
      outline: none;
      transition: border-color 0.2s;
      -webkit-appearance: none;
      appearance: none;
    }

    .form-input:focus {
      border-color: var(--rust-dim);
    }

    .form-input::placeholder {
      color: var(--text-muted);
    }

    select.form-input {
      cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7060' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 36px;
    }

    .form-textarea {
      resize: vertical;
      min-height: 120px;
      line-height: 1.6;
    }

    .form-submit {
      display: inline-block;
      background: var(--rust);
      color: var(--text);
      border: none;
      border-radius: 8px;
      padding: 12px 32px;
      font-size: 0.95rem;
      font-weight: 600;
      font-family: var(--sans);
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .form-submit:hover {
      opacity: 0.85;
    }

    .form-submit:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .tip-result {
      margin-top: 16px;
      font-size: 0.9rem;
      line-height: 1.6;
    }

    .tip-result.success {
      color: var(--sage);
    }

    .tip-result.error {
      color: var(--danger);
    }

    /* AGENTS */
    .agents-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }

    .agent-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 28px;
      position: relative;
    }

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

    .agent-status {
      font-family: var(--mono);
      font-size: 0.65rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--sage);
      background: var(--sage-dim);
      padding: 3px 8px;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 12px;
    }

    .agent-name {
      font-family: var(--serif);
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
    }

    .agent-role {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--rust);
      margin-bottom: 16px;
    }

    .agent-desc {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .agent-details {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 4px 14px;
      font-size: 0.82rem;
      border-top: 1px solid var(--border);
      padding-top: 14px;
    }

    .agent-details dt {
      color: var(--text-muted);
      font-weight: 500;
    }

    .agent-details dd {
      color: var(--text-dim);
      word-break: break-word;
    }

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