  :root {
    --ink: #1a1816;
    --ink-soft: #3a3733;
    --ink-faint: #6b665d;
    --cream: #f4efe6;
    --cream-deep: #ebe4d4;
    --paper: #faf6ed;
    --rule: #c9bfa8;
    --accent: #8b2410;
    --accent-soft: #b8543a;
    --gold: #a88838;
    --moss: #5a6b3f;
    --green-up: #5a6b3f;
    --red-down: #8b2410;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter Tight', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
  }

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

  body {
    font-family: var(--serif);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    background-image:
      radial-gradient(circle at 20% 10%, rgba(168, 136, 56, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(139, 36, 16, 0.03) 0%, transparent 40%);
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
  }

  .container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
  }

  /* ============ MASTHEAD ============ */
  .masthead {
    border-bottom: 1px solid var(--ink);
    padding: 18px 0;
    background: rgba(250, 246, 237, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--ink);
  }

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

  .nav {
    display: flex;
    gap: 36px;
    font-family: var(--sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
  }

  .nav a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    padding: 0;
  }

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

  .breadcrumb {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
  }

  .breadcrumb button {
    color: var(--ink-faint);
    background: none;
    border: none;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    padding: 0;
  }

  .breadcrumb button:hover { color: var(--accent); }

  /* ============ PAGE ROUTING ============ */
  .page { display: none; animation: fadePage 0.4s ease-out; }
  .page.active { display: block; }

  @keyframes fadePage {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ============ HERO (LANDING) ============ */
  .hero {
    padding: 80px 0 100px;
    border-bottom: 1px solid var(--ink);
  }

  .hero-meta {
    display: flex;
    gap: 24px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-soft);
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-meta .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }

  .hero-title {
    font-family: var(--serif);
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
    font-variation-settings: "opsz" 144;
  }

  .hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    font-variation-settings: "opsz" 144;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
    align-items: start;
  }

  .hero-lede {
    font-size: 22px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--ink-soft);
    max-width: 540px;
    font-variation-settings: "opsz" 36;
  }

  .hero-lede strong {
    color: var(--ink);
    font-weight: 500;
  }

  .hero-pullquote {
    border-left: 2px solid var(--accent);
    padding: 12px 0 12px 28px;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  .hero-pullquote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink);
    font-weight: 500;
  }

  /* ============ PHILOSOPHY ============ */
  .section {
    padding: 100px 0;
    border-bottom: 1px solid var(--ink);
  }

  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-label::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.025em;
    max-width: 900px;
    margin-bottom: 24px;
    font-variation-settings: "opsz" 144;
  }

  .section-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }

  .section-sub {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 640px;
    font-weight: 300;
    line-height: 1.5;
  }

  .philosophy { background: var(--cream); }

  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 80px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .pillar {
    padding: 48px 36px;
    border-right: 1px solid var(--rule);
  }

  .pillar:last-child { border-right: none; }

  .pillar-num {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 32px;
  }

  .pillar-title {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    font-variation-settings: "opsz" 144;
  }

  .pillar-body {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-weight: 300;
  }

  .pillar-attr {
    margin-top: 28px;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
  }

  /* ============ DATABASE TABLE ============ */
  .db-preview {
    background: var(--ink);
    color: var(--cream);
    border-bottom: none;
  }

  .db-preview .section-label { color: var(--gold); }
  .db-preview .section-label::before { background: var(--gold); }
  .db-preview .section-title em { color: var(--gold); }
  .db-preview .section-sub { color: rgba(244, 239, 230, 0.7); }

  .db-controls {
    margin-top: 60px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(244, 239, 230, 0.15);
  }

  .filter-chip {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 16px;
    border: 1px solid rgba(244, 239, 230, 0.25);
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
  }

  .filter-chip:hover.filter-chip.active {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
  }

  .db-search {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 16px;
    border: 1px solid rgba(244, 239, 230, 0.25);
    background: transparent;
    color: var(--cream);
    margin-left: auto;
    min-width: 240px;
    outline: none;
    transition: all 0.2s;
  }
  .db-search::placeholder {
    color: rgba(244, 239, 230, 0.4);
    text-transform: none;
    letter-spacing: 0.04em;
  }
  .db-search:focus {
    border-color: var(--gold);
  }
  @media (max-width: 640px) {
    .db-search { margin-left: 0; width: 100%; min-width: 0; }
  }

  .db-table {
    margin-top: 24px;
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
  }

  .db-table thead th {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(244, 239, 230, 0.5);
    text-align: left;
    padding: 18px 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(244, 239, 230, 0.15);
  }

  .db-table thead th.num { text-align: right; }

  .db-table tbody tr {
    border-bottom: 1px solid rgba(244, 239, 230, 0.08);
    transition: background 0.15s;
  }

  .db-table tbody tr.clickable {
    cursor: pointer;
  }

  .db-table tbody tr.clickable:hover {
    background: rgba(168, 136, 56, 0.08);
  }

  .db-table tbody td {
    padding: 22px 12px;
    font-size: 14px;
    vertical-align: middle;
  }

  .db-table tbody td.num {
    text-align: right;
    font-family: var(--mono);
    font-size: 13px;
  }

  .ticker {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .company-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .live-badge {
    padding: 2px 8px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
  }

  .pending-badge {
    padding: 2px 8px;
    background: rgba(244, 239, 230, 0.1);
    color: rgba(244, 239, 230, 0.45);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .company-sector {
    font-size: 11px;
    color: rgba(244, 239, 230, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .moat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: 2px;
  }

  .moat-wide { background: rgba(90, 107, 63, 0.25); color: #a8c870; }
  .moat-narrow { background: rgba(168, 136, 56, 0.2); color: var(--gold); }
  .moat-pending { background: rgba(244, 239, 230, 0.08); color: rgba(244, 239, 230, 0.4); }

  .verdict {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
  }

  .verdict-pending {
    color: rgba(244, 239, 230, 0.4);
    font-style: italic;
  }

  /* ============ CLOSING (LANDING) ============ */
  .closing {
    background: var(--ink);
    color: var(--cream);
    padding: 120px 0;
    text-align: center;
  }

  .closing h2 {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 84px);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 40px;
    font-variation-settings: "opsz" 144;
  }

  .closing h2 em {
    font-style: italic;
    color: var(--gold);
  }

  .closing-cite {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(244, 239, 230, 0.5);
    margin-bottom: 48px;
  }

  /* ===========================================
     BERKSHIRE THESIS PAGE STYLES
  =========================================== */

  .thesis-header {
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--ink);
  }

  .thesis-meta-line {
    display: flex;
    gap: 20px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
    margin-bottom: 32px;
    align-items: center;
    flex-wrap: wrap;
  }

  .thesis-meta-line .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }

  .verdict-stamp {
    background: var(--accent);
    color: var(--paper);
    padding: 6px 14px;
    letter-spacing: 0.2em;
    font-weight: 600;
  }

  .ticker-display {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .ticker-display .symbol {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
  }

  .ticker-display .exchange {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }

  .thesis-h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    font-variation-settings: "opsz" 144;
  }

  .thesis-h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }

  .thesis-deck {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--ink-soft);
    max-width: 680px;
    font-style: italic;
    font-variation-settings: "opsz" 36;
    margin-bottom: 18px;
  }
  .thesis-deck:last-of-type {
    margin-bottom: 0;
  }
  .thesis-deck strong {
    font-weight: 600;
    font-style: normal;
    color: var(--ink);
  }

  .byline {
    margin-top: 36px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-faint);
    flex-wrap: wrap;
  }

  .byline strong { color: var(--ink); font-weight: 500; }

  /* ============ KEY METRICS DASHBOARD ============ */
  .metrics-dashboard {
    background: var(--ink);
    color: var(--cream);
    padding: 60px 0;
    border-bottom: 1px solid var(--ink);
  }

  .metrics-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(244, 239, 230, 0.15);
    flex-wrap: wrap;
  }

  .metrics-tab {
    padding: 12px 24px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    color: rgba(244, 239, 230, 0.5);
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 500;
    transition: all 0.2s;
  }

  .metrics-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }

  .metrics-tab:hover { color: var(--cream); }

  .metrics-panel { display: none; }
  .metrics-panel.active { display: block; }

  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(244, 239, 230, 0.15);
    border-bottom: 1px solid rgba(244, 239, 230, 0.15);
  }

  .metric-card {
    padding: 28px 24px;
    border-right: 1px solid rgba(244, 239, 230, 0.12);
  }

  .metric-card:nth-child(4n) { border-right: none; }
  .metric-card:nth-child(n+5) { border-top: 1px solid rgba(244, 239, 230, 0.12); }

  .metric-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(244, 239, 230, 0.55);
    margin-bottom: 10px;
    font-weight: 500;
  }

  .metric-val {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
    font-variation-settings: "opsz" 144;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .metric-val small {
    font-size: 14px;
    color: var(--gold);
  }

  .metric-val .up { color: #a8c870; }
  .metric-val .down { color: var(--accent-soft); }

  .metric-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(244, 239, 230, 0.5);
    margin-top: 8px;
  }

  .metric-sub .delta-up { color: #a8c870; }
  .metric-sub .delta-down { color: var(--accent-soft); }

  /* ============ ARTICLE BODY ============ */
  .article {
    padding: 90px 0;
  }

  .section-marker {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-marker::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
  }

  .article h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin-bottom: 36px;
    font-variation-settings: "opsz" 144;
    max-width: 720px;
  }

  .article h2 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }

  .article h3 {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    margin-top: 40px;
    font-variation-settings: "opsz" 144;
  }

  .article p {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.62;
    color: var(--ink-soft);
    margin-bottom: 22px;
    font-weight: 300;
    font-variation-settings: "opsz" 24;
  }

  .article p strong {
    color: var(--ink);
    font-weight: 500;
  }

  .article p em { font-style: italic; }

  .drop-cap::first-letter {
    font-family: var(--serif);
    font-size: 78px;
    font-weight: 400;
    float: left;
    line-height: 0.85;
    padding: 6px 14px 0 0;
    color: var(--accent);
    font-variation-settings: "opsz" 144;
  }

  /* ============ STAT ANCHOR (§I openings) ============ */
  .stat-anchor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    margin: 32px 0 36px;
    padding: 22px 0;
  }

  .stat-anchor-cell {
    padding: 0 24px;
    border-right: 1px solid var(--rule);
  }

  .stat-anchor-cell:last-child { border-right: none; }

  .stat-anchor-val {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
    margin-bottom: 8px;
  }

  .stat-anchor-val small {
    font-size: 14px;
    color: var(--accent);
    font-weight: 400;
    margin-left: 2px;
  }

  .stat-anchor-lbl {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    line-height: 1.4;
  }

  @media (max-width: 700px) {
    .stat-anchor { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .stat-anchor-cell {
      padding: 18px 0;
      border-right: none;
      border-bottom: 1px solid var(--rule);
    }
    .stat-anchor-cell:last-child { border-bottom: none; }
  }

  .pullquote {
    margin: 60px 0;
    padding: 32px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    text-align: center;
  }

  .pullquote p {
    font-family: var(--serif);
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.2;
    font-style: italic;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 16px;
    font-variation-settings: "opsz" 144;
  }

  .pullquote cite {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-style: normal;
  }

  /* ============ DATA TABLES (THESIS) ============ */
  .data-table-wrap {
    margin: 40px 0;
    border: 1px solid var(--ink);
    background: var(--cream);
  }

  .data-table-header {
    background: var(--ink);
    color: var(--cream);
    padding: 18px 24px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .data-table-header .source {
    color: rgba(244, 239, 230, 0.5);
    font-size: 10px;
  }

  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
  }

  .data-table th {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    text-align: left;
    padding: 14px 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--rule);
    background: var(--cream-deep);
  }

  .data-table th.num { text-align: right; }

  .data-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-soft);
  }

  .data-table tr:last-child td { border-bottom: none; }

  .data-table td.num {
    text-align: right;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
  }

  .data-table td.num.positive { color: var(--moss); font-weight: 600; }
  .data-table td.num.negative { color: var(--accent); font-weight: 600; }

  .data-table .total-row td {
    background: var(--cream-deep);
    font-weight: 600;
    color: var(--ink);
  }

  .data-table .company-cell {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    font-size: 15px;
  }

  /* ============ BUSINESS SEGMENTS MAP ============ */
  .segments-grid {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--ink);
  }

  .segment-card {
    background: var(--cream);
    padding: 28px 24px;
  }

  .segment-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .segment-card h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .segment-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    margin-bottom: 12px;
  }

  .segment-card p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-weight: 300;
    font-family: var(--serif);
    font-variation-settings: "opsz" 18;
    margin: 0;
  }

  /* ============ GEOGRAPHIC FOOTPRINT ============ */
  .geography-grid {
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--ink);
  }

  .geo-card {
    background: var(--cream);
    padding: 28px;
  }

  .geo-region {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .geo-card h4 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }

  .geo-card ul {
    list-style: none;
    padding: 0;
  }

  .geo-card li {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--ink-soft);
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    font-weight: 300;
  }

  .geo-card li:last-child { border-bottom: none; }

  .geo-card li strong { color: var(--ink); font-weight: 500; }

  /* ============ STRENGTH / WEAKNESS GRID ============ */
  .sw-grid {
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--ink);
  }

  .sw-column {
    padding: 32px 28px;
  }

  .sw-column.strength { background: rgba(90, 107, 63, 0.08); }
  .sw-column.weakness { background: rgba(139, 36, 16, 0.06); }

  .sw-header {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sw-column.strength .sw-header { color: var(--moss); }
  .sw-column.weakness .sw-header { color: var(--accent); }

  .sw-symbol {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
  }

  .sw-list {
    list-style: none;
    padding: 0;
  }

  .sw-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
  }

  .sw-list li:last-child { border-bottom: none; }

  .sw-list .sw-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }

  .sw-list .sw-detail {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    font-weight: 300;
  }

  /* ============ MOAT BREAKDOWN ============ */
  .moat-breakdown {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--ink);
  }

  .moat-pillar {
    padding: 28px 24px;
    border-right: 1px solid var(--rule);
    background: var(--cream);
  }

  .moat-pillar:last-child { border-right: none; }

  .moat-pillar-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 600;
  }

  .moat-pillar h4 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .moat-pillar p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    font-weight: 300;
    margin: 0;
  }

  /* ============ PREMORTEM ============ */
  .premortem {
    margin: 40px 0;
    border-left: 3px solid var(--accent);
    background: linear-gradient(to right, rgba(139, 36, 16, 0.04), transparent 60%);
    padding: 28px 32px;
  }

  .premortem-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
  }

  .premortem h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 0 0 14px 0;
  }

  .premortem ol {
    list-style: none;
    counter-reset: risk;
    padding: 0;
  }

  .premortem ol li {
    counter-increment: risk;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-soft);
    padding: 14px 0 14px 40px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    font-weight: 300;
  }

  .premortem ol li:last-child { border-bottom: none; }

  .premortem ol li::before {
    content: counter(risk, upper-roman) ".";
    position: absolute;
    left: 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    top: 16px;
  }

  /* ============ VERDICT ============ */
  .verdict-box {
    margin: 60px 0 0;
    padding: 50px;
    background: var(--ink);
    color: var(--cream);
    text-align: center;
  }

  .verdict-box .verdict-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 24px;
  }

  .verdict-box h3 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--cream);
    font-variation-settings: "opsz" 144;
  }

  .verdict-box h3 em {
    font-style: italic;
    color: var(--gold);
  }

  .verdict-rationale {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: #f4efe6 !important;
    font-style: normal;
    max-width: 640px;
    margin: 0 auto 22px;
    font-weight: 300;
    font-variation-settings: "opsz" 24;
    opacity: 1 !important;
  }
  .verdict-rationale:last-child { margin-bottom: 0; }
  .verdict-rationale strong { font-weight: 500; }
  .verdict-rationale em { font-style: italic; color: var(--gold); }

  /* ============ SOURCES ============ */
  .source-footer {
    background: var(--cream-deep);
    padding: 40px 0;
    border-top: 1px solid var(--ink);
  }

  .source-footer h5 {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
  }

  .source-footer p {
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 10px;
    font-style: italic;
  }

  .source-footer .disclaimer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-faint);
    font-style: normal;
    line-height: 1.6;
  }

  /* ============ FOOTER ============ */
  footer {
    background: var(--paper);
    padding: 60px 0 40px;
    border-top: 1px solid var(--ink);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
  }

  .footer-brand {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .footer-brand span { color: var(--accent); }

  .footer-tag {
    font-size: 14px;
    color: var(--ink-soft);
    font-style: italic;
    max-width: 360px;
    line-height: 1.5;
  }

  .footer-col h5 {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
  }

  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }

  .footer-col button {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    font-family: var(--serif);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
  }

  .footer-col button:hover { color: var(--accent); }

  .footer-bottom {
    border-top: 1px solid var(--rule);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .page.active .hero-meta { animation: fadeUp 0.8s ease-out 0.1s both; }
  .page.active .hero-title { animation: fadeUp 1s ease-out 0.2s both; }
  .page.active .hero-grid > * { animation: fadeUp 0.9s ease-out 0.5s both; }
  .page.active .hero-grid > *:nth-child(2) { animation-delay: 0.7s; }


  /* ============ MAP STYLES ============ */
  .map-section {
    margin: 48px 0;
  }

  .map-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .map-title::before {
    content: "";
    flex: 0 0 24px;
    height: 1px;
    background: var(--accent);
  }

  .map-container {
    background: var(--cream);
    border: 1px solid var(--ink);
    padding: 32px 24px;
    position: relative;
  }

  .map-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
  }

  /* US Map specific */
  .map-us .state-base {
    fill: var(--cream-deep);
    stroke: var(--rule);
    stroke-width: 0.8;
    transition: fill 0.2s;
  }
  .map-us .state-bnsf {
    fill: rgba(168, 136, 56, 0.45);
    stroke: var(--gold);
    stroke-width: 0.8;
    transition: fill 0.2s;
  }
  .map-us .state-bnsf:hover { fill: rgba(168, 136, 56, 0.7); }
  .map-us .state-both {
    fill: var(--accent);
    stroke: var(--ink);
    stroke-width: 0.8;
    transition: fill 0.2s;
  }
  .map-us .state-both:hover { fill: var(--accent-soft); }
