
  h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.018em; line-height: 1.15; }
  h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-variation-settings: 'opsz' 144, 'SOFT' 40; line-height: 1.05; }
  h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-variation-settings: 'opsz' 60, 'SOFT' 30; margin-top: 56px; margin-bottom: 18px; }
  h2:first-child { margin-top: 0; }
  h3 { font-size: 1.2rem; font-variation-settings: 'opsz' 60, 'SOFT' 30; margin-top: 32px; margin-bottom: 12px; color: var(--ink); }
  h4 { font-size: 1rem; font-variation-settings: 'opsz' 60, 'SOFT' 20; margin-top: 24px; margin-bottom: 10px; color: var(--ink-soft); font-weight: 500; }

  .eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--bordeaux);
    display: inline-flex; align-items: center; gap: 12px;
  }
  .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--bordeaux); }

  p { margin-bottom: 16px; color: var(--ink-soft); }
  p:last-child { margin-bottom: 0; }

  a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
  a:hover { color: var(--bordeaux-d); }

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

  code {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.88em;
    background: rgba(14, 26, 43, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--ink);
    font-weight: 500;
  }

  ul { margin: 12px 0 16px 0; padding-left: 0; list-style: none; }
  ul li { padding: 4px 0 4px 22px; position: relative; color: var(--ink-soft); }
  ul li::before { content: '·'; position: absolute; left: 8px; color: var(--bordeaux); font-weight: 700; }
  .footer-col li { padding: 0; }
  .footer-col li::before { display: none; }

  .page-header { padding: 80px 0 56px; border-bottom: 1px solid var(--line-soft); }
  .page-header h1 { margin: 24px 0 16px; }
  .page-header h1 em { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--bordeaux); }
  .page-header .lead {
    font-family: 'Fraunces', serif; font-weight: 300; font-style: italic;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55;
    color: var(--ink-soft); max-width: 660px;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
  }
  .breadcrumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 12px; }
  .breadcrumbs a { color: var(--ink-mute); text-decoration: none; }
  .breadcrumbs a:hover { color: var(--bordeaux); text-decoration: underline; }
  .breadcrumbs span { margin: 0 8px; opacity: 0.5; }

  .header-meta {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; gap: 24px 40px;
    font-size: 13px; color: var(--ink-mute);
  }
  .header-meta .item strong {
    color: var(--ink); display: block;
    font-family: 'Fraunces', serif; font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
    font-size: 14px; margin-bottom: 2px;
  }

  .tldr {
    margin-top: 56px;
    padding: 36px 40px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
  }
  .tldr::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
      radial-gradient(ellipse at 20% 0%, rgba(184,147,90,.08), transparent 50%),
      radial-gradient(ellipse at 80% 100%, rgba(122,44,44,.12), transparent 50%);
    pointer-events: none;
  }
  .tldr-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--gold-soft);
    margin-bottom: 16px;
    position: relative;
  }
  .tldr-headline {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 60;
    font-style: italic;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.35;
    color: var(--paper);
    margin-bottom: 24px;
    position: relative;
    max-width: 720px;
  }
  .tldr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
  }
  .tldr-item {
    border-left: 1px solid rgba(184, 147, 90, 0.25);
    padding-left: 16px;
  }
  .tldr-item .num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 100;
    font-size: 11px;
    color: var(--gold-soft);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  .tldr-item .label {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 60, 'SOFT' 30;
    font-size: 1.05rem;
    color: var(--paper);
    margin-bottom: 4px;
    font-weight: 400;
  }
  .tldr-item .desc {
    font-size: 12.5px;
    color: rgba(245, 240, 230, 0.65);
    line-height: 1.5;
  }

  .legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 80px;
    padding: 72px 0 120px;
    align-items: start;
  }
  @media (max-width: 980px) {
    .legal-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 80px; }
  }

  .toc {
    position: sticky; top: 96px;
    font-size: 13.5px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 12px;
  }
  .toc::-webkit-scrollbar { width: 4px; }
  .toc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
  @media (max-width: 980px) {
    .toc {
      position: relative; top: 0;
      padding: 24px;
      background: var(--paper-warm);
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      max-height: none; overflow-y: visible;
    }
  }
  .toc-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--bordeaux);
    margin-bottom: 16px;
  }
  .toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
  .toc li { counter-increment: toc; margin-bottom: 6px; padding: 0; }
  .toc li::before { display: none; }
  .toc a {
    text-decoration: none; color: var(--ink-soft);
    display: flex; gap: 10px; align-items: baseline;
    line-height: 1.4; padding: 4px 0;
    transition: color .2s ease;
  }
  .toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: 'Fraunces', serif; font-style: italic;
    font-size: 11px; color: var(--bordeaux);
    flex-shrink: 0;
    font-variation-settings: 'opsz' 60, 'SOFT' 80;
    min-width: 24px;
  }
  .toc a:hover { color: var(--bordeaux); }

  .legal-body { max-width: 760px; }
  .legal-body section { scroll-margin-top: 96px; }
  .legal-body section + section {
    margin-top: 56px; padding-top: 56px;
    border-top: 1px solid var(--line-soft);
  }

  .section-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 100;
    font-size: 13px; color: var(--bordeaux);
    letter-spacing: 0.05em;
    margin-bottom: 6px; display: block;
  }

  /* Highlight quote */
  .highlight {
    border-left: 3px solid var(--bordeaux);
    padding: 4px 0 4px 24px;
    margin: 24px 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
    font-size: 1.05rem; line-height: 1.55;
    color: var(--ink);
  }

  /* Cards grid for security pillars */
  .pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
  }
  .pillar {
    background: var(--paper-warm);
    padding: 24px 22px;
  }
  .pillar-icon {
    width: 24px; height: 24px;
    color: var(--bordeaux);
    margin-bottom: 14px;
  }
  .pillar h4 {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 60, 'SOFT' 30;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 6px;
    font-weight: 500;
  }
  .pillar p {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
  }

  /* Architecture diagram caption */
  .figure {
    margin: 32px 0;
    padding: 28px 24px;
    background: var(--paper-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
  }
  .figure svg {
    width: 100%;
    height: auto;
    display: block;
  }
  .figure-caption {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
    font-size: 13.5px;
    color: var(--ink-mute);
    text-align: center;
  }
  .figure-caption strong {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-right: 6px;
  }

  /* Tech spec table */
  .spec-table {
    width: 100%; border-collapse: collapse;
    margin: 20px 0; font-size: 14px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }
  .spec-table th {
    text-align: left; padding: 14px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--bordeaux);
    border-bottom: 1px solid var(--line);
    background: rgba(122, 44, 44, 0.03);
  }
  .spec-table td {
    padding: 14px 16px; vertical-align: top;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-soft); line-height: 1.5;
  }
  .spec-table tbody tr:first-child td { border-top: none; }
  .spec-table td:first-child { font-weight: 600; color: var(--ink); width: 32%; }
  .spec-table code { font-size: 12.5px; }
  @media (max-width: 700px) {
    .spec-table thead { display: none; }
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
    .spec-table tr { padding: 16px 0; border-top: 1px solid var(--line-soft); }
    .spec-table tr:first-child { border-top: none; }
    .spec-table td { padding: 4px 0; border: none; }
    .spec-table td:first-child {
      font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--bordeaux); margin-bottom: 6px;
    }
  }

  /* In-Memory hero callout */
  .memory-callout {
    background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper-deep) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
  }
  .memory-callout::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 44, 44, 0.06), transparent 70%);
    pointer-events: none;
  }
  .memory-callout-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--bordeaux);
    margin-bottom: 10px;
    position: relative;
  }
  .memory-callout-headline {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 60;
    font-style: italic;
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
    position: relative;
  }
  .memory-callout p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    position: relative;
  }

  /* Compliance badge row */
  .compliance-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
  .compliance-badge {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: all .25s ease;
  }
  .compliance-badge:hover {
    background: var(--ink);
    border-color: var(--ink);
  }
  .compliance-badge:hover .badge-name { color: var(--paper); }
  .compliance-badge:hover .badge-desc { color: rgba(245, 240, 230, 0.7); }
  .compliance-badge:hover .badge-icon { color: var(--gold-soft); }
  .badge-icon {
    width: 28px; height: 28px;
    color: var(--bordeaux);
    margin: 0 auto 12px;
    transition: color .25s ease;
  }
  .badge-name {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 60, 'SOFT' 30;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 4px;
    transition: color .25s ease;
  }
  .badge-desc {
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.45;
    transition: color .25s ease;
  }

  /* Threat -> Mitigation table */
  .threat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
  }
  .threat-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--bordeaux);
    border-bottom: 1px solid var(--line);
  }
  .threat-table tbody tr {
    border-bottom: 1px solid var(--line-soft);
    transition: background .2s ease;
  }
  .threat-table tbody tr:hover {
    background: rgba(122, 44, 44, 0.02);
  }
  .threat-table td {
    padding: 16px;
    vertical-align: top;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .threat-table td:first-child {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 60, 'SOFT' 80;
    color: var(--bordeaux);
    width: 32%;
    font-size: 14px;
  }
  @media (max-width: 700px) {
    .threat-table thead { display: none; }
    .threat-table, .threat-table tbody, .threat-table tr, .threat-table td { display: block; width: 100%; }
    .threat-table tr { padding: 16px 0; }
    .threat-table td { padding: 4px 0; }
    .threat-table td:first-child {
      font-size: 13px; margin-bottom: 6px;
    }
  }

  /* Stack diagram */
  .stack {
    margin: 32px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .stack-layer {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    background: var(--paper);
    transition: background .2s ease;
    position: relative;
  }
  .stack-layer:last-child { border-bottom: none; }
  .stack-layer:hover { background: var(--paper-warm); }
  .stack-layer-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bordeaux);
  }
  .stack-layer-content {
    color: var(--ink);
  }
  .stack-layer-content strong {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 60, 'SOFT' 30;
    font-weight: 500;
    font-size: 1.02rem;
    display: block;
    margin-bottom: 2px;
  }
  .stack-layer-content span {
    font-size: 13px;
    color: var(--ink-mute);
  }
  @media (max-width: 600px) {
    .stack-layer {
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }

  /* Final ornament */
  .ornament-wrap {
    text-align: center; margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--line-soft);
    color: var(--bordeaux); opacity: 0.5;
  }
  .ornament-wrap svg { width: 24px; height: 24px; }
  .last-updated {
    font-family: 'Fraunces', serif; font-style: italic;
    font-size: 13px; color: var(--ink-mute);
    margin-top: 12px;
    font-variation-settings: 'opsz' 60, 'SOFT' 80;
  }

  /* CTA at end */
  .end-cta {
    margin-top: 48px;
    padding: 32px;
    background: var(--paper-warm);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    text-align: center;
  }
  .end-cta h3 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 60;
    color: var(--ink);
    margin: 0 0 12px;
    font-size: 1.4rem;
  }
  .end-cta p {
    font-size: 14.5px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 20px;
  }
  .end-cta .btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

