  :root {
    --ink: #161616;       /* primary text */
    --paper: #ffffff;     /* page background */
    --rust: #2563eb;      /* accent (links, highlights) */
    --muted: #6f6f6f;     /* secondary text */
    --rule: #e6e6e3;      /* hairlines, borders */
    --highlight: #f2f2ef; /* subtle fill surfaces */
    --slate: #3f3f3c;     /* body prose, data bars */
  }

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

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
  }

  ::selection { background: var(--rust); color: var(--paper); }

  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 1rem;
  }

  section { padding: 5rem 6vw; border-bottom: 1px solid var(--rule); }

  h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
    max-width: 22ch;
  }

  p.lead { font-size: 1.05rem; max-width: 62ch; color: var(--slate); }
  p.body-text { max-width: 62ch; margin-bottom: 1rem; color: var(--slate); font-size: 0.95rem; }
  p.body-text strong { color: var(--ink); font-weight: 500; }
  a { color: var(--rust); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,0.3); transition: border-color 0.15s; }
  a:hover { border-bottom-color: var(--rust); }

  /* ============ HERO ============ */
  header {
    padding: 4.5rem 6vw 3rem;
    border-bottom: 1px solid var(--rule);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
  }

  h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 16ch;
  }
  h1 em { font-style: italic; color: var(--rust); }

  .hero-sub {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: minmax(0, 58ch) auto;
    gap: 2rem;
    align-items: end;
  }
  .hero-sub p { font-size: 1.02rem; color: var(--slate); }
  .hero-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); line-height: 1.9; text-align: right; white-space: nowrap; }

  /* ============ ANIMATION ============ */
  .anim-section { padding: 3.5rem 6vw 4rem; border-bottom: 1px solid var(--rule); opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards; }

  .audit-stage {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    height: 360px;
    border: 1px solid var(--rule);
    background: linear-gradient(to right, transparent 49.8%, var(--rule) 49.8%, var(--rule) 50.2%, transparent 50.2%);
  }
  .stage-label {
    position: absolute;
    top: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .stage-label.left { left: 1rem; }
  .stage-label.right { right: 1rem; }

  .lane { position: absolute; left: 0; width: 100%; height: 120px; }
  .lane-a { top: 52px; }
  .lane-b { top: 196px; }

  .cv-card {
    position: absolute;
    left: 4%;
    top: 10px;
    width: 168px;
    background: #fafafa;
    border: 1px solid var(--rule);
    box-shadow: 2px 2px 0 var(--highlight);
    padding: 0.65rem 0.75rem;
    animation: sendCV 9s ease-in-out infinite;
  }
  .lane-b .cv-card { animation-delay: 0.35s; }

  .cv-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.3rem;
    margin-bottom: 0.4rem;
  }
  .lane-a .cv-name { color: var(--ink); }
  .lane-b .cv-name { color: var(--rust); }
  .cv-line { height: 4px; background: var(--highlight); margin-bottom: 5px; border-radius: 1px; }
  .cv-line.short { width: 65%; }
  .cv-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; color: var(--muted); margin-top: 0.35rem; letter-spacing: 0.06em; }

  @keyframes sendCV {
    0%   { transform: translateX(0); opacity: 0; }
    6%   { transform: translateX(0); opacity: 1; }
    38%  { transform: translateX(min(56vw, 470px)); opacity: 1; }
    46%  { transform: translateX(min(56vw, 470px)); opacity: 0; }
    100% { transform: translateX(min(56vw, 470px)); opacity: 0; }
  }

  .inbox {
    position: absolute;
    right: 4%;
    top: 18px;
    width: 120px;
    height: 84px;
    border: 1px solid var(--ink);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }
  .inbox-label { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .callback-ring {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
  }
  .lane-a .callback-ring { color: var(--ink); animation: ring 9s ease-in-out infinite; }
  .lane-b .callback-ring { color: var(--rust); animation: ringRare 27s ease-in-out infinite; }

  @keyframes ring {
    0%, 48% { opacity: 0; transform: scale(0.8); }
    54%, 78% { opacity: 1; transform: scale(1); }
    86%, 100% { opacity: 0; transform: scale(0.8); }
  }
  /* Lane B rings on only some cycles, approximating the lower callback rate */
  @keyframes ringRare {
    0%, 17.3% { opacity: 0; transform: scale(0.8); }
    18%, 26% { opacity: 1; transform: scale(1); }
    28.6%, 100% { opacity: 0; transform: scale(0.8); }
  }

  .counters {
    max-width: 880px;
    margin: 1.4rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .counter { background: var(--paper); padding: 1rem 1.2rem; }
  .counter-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.15rem; }
  .counter:last-child .counter-name { color: var(--rust); }
  .counter-stats { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); }
  .counter-stats strong { color: var(--ink); font-weight: 500; }
  .counter-bar { height: 5px; background: var(--highlight); margin-top: 0.55rem; position: relative; }
  .counter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width 0.5s ease; width: 0; }
  .counter:last-child .counter-fill { background: var(--rust); }

  .anim-caption {
    max-width: 880px;
    margin: 1.2rem auto 0;
    font-size: 0.85rem;
    color: var(--muted);
  }

  /* ============ PRINCIPLES ============ */
  .principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 2.5rem;
  }
  .principle { background: var(--paper); padding: 1.8rem 1.6rem; position: relative; transition: background 0.2s; }
  .principle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px; width: 0;
    background: var(--rust);
    transition: width 0.4s ease;
  }
  .principle:hover::before { width: 100%; }
  .principle:hover { background: #f4f4f3; }
  .principles-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
  .principles-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
  .principles-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

  /* ============ MEGA AUDIT (Block, Crabtree, Holbein & Monson) ============ */
  .mega-stage {
    max-width: 880px;
    margin: 2.5rem 0 0;
    border: 1px solid var(--rule);
    background: #fafafa;
    padding: 1.6rem 1.8rem 1.8rem;
  }
  .mega-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .phase-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .phase-label strong { color: var(--ink); font-weight: 500; transition: color 0.3s; }
  .phase-label strong.phase-b { color: var(--rust); }
  .reply-count { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--muted); }
  .reply-count strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
  .dot-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 7px;
  }
  .dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--highlight);
    transition: background 0.45s ease, transform 0.45s ease;
  }
  .dot.lit-w { background: var(--slate); transform: scale(1.25); }
  .dot.lit-b { background: var(--rust); transform: scale(1.25); }

  .holbein-grid {
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 1.5rem;
  }
  .holbein-card { background: var(--paper); padding: 1.6rem; }
  .holbein-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
  .holbein-card p { font-size: 0.88rem; color: var(--slate); }
  .holbein-cite { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.7rem; }

  .religion-bars { margin-top: 1.1rem; }
  .rb-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 0.8rem; align-items: center; margin-bottom: 0.45rem; }
  .rb-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
  .rb-val { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); white-space: nowrap; }
  .rb-track { height: 8px; background: var(--highlight); position: relative; }
  .rb-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); width: 0; }
  .rb-fill.penalized { background: var(--rust); }
  .religion-bars.run .rb-fill { animation: rbGrow 1.2s ease forwards; }
  .religion-bars.run .rb-row:nth-child(2) .rb-fill { animation-delay: 0.15s; }
  .religion-bars.run .rb-row:nth-child(3) .rb-fill { animation-delay: 0.3s; }
  .religion-bars.run .rb-row:nth-child(4) .rb-fill { animation-delay: 0.45s; }
  @keyframes rbGrow { from { width: 0; } to { width: var(--w); } }
  .rb-note { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: var(--muted); margin-top: 0.6rem; }
  .principle-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 0.8rem;
  }
  .principle h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
  .principle p { font-size: 0.88rem; color: var(--slate); }

  /* ============ NAME EXPLORER ============ */
  .explorer-wrap { margin-top: 2.5rem; display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }

  .name-search {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: #fafafa;
    border: 1px solid var(--ink);
    color: var(--ink);
    outline: none;
  }
  .name-search:focus { border-color: var(--rust); }

  .group-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
  .chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .chip:hover { border-color: var(--ink); color: var(--ink); }
  .chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .name-list {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--rule);
    background: #fafafa;
  }
  .name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--highlight);
    cursor: pointer;
    transition: background 0.1s;
  }
  .name-row:hover { background: var(--highlight); }
  .name-row.selected { background: var(--ink); color: var(--paper); }
  .name-row.selected .name-row-group { color: var(--highlight); }
  .name-row-name { font-size: 0.88rem; font-weight: 400; }
  .name-row-group { font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  .list-count { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); margin-top: 0.5rem; }

  .compare-area { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .name-panel { border: 1px solid var(--rule); background: #fafafa; padding: 1.6rem; min-height: 420px; }
  .name-panel.empty { display: flex; align-items: center; justify-content: center; }
  .empty-msg { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 2; }

  .panel-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
  .panel-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0.3rem 0 1.4rem; }

  .bar-group { margin-bottom: 0.55rem; }
  .bar-label { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--slate); margin-bottom: 0.2rem; }
  .bar-track { height: 9px; background: var(--highlight); position: relative; }
  .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); transition: width 0.5s ease; }
  .bar-fill.lead-bar { background: var(--rust); }

  .panel-divider { border: none; border-top: 1px solid var(--rule); margin: 1.3rem 0; }
  .attr-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
  .attr-label { font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
  .attr-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; }
  .attr-scale { font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; color: var(--muted); }
  .clear-btn {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
  }
  .clear-btn:hover { border-color: var(--rust); color: var(--rust); }

  .explorer-note { font-size: 0.82rem; color: var(--muted); max-width: 70ch; margin-top: 1.6rem; }

  /* ============ POWER CALCULATOR ============ */
  .calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.4rem; margin: 0 0 1.5rem; }
  .calc-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .calc-field > span { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
  .calc-field input, .calc-field select { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; padding: 0.55rem 0.7rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); outline: none; width: 100%; }
  .calc-field input:focus, .calc-field select:focus { border-color: var(--rust); }
  .calc-readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 1.4rem; }
  .calc-stat { background: var(--paper); padding: 1rem 1.1rem; }
  .calc-stat-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--rust); }
  .calc-stat-lab { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; line-height: 1.5; }

  /* ============ DEBATES ============ */
  .debates { margin-top: 2.5rem; }

  /* ============ BEFORE YOU FIELD ============ */
  .field-list { margin-top: 2.5rem; max-width: 80ch; }
  .field-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 1.6rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
  }
  .field-item > div { min-width: 0; }
  .field-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--rust);
    padding-top: 0.2rem;
  }
  .field-item h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
  .field-item p { font-size: 0.9rem; color: var(--slate); max-width: 68ch; }
  .field-list .reveal:nth-child(even) { transition-delay: 0.08s; }
  @media (max-width: 800px) {
    .field-item { grid-template-columns: 36px minmax(0, 1fr); gap: 0.9rem; }
  }
  .debate {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 1.8rem 0;
    border-top: 1px solid var(--rule);
  }
  .debate-q { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; font-style: italic; line-height: 1.3; }
  .debate-body { font-size: 0.92rem; color: var(--slate); max-width: 65ch; }

  /* ============ READING ============ */
  .reading-list { margin-top: 2.5rem; max-width: 75ch; }
  .reading-item { padding: 0.9rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: baseline; }
  .reading-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
  .reading-cite { font-size: 0.88rem; color: var(--slate); }
  .reading-cite strong { font-weight: 500; color: var(--ink); }

  footer {
    padding: 3rem 6vw 4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 2;
  }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    header, .anim-section { opacity: 1; }
    .reveal { opacity: 1; transform: none; }
    .callback-ring { opacity: 1 !important; }
    .cv-card { opacity: 1 !important; transform: none !important; }
    .rb-fill { width: var(--w) !important; }
    .dot.lit-w, .dot.lit-b { transform: none; }
  }

  @media (max-width: 800px) {
    .hero-sub { grid-template-columns: 1fr; }
    .hero-meta { text-align: left; }
    .explorer-wrap { grid-template-columns: 1fr; }
    .compare-area { grid-template-columns: 1fr; }
    .debate { grid-template-columns: 1fr; gap: 0.5rem; }
    .holbein-grid { grid-template-columns: 1fr; }
    .dot-grid { grid-template-columns: repeat(20, 1fr); gap: 5px; }
    .reading-item { grid-template-columns: 1fr; gap: 0.2rem; }
    .audit-stage { height: 320px; }
    .cv-card { width: 130px; }
    @keyframes sendCV {
      0%   { transform: translateX(0); opacity: 0; }
      6%   { transform: translateX(0); opacity: 1; }
      38%  { transform: translateX(46vw); opacity: 1; }
      46%  { transform: translateX(46vw); opacity: 0; }
      100% { transform: translateX(46vw); opacity: 0; }
    }
  }

  /* ============ SITE NAV (multi-page) ============ */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 6vw;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    border: none;
    font-weight: 500;
  }
  .nav-brand:hover { color: var(--rust); }
  .nav-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
  .nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.current { color: var(--rust); border-bottom-color: var(--rust); }

  /* page intro shared */
  .page-hero { padding: 3.5rem 6vw 2.5rem; border-bottom: 1px solid var(--rule); opacity: 0; animation: fadeUp 0.7s ease forwards; }
  .page-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-top: 0.8rem;
  }
  .page-hero h1 em { font-style: italic; color: var(--rust); }
  .page-hero .lead { margin-top: 1.4rem; }

  /* prev/next pager */
  .pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.5rem 6vw;
    border-top: 1px solid var(--rule);
  }
  .pager a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    color: var(--muted);
    max-width: 45%;
  }
  .pager a:hover { color: var(--rust); }
  .pager a.next { text-align: right; margin-left: auto; }
  .pager .pager-dir { display: block; font-size: 0.58rem; color: var(--rust); margin-bottom: 0.3rem; }
  .pager .pager-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }

  @media (max-width: 800px) {
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.6rem; }
  }

  /* ============ HETEROGENEITY PLOT ============ */
  .het-stage { max-width: 880px; margin: 2rem 0 0; border: 1px solid var(--rule); background: #fafafa; padding: 1.4rem 1.8rem 1rem; }
  .het-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
  .het-plot { position: relative; height: 200px; border-left: 1px solid var(--rule); }
  .het-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--slate); transform: translate(-50%,-50%);
    transition: left 0.7s cubic-bezier(.2,.7,.3,1), opacity 0.4s ease; }
  .het-dot.neg { background: var(--rust); }
  .het-mean { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: 0.55; }
  .het-axis { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: var(--muted); margin-top: 0.5rem; padding-left: 0; }

  /* ============ MODERN LOGISTICS + IRB ============ */
  .modern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 1.6rem; }
  .modern-item { background: var(--paper); padding: 1.4rem 1.5rem; }
  .modern-item h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; }
  .modern-item p { font-size: 0.86rem; color: var(--slate); }
  .irb-list { margin-top: 1.8rem; max-width: 80ch; }
  .irb-item { padding: 1.2rem 0; border-top: 1px solid var(--rule); }
  .irb-q { font-family: 'Plus Jakarta Sans', sans-serif; font-style: italic; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
  .irb-a { font-size: 0.9rem; color: var(--slate); max-width: 72ch; }
  @media (max-width: 800px) { .modern-grid { grid-template-columns: 1fr; } }

  /* ============ TUTORIAL / INTERACTIVE PANELS ============ */
  .tutorial {
    max-width: 880px; margin: 2.2rem 0 0;
    border: 1px solid var(--ink); background: #fafafa;
  }
  .tut-head {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--rule);
    background: var(--ink); color: var(--paper);
  }
  .tut-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4); padding: 0.15rem 0.5rem; border-radius: 2px;
  }
  .tut-head h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; font-weight: 600; }
  .tut-body { padding: 1.4rem 1.5rem; }
  .tut-caption { font-size: 0.88rem; color: var(--slate); min-height: 3.2em; max-width: 70ch; }
  .tut-caption strong { color: var(--ink); font-weight: 600; }
  .tut-controls { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
  .tut-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.5rem 1rem; background: var(--ink); color: var(--paper); border: none; cursor: pointer; transition: background 0.15s;
  }
  .tut-btn:hover { background: var(--rust); }
  .tut-btn:disabled { background: var(--rule); color: var(--muted); cursor: default; }
  .tut-dots { display: flex; gap: 0.4rem; margin-left: auto; }
  .tut-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); transition: background 0.2s; }
  .tut-dot.on { background: var(--rust); }

  /* anatomy stepper stage */
  .anat-stage { position: relative; height: 230px; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
  .anat-card {
    position: absolute; width: 150px; background: #fff; border: 1px solid var(--rule); box-shadow: 2px 2px 0 var(--highlight);
    padding: 0.6rem 0.7rem; transition: all 0.7s cubic-bezier(.2,.7,.3,1);
  }
  .anat-card .cv-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.25rem; margin-bottom: 0.35rem; }
  .anat-card.a { left: 6%; top: 28px; }
  .anat-card.b { left: 6%; top: 120px; }
  .anat-card.b .cv-name { color: var(--rust); }
  .anat-line { height: 4px; background: var(--highlight); margin-bottom: 5px; border-radius: 1px; transition: width 0.6s ease; }
  .anat-badge {
    position: absolute; right: 5%; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted); opacity: 0; transition: opacity 0.5s ease;
  }
  .anat-badge.show { opacity: 1; }
  .anat-ring { font-size: 1.3rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }

  /* power explorer */
  .pwr-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
  .pwr-label { font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
  .pwr-track { position: relative; height: 34px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .pwr-zero { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--ink); opacity: 0.4; }
  .pwr-zero span { position: absolute; bottom: -16px; left: -4px; font-family: 'JetBrains Mono', monospace; font-size: 0.52rem; color: var(--muted); }
  .pwr-ci { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); background: var(--muted); opacity: 0.35; transition: all 0.25s ease; }
  .pwr-ci.detect { background: var(--rust); opacity: 0.85; }
  .pwr-pt { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%,-50%); background: var(--ink); transition: left 0.25s ease; }
  .pwr-verdict { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: right; }
  .pwr-verdict.yes { color: var(--rust); }
  .pwr-verdict.no { color: var(--muted); }
  .pwr-slider { width: 100%; margin: 0.5rem 0 0.2rem; accent-color: var(--rust); }
  .pwr-nval { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem; }

  /* post-treatment funnel */
  .funnel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .funnel-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; }
  .funnel-col.b h4 { color: var(--rust); }
  .funnel-dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
  .fd { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--slate); transition: opacity 0.4s ease, background 0.4s ease; }
  .fd.faded { opacity: 0.13; }
  .funnel-stat { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); margin-top: 0.5rem; }

  /* trend plot */
  .trend-stage { max-width: 880px; margin: 2rem 0 0; border: 1px solid var(--rule); background: #fafafa; padding: 1.4rem 1.8rem 1rem; }
  .trend-plot { position: relative; height: 220px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .trend-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--slate); transform: translate(-50%,50%); opacity: 0; transition: opacity 0.4s ease; }
  .trend-line { position: absolute; height: 2px; background: var(--rust); transform-origin: left center; opacity: 0; transition: opacity 0.6s ease; }
  .trend-axis { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; color: var(--muted); margin-top: 0.5rem; }
  .trend-ylab { font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; color: var(--muted); margin-bottom: 0.4rem; }
  @media (max-width: 800px) { .funnel-cols { grid-template-columns: 1fr; gap: 1.2rem; } .pwr-row { grid-template-columns: 90px 1fr 70px; gap: 0.5rem; } }


/* ============================================================ POLISH PASS */
.figure { width: 100%; margin: 0.4rem 0 0.2rem; }
.figure svg { display: block; width: 100%; height: auto; overflow: visible; }

/* hero callback race: calmer, larger, with running gap */
.audit-stage { height: 380px; }
.gap-readout {
  max-width: 880px; margin: 1.2rem auto 0; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--rust);
}
.cv-card { width: 184px; }
.callback-ring { transition: transform 0.4s cubic-bezier(.2,1.4,.4,1); }

/* anatomy stepper: roomier stage + labeled rail */
.anat-stage { height: 270px; }
.anat-card { width: 168px; transition: left 0.7s cubic-bezier(.2,.7,.3,1), top 0.7s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease; }
.anat-card.shuffle { animation: anatShuffle 0.6s ease; }
@keyframes anatShuffle { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-6px) rotate(-1deg); } 75% { transform: translateY(4px) rotate(1deg); } }
.stage-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 1rem; border: 1px solid var(--rule); }
.rail-seg { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; border-right: 1px solid var(--rule); background: var(--paper); transition: background 0.25s ease, color 0.25s ease; }
.rail-seg:last-child { border-right: none; }
.rail-num { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); }
.rail-name { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rail-seg.on { background: var(--ink); }
.rail-seg.on .rail-num, .rail-seg.on .rail-name { color: var(--paper); }
.rail-seg.done .rail-num, .rail-seg.done .rail-name { color: var(--rust); }
.anat-pill { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--muted); background: var(--paper); }
.anat-pill.ok { color: var(--rust); border-color: var(--rust); }
.anat-ring.win { color: var(--ink); font-weight: 800; }
.anat-ring.lose { color: var(--rust); font-weight: 800; }
.anat-emp { position: absolute; right: 4%; top: 96px; width: 96px; height: 78px; border: 1px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; opacity: 0; transition: opacity 0.5s ease; }
.anat-emp.show { opacity: 1; }
.anat-emp span { font-size: 1.6rem; line-height: 1; }
.anat-emp em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.anat-sweep { position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(37,99,235,0.10), transparent); pointer-events: none; }
.anat-sweep.go { animation: anatSweep 0.9s ease forwards; }
@keyframes anatSweep { from { left: -40%; } to { left: 110%; } }

/* 250k dot grid: bigger, calmer dots */
.dot-grid { gap: 9px; }
.dot { transition: background 0.5s ease, transform 0.5s cubic-bezier(.2,1.4,.4,1); }
.dot.lit-w, .dot.lit-b { transform: scale(1.35); }

/* explorer: stacked race summary bar + smoother fills */
.stack-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; border: 1px solid var(--rule); }
.stack-seg { height: 100%; }
.seg-w { background: var(--slate); }
.seg-b { background: var(--rust); }
.seg-h { background: color-mix(in srgb, var(--rust) 55%, var(--paper)); }
.seg-a { background: color-mix(in srgb, var(--ink) 45%, var(--paper)); }
.seg-o { background: var(--highlight); }
.bar-fill { transition: width 0.6s cubic-bezier(.2,.7,.3,1); border-radius: 0 2px 2px 0; }

/* income-delta strip */
.conf-delta { margin: 0.4rem 0 0.2rem; }
.conf-delta svg { width: 100%; height: auto; overflow: visible; }

/* post-treatment funnel: scored highlight + bracket */
.funnel-dots { gap: 5px; }
.fd { transition: opacity 0.45s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.fd.scored { box-shadow: 0 0 0 2px var(--rust); background: var(--rust); }
.funnel-col { position: relative; padding-bottom: 0.4rem; }
.funnel-col.bracketed::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: -2px; height: 8px;
  border: 1px solid var(--rust); border-top: none; opacity: 0.7;
}

@media (max-width: 800px) {
  .audit-stage { height: 340px; }
  .anat-stage { height: 300px; }
  .stage-rail { grid-template-columns: repeat(2, 1fr); }
  .rail-seg:nth-child(2) { border-right: none; }
  .dot-grid { gap: 5px; }
}
@media (max-width: 560px) {
  /* the anatomy stage is too narrow for a full-width card + employer box + badge text,
     so shrink the card, drop the employer box, and let the badges use the freed space */
  .anat-emp { display: none; }
  .anat-card { width: 104px; }
  .anat-card .cv-name { font-size: 0.72rem; }
  .anat-ring { font-size: 0.92rem; }
  .anat-pill { font-size: 0.48rem; padding: 0.12rem 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .anat-card, .anat-sweep, .dot, .bar-fill, .callback-ring, .fd { transition: none !important; animation: none !important; }
}