.map-us .hq-label {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 600;
    fill: var(--ink);
    letter-spacing: 0.1em;
  }
  .map-us .hq-marker {
    fill: var(--ink);
    stroke: var(--paper);
    stroke-width: 1;
  }
  .map-us .hq-pulse {
    fill: var(--ink);
    opacity: 0.4;
    animation: pulse-r 2s ease-out infinite;
  }

  @keyframes pulse-r {
    0% { r: 4; opacity: 0.6; }
    100% { r: 14; opacity: 0; }
  }

  /* World Map specific */
  .world-map { max-height: 480px; }
  .world-map .country-bg {
    fill: var(--cream-deep);
    stroke: var(--rule);
    stroke-width: 0.6;
  }
  .world-map .country-core {
    fill: var(--accent);
    stroke: var(--ink);
    stroke-width: 0.6;
    transition: fill 0.2s;
  }
  .world-map .country-core:hover { fill: var(--accent-soft); }
  .world-map .country-na.world-map .country-uk.world-map .country-japan.world-map .country-australia.world-map .country-nz {
    fill: var(--gold);
    stroke: var(--ink);
    stroke-width: 0.6;
    transition: fill 0.2s;
  }
  .world-map .country-na:hover.world-map .country-uk:hover.world-map .country-japan:hover.world-map .country-australia:hover.world-map .country-nz:hover { fill: #c9a455; }

  /* Map Legend */
  .map-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .legend-swatch {
    display: inline-block;
    width: 16px;
    height: 12px;
    border: 1px solid var(--ink);
  }

  .legend-swatch.both { background: var(--accent); }
  .legend-swatch.bnsf { background: rgba(168, 136, 56, 0.45); }
  .legend-swatch.core { background: var(--accent); }
  .legend-swatch.intl { background: var(--gold); }
  .legend-swatch.hq {
    background: var(--ink);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 1px 3px;
  }

  .map-caption {
    margin-top: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ink-faint);
    text-align: center;
  }

  @media (max-width: 700px) {
    .map-container { padding: 20px 16px; }
    .map-legend { gap: 14px; font-size: 10px; }
    .map-svg { max-height: 360px; }
  }


  /* ============ CHARTS ============ */
  .chart-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 48px 0;
  }

  .chart-card {
    background: var(--cream);
    border: 1px solid var(--ink);
    padding: 24px;
  }

  .chart-card-wide {
    grid-column: 1 / -1;
  }

  .chart-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: var(--mono);
  }

  .chart-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    fill: var(--ink);
    letter-spacing: -0.015em;
  }

  .chart-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    fill: var(--ink-soft);
    font-weight: 400;
  }

  .grid-line {
    stroke: var(--rule);
    stroke-width: 0.5;
    stroke-dasharray: 2 3;
    opacity: 0.6;
  }

  .zero-line {
    stroke: var(--ink);
    stroke-width: 1;
  }

  .axis-label {
    font-family: var(--mono);
    font-size: 16px;
    fill: var(--ink-faint);
    font-weight: 500;
  }

  .axis-unit {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    fill: var(--accent);
    font-weight: 600;
  }

  .bar-gold {
    fill: var(--gold);
    opacity: 0.75;
    transition: opacity 0.2s;
  }
  .bar-gold:hover { opacity: 1; }

  .bar-moss {
    fill: var(--moss);
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  .bar-moss:hover { opacity: 1; }

  .bar-accent {
    fill: var(--accent);
    opacity: 0.75;
    transition: opacity 0.2s;
  }
  .bar-accent:hover { opacity: 1; }

  .bar-highlight {
    opacity: 1 !important;
    stroke: var(--ink);
    stroke-width: 1.5;
  }

  .bar-value {
    font-family: var(--mono);
    font-size: 16px;
    fill: var(--ink);
    font-weight: 600;
  }

  .line-path {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
  }

  .line-gold { stroke: var(--gold); }
  .line-moss { stroke: var(--moss); }
  .line-accent { stroke: var(--accent); }

  .dot {
    stroke: var(--paper);
    stroke-width: 1.5;
  }

  .dot.line-gold { fill: var(--gold); }
  .dot.line-moss { fill: var(--moss); }
  .dot.line-accent { fill: var(--accent); }

  .line-label {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .line-label.line-gold { fill: var(--gold); }
  .line-label.line-moss { fill: var(--moss); }
  .line-label.line-accent { fill: var(--accent); }

  .chart-caption {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    font-style: italic;
    font-weight: 300;
  }

  .chart-caption strong {
    color: var(--ink);
    font-weight: 500;
    font-style: normal;
  }

  @media (max-width: 700px) {
    .chart-stack { gap: 24px; }
    .chart-card { padding: 16px; }
  }


  
  /* ============ GOOG-SPECIFIC MAP STYLES ============ */
  .map-us .state-dc {
    fill: rgba(168, 136, 56, 0.45);
    stroke: var(--gold);
    stroke-width: 0.8;
    transition: fill 0.2s;
  }
  .map-us .state-dc:hover { fill: rgba(168, 136, 56, 0.7); }
  .map-us .state-office {
    fill: var(--accent);
    stroke: var(--ink);
    stroke-width: 0.8;
    transition: fill 0.2s;
  }
  .map-us .state-office:hover { fill: var(--accent-soft); }

  .world-map .country-primary {
    fill: var(--accent);
    stroke: var(--ink);
    stroke-width: 0.6;
    transition: fill 0.2s;
  }
  .world-map .country-primary:hover { fill: var(--accent-soft); }
  .world-map .country-major {
    fill: var(--gold);
    stroke: var(--ink);
    stroke-width: 0.6;
    transition: fill 0.2s;
  }
  .world-map .country-major:hover { fill: #c9a455; }

  /* ============ APPLE REGION MAP (AAPL §III) ============ */
  .apple-region-map .reg-americas { fill: var(--accent); stroke: var(--paper); stroke-width: 0.4; transition: opacity 0.2s; }
  .apple-region-map .reg-europe { fill: var(--gold); stroke: var(--paper); stroke-width: 0.4; opacity: 0.92; transition: opacity 0.2s; }
  .apple-region-map .reg-japan { fill: var(--gold); stroke: var(--paper); stroke-width: 0.4; opacity: 0.92; transition: opacity 0.2s; }
  .apple-region-map .reg-china { fill: var(--ink-soft); stroke: var(--paper); stroke-width: 0.4; transition: opacity 0.2s; }
  .apple-region-map .reg-roap { fill: var(--moss); stroke: var(--paper); stroke-width: 0.4; opacity: 0.92; transition: opacity 0.2s; }
  .apple-region-map .reg-neutral { fill: #e2dccf; stroke: var(--paper); stroke-width: 0.3; opacity: 0.7; }
  .apple-region-map .reg-americas:hover,
  .apple-region-map .reg-europe:hover,
  .apple-region-map .reg-japan:hover,
  .apple-region-map .reg-china:hover,
  .apple-region-map .reg-roap:hover { opacity: 1; cursor: pointer; }
  .apple-region-map .map-region-name { font-family: var(--serif); font-weight: 700; fill: var(--ink); }
  .apple-region-map .map-region-val { font-family: var(--mono); font-weight: 700; fill: var(--ink); }
  .apple-region-map .map-region-pct { font-family: var(--mono); fill: var(--ink-soft); }
  .apple-region-map .map-pct-down { fill: var(--accent); font-weight: 700; }

  .costco-region-map .reg-core { fill: var(--accent); stroke: var(--paper); stroke-width: 0.4; transition: opacity 0.2s; }
  .costco-region-map .reg-major { fill: var(--gold); stroke: var(--paper); stroke-width: 0.4; opacity: 0.95; transition: opacity 0.2s; }
  .costco-region-map .reg-mid { fill: #c2a04e; stroke: var(--paper); stroke-width: 0.4; opacity: 0.95; transition: opacity 0.2s; }
  .costco-region-map .reg-small { fill: var(--moss); stroke: var(--paper); stroke-width: 0.4; opacity: 0.95; transition: opacity 0.2s; }
  .costco-region-map .reg-emerging { fill: var(--ink-soft); stroke: var(--paper); stroke-width: 0.4; transition: opacity 0.2s; }
  .costco-region-map .reg-neutral { fill: #e2dccf; stroke: var(--paper); stroke-width: 0.3; opacity: 0.7; }
  .costco-region-map .reg-core:hover,
  .costco-region-map .reg-major:hover,
  .costco-region-map .reg-mid:hover,
  .costco-region-map .reg-small:hover,
  .costco-region-map .reg-emerging:hover { opacity: 1; cursor: pointer; }
  .costco-region-map .map-region-name { font-family: var(--serif); font-weight: 700; fill: var(--ink); }
  .costco-region-map .map-region-pct { font-family: var(--mono); fill: var(--ink-soft); }
  .costco-region-map .lbl-on-dark { font-family: var(--mono); font-weight: 700; font-size: 17px; fill: #ffffff; }
  .costco-region-map .lbl-on-light { font-family: var(--mono); font-weight: 700; font-size: 15px; fill: var(--ink); }
  .costco-region-map .lbl-leader { stroke: var(--ink-faint); stroke-width: 0.8; }
  .costco-region-map .lbl-leader-dot { fill: var(--ink-soft); }
  .costco-region-map .lbl-leader-text { font-family: var(--mono); font-weight: 700; font-size: 14px; fill: var(--ink); }

  .ko-region-map .reg-na { fill: var(--accent); stroke: var(--accent); stroke-width: 0.8; transition: opacity 0.2s; }
  .ko-region-map .reg-emea { fill: var(--gold); stroke: var(--gold); stroke-width: 0.8; opacity: 0.95; transition: opacity 0.2s; }
  .ko-region-map .reg-latam { fill: var(--moss); stroke: var(--moss); stroke-width: 0.8; opacity: 0.95; transition: opacity 0.2s; }
  .ko-region-map .reg-ap { fill: #6b7d8c; stroke: #6b7d8c; stroke-width: 0.8; opacity: 0.95; transition: opacity 0.2s; }
  .ko-region-map .reg-neutral { fill: #e2dccf; stroke: #e2dccf; stroke-width: 0.6; opacity: 0.7; }
  .ko-region-map .reg-na:hover,
  .ko-region-map .reg-emea:hover,
  .ko-region-map .reg-latam:hover,
  .ko-region-map .reg-ap:hover { opacity: 1; cursor: pointer; }
  .ko-region-map .map-title { font-family: var(--serif); font-size: 38px; font-weight: 700; fill: var(--ink); letter-spacing: -0.015em; }
  .ko-region-map .map-subtitle { font-family: var(--serif); font-style: italic; font-size: 23px; fill: var(--ink-soft); }
  .ko-region-map .seg-leader { stroke: var(--ink); stroke-width: 1.2; }
  .ko-region-map .seg-leader-dot { fill: var(--ink); }
  .ko-region-map .seg-lbl-name { font-family: var(--mono); font-weight: 700; font-size: 23px; fill: var(--ink); }
  .ko-region-map .seg-lbl-val { font-family: var(--mono); font-weight: 700; font-size: 20px; fill: var(--ink-soft); }
  .ko-region-map .map-note { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--ink-soft); }
  .ko-region-map .map-legend-head { font-family: var(--mono); font-size: 17px; font-weight: 700; fill: var(--ink); letter-spacing: 0.08em; }
  .ko-region-map .map-legend-item { font-family: var(--mono); font-size: 19px; fill: var(--ink-soft); }

  .legend-swatch.goog-dc { background: rgba(168, 136, 56, 0.45); }
  .legend-swatch.goog-office { background: var(--accent); }
  .legend-swatch.goog-primary { background: var(--accent); }
  .legend-swatch.goog-major { background: var(--gold); }

  

  /* ============ CVX REGION MAP ============ */
  .cvx-region-map { font-family: var(--serif); }
  .cvx-region-map .reg-neutral { fill: #e2dccf; stroke: #e2dccf; stroke-width: 0.6; opacity: 0.7; }
  .cvx-region-map .reg-estab { fill: var(--moss); stroke: var(--moss); stroke-width: 0.8; opacity: 0.95; transition: opacity 0.2s; }
  .cvx-region-map .reg-other { fill: #6b7d8c; stroke: #6b7d8c; stroke-width: 0.8; opacity: 0.95; transition: opacity 0.2s; }
  .cvx-region-map .reg-growth { fill: var(--gold); stroke: var(--gold); stroke-width: 0.8; opacity: 0.98; transition: opacity 0.2s; }
  .cvx-region-map .reg-core { fill: var(--accent); stroke: var(--accent); stroke-width: 0.8; opacity: 0.98; transition: opacity 0.2s; }
  .cvx-region-map .reg-estab:hover,
  .cvx-region-map .reg-other:hover,
  .cvx-region-map .reg-growth:hover,
  .cvx-region-map .reg-core:hover { opacity: 1; cursor: pointer; }
  .cvx-region-map .map-title { font-family: var(--serif); font-size: 38px; font-weight: 700; fill: var(--ink); letter-spacing: -0.015em; }
  .cvx-region-map .map-subtitle { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--ink-soft); }
  .cvx-region-map .seg-leader { stroke: var(--ink); stroke-width: 1.2; }
  .cvx-region-map .seg-leader-dot { fill: var(--ink); }
  .cvx-region-map .seg-lbl-box { fill: var(--paper); fill-opacity: 0.92; stroke: var(--rule); stroke-width: 0.5; }
  .cvx-region-map .seg-lbl-name { font-family: var(--mono); font-weight: 700; font-size: 22px; fill: var(--ink); }
  .cvx-region-map .seg-lbl-val { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--ink-soft); }
  .cvx-region-map .map-legend-head { font-family: var(--mono); font-size: 14px; font-weight: 700; fill: var(--ink-soft); letter-spacing: 0.12em; }
  .cvx-region-map .map-legend-item { font-family: var(--mono); font-size: 16px; fill: var(--ink); }

    /* ============ GOOG ENGINE CARDS (RICHER) ============ */
  .engine-card {
    background: var(--cream);
    padding: 36px 30px 32px;
    border-top: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
  }
  .engine-card.engine-cloud { border-top-color: var(--moss); }
  .engine-card.engine-option { border-top-color: var(--gold); }

  .engine-icon-wrap {
    display: inline-flex;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    color: var(--accent);
  }
  .engine-card.engine-cloud .engine-icon-wrap { color: var(--moss); }
  .engine-card.engine-option .engine-icon-wrap { color: var(--gold); }
  .engine-icon { width: 100%; height: 100%; }

  .engine-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .engine-card h4 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 18px 0;
    color: var(--ink);
  }
  .engine-card h4 em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
  }
  .engine-card.engine-cloud h4 em { color: var(--moss); }
  .engine-card.engine-option h4 em { color: var(--gold); }

  .engine-metric {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .engine-metric-item {
    flex: 1;
  }
  .engine-metric-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .engine-metric-val {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1;
  }

  .engine-body {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    font-weight: 400;
    margin: 0;
  }
  .engine-body strong {
    color: var(--ink);
    font-weight: 600;
  }

  @media (max-width: 900px) {
    .segments-grid { grid-template-columns: 1fr !important; }
    .engine-card { padding: 28px 22px 24px; }
    .engine-card h4 { font-size: 22px; }
  }

  /* ============ PRE-MORTEM RISK CARDS ============ */
  .risk-list {
    margin: 36px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .risk-card {
    background: var(--cream);
    border-left: 3px solid var(--rule);
    padding: 22px 26px 24px;
    display: grid;
    grid-template-columns: 60px 1fr 110px;
    gap: 18px;
    align-items: start;
  }
  .risk-card.risk-tier-high { border-left-color: var(--accent); }
  .risk-card.risk-tier-medium { border-left-color: var(--gold); }
  .risk-card.risk-tier-low { border-left-color: var(--moss); }
  .risk-card.risk-tier-tail { border-left-color: var(--ink-faint); }

  .risk-num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink-faint);
    line-height: 1;
    padding-top: 4px;
    letter-spacing: -0.02em;
  }

  .risk-body {
    /* center column */
  }
  .risk-title {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }
  .risk-detail {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    font-weight: 400;
  }
  .risk-detail strong {
    color: var(--ink);
    font-weight: 600;
  }
  .risk-detail em {
    color: var(--accent);
    font-style: italic;
  }

  .risk-badge {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 10px;
    text-align: center;
    background: var(--paper);
    border: 1px solid currentColor;
    align-self: start;
    margin-top: 4px;
  }
  .risk-badge.tier-high { color: var(--accent); }
  .risk-badge.tier-medium { color: var(--gold); }
  .risk-badge.tier-low { color: var(--moss); }
  .risk-badge.tier-tail { color: var(--ink-faint); }

  .risk-summary {
    margin-top: 28px;
    padding: 22px 28px;
    background: rgba(139, 36, 16, 0.05);
    border-left: 3px solid var(--accent);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 400;
  }
  .risk-summary strong {
    font-weight: 600;
  }

  @media (max-width: 700px) {
    .risk-card {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 20px 22px;
    }
    .risk-num { font-size: 22px; padding-top: 0; }
    .risk-badge {
      justify-self: start;
      margin-top: 0;
    }
  }

  /* ============ THESIS STRUCTURE PILLARS ============ */
  .pillars-stack {
    margin-top: 60px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .pillars-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .pillar-detailed {
    padding: 36px 28px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background 0.2s;
  }

  .pillars-4col:last-child .pillar-detailed {
    border-bottom: none;
  }

  .pillar-detailed:nth-child(4n) {
    border-right: none;
  }

  .pillar-detailed:hover {
    background: rgba(168, 136, 56, 0.04);
  }

  .pillar-title-sm {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 18px 0 14px 0;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
  }

  .pillar-desc {
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 300;
    font-variation-settings: "opsz" 18;
  }

  .pillar-desc em {
    font-style: italic;
    color: var(--ink);
  }

  @media (max-width: 900px) {
    .pillars-4col {
      grid-template-columns: 1fr 1fr;
    }
    .pillar-detailed:nth-child(4n) {
      border-right: 1px solid var(--rule);
    }
    .pillar-detailed:nth-child(2n) {
      border-right: none;
    }
  }

  @media (max-width: 600px) {
    .pillars-4col {
      grid-template-columns: 1fr;
    }
    .pillar-detailed.pillar-detailed:nth-child(4n).pillar-detailed:nth-child(2n) {
      border-right: none;
    }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .container.container-narrow { padding: 0 24px; }
    .nav { display: none; }
    .hero { padding: 60px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pillars { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
    .section { padding: 70px 0; }
    .db-table { font-size: 12px; }
    .db-table tbody td { padding: 16px 8px; }
    .db-table .hide-mobile { display: none; }
    .db-table thead .hide-mobile { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metric-card:nth-child(4n) { border-right: 1px solid rgba(244, 239, 230, 0.12); }
    .metric-card:nth-child(2n) { border-right: none; }
    .metric-card:nth-child(n+3) { border-top: 1px solid rgba(244, 239, 230, 0.12); }
    .moat-breakdown { grid-template-columns: 1fr; }
    .moat-pillar { border-right: none; border-bottom: 1px solid var(--rule); }
    .segments-grid { grid-template-columns: 1fr; }
    .geography-grid { grid-template-columns: 1fr; }
    .sw-grid { grid-template-columns: 1fr; }
    .data-table { font-size: 12px; }
    .data-table td.data-table th { padding: 10px 12px; }
    .article { padding: 60px 0; }
    .verdict-box { padding: 36px 24px; }
    .premortem { padding: 24px; }
    .article p { font-size: 16px; }
  }