
    :root {
      color-scheme: dark;
      --bg: #101010;
      --panel: #191919;
      --panel-soft: #222222;
      --line: rgba(255, 255, 255, 0.22);
      --text: #ededed;
      --muted: #bdbdbd;
      --faint: #858585;
      --cyan: #dedede;
      --green: #dedede;
      --gold: #dedede;
      --rose: #dedede;
      --ink: #101010;
      --max: 1040px;
      --gutter: clamp(44px, 8vw, 112px);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      background: var(--bg);
    }

    body {
      margin: 0;
      background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 3px 4px),
        radial-gradient(ellipse at 50% 0%, #303030 0%, #171717 42%, #101010 100%);
      color: var(--text);
      font-size: 15px;
      line-height: 1.62;
      letter-spacing: 0;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .topbar {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 20;
      border-bottom: 1px solid rgba(232, 238, 232, 0.09);
      background: rgba(8, 11, 16, 0.78);
      backdrop-filter: blur(18px);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: min(100% - var(--gutter), var(--max));
      margin: 0 auto;
      min-height: 58px;
      gap: 18px;
    }

    .mark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      font-size: 13px;
      font-weight: 680;
      color: #f2f6f2;
      white-space: nowrap;
    }

    .mark-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--cyan), var(--green));
      box-shadow: 0 0 20px rgba(114, 215, 209, 0.55);
      flex: 0 0 auto;
    }

    .navlinks {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
    }

    .navlinks a {
      padding: 8px 10px;
      border-radius: 999px;
    }

    .navlinks a:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.06);
    }

    .hero {
      position: relative;
      display: grid;
      align-items: start;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
      background-image:
        linear-gradient(90deg, rgba(8, 11, 16, 0.98) 0%, rgba(8, 11, 16, 0.78) 58%, rgba(8, 11, 16, 0.62) 100%),
        linear-gradient(0deg, rgba(8, 11, 16, 1) 0%, rgba(8, 11, 16, 0.58) 38%, rgba(8, 11, 16, 0.24) 100%),
        linear-gradient(rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 74% 38%, rgba(114, 215, 209, 0.18), transparent 17rem),
        radial-gradient(circle at 88% 72%, rgba(154, 223, 143, 0.13), transparent 15rem),
        #080b10;
      background-size: auto, auto, 42px 42px, 42px 42px, auto, auto, auto;
      background-position: center right;
    }

    .hero-inner {
      width: min(100% - var(--gutter), var(--max));
      margin: 0 auto;
      padding: 104px 0 58px;
    }

    .kicker {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .pill {
      border: 1px solid rgba(232, 238, 232, 0.16);
      background: rgba(8, 11, 16, 0.48);
      border-radius: 999px;
      padding: 5px 9px;
    }

    h1, h2, h3 {
      margin: 0;
      line-height: 1.06;
      letter-spacing: 0;
      color: #f4f4f4;
    }

    h1 {
      max-width: 690px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(24px, 3.3vw, 38px);
      font-weight: 520;
    }

    .subtitle {
      max-width: 720px;
      margin: 22px 0 0;
      color: #c9c9c9;
      font-size: clamp(14px, 1.45vw, 17px);
      line-height: 1.6;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 44px;
      padding: 10px 16px;
      border: 1px solid #606060;
      border-radius: 8px;
      background: #252525;
      color: #f2f2f2;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.2;
      transition: border-color .15s ease, box-shadow .15s ease;
    }

    .button.primary {
      background: linear-gradient(180deg, #303030, #252525);
      border-color: #606060;
      color: #f2f2f2;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 5px rgba(0, 0, 0, .15);
    }

    .button:hover {
      border-color: #aaaaaa;
      background: linear-gradient(180deg, #414141, #333333);
      color: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 8px rgba(0, 0, 0, .2);
    }

    main {
      overflow: hidden;
    }

    section {
      width: min(100% - var(--gutter), var(--max));
      margin: 0 auto;
      padding: 48px 0;
    }

    .hero {
      width: 100%;
      margin: 0;
      padding: 0;
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.48fr);
      gap: 34px;
      align-items: end;
      margin-bottom: 24px;
    }

    h2 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(24px, 3.3vw, 38px);
      font-weight: 520;
    }

    .lead {
      color: var(--muted);
      margin: 0;
      max-width: 680px;
    }

    .metric-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      border: 1px solid var(--line);
      background: var(--line);
    }

    .metric {
      min-height: 112px;
      padding: 20px;
      background: #181818;
    }

    .metric strong {
      display: block;
      color: #f2f2f2;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 24px;
      line-height: 1.05;
      font-weight: 520;
      word-break: break-word;
    }

    .metric span {
      display: block;
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

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

    .story-card, .paper-card, .future-card {
      border: 1px solid var(--line);
      border-radius: 2px;
      background: #191919;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    }

    .story-card {
      padding: 22px;
      min-height: 220px;
    }

    .step {
      display: inline-flex;
      width: 28px;
      height: 28px;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin-bottom: 22px;
      font-size: 12px;
      font-weight: 800;
      color: var(--ink);
      background: var(--cyan);
    }

    .story-card:nth-child(2) .step {
      background: var(--gold);
    }

    .story-card:nth-child(3) .step {
      background: var(--green);
    }

    h3 {
      font-size: 17px;
      font-weight: 720;
      margin-bottom: 12px;
    }

    .story-card p, .paper-card p, .future-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .equation-band {
      display: grid;
      grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.5fr);
      gap: 28px;
      align-items: center;
      border: 1px solid rgba(114, 215, 209, 0.18);
      background:
        linear-gradient(135deg, rgba(114, 215, 209, 0.08), transparent 46%),
        rgba(12, 17, 18, 0.86);
      border-radius: 8px;
      padding: 30px;
    }

    .equation {
      display: grid;
      gap: 10px;
      font-size: 15px;
      color: #eff7f1;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .equation .math-line {
      padding: 10px 12px;
      border: 1px solid rgba(232, 238, 232, 0.1);
      border-radius: 8px;
      background: rgba(5, 7, 10, 0.26);
      overflow-x: auto;
    }

    .equation .math-line mjx-container {
      margin: 0;
      overflow-x: auto;
      overflow-y: hidden;
    }

    .equation .math-note {
      display: block;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 12px;
      line-height: 1.55;
    }

    .flow-visual {
      position: relative;
      min-height: 230px;
      border: 1px solid rgba(232, 238, 232, 0.13);
      border-radius: 8px;
      background:
        linear-gradient(rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 78% 24%, rgba(154, 223, 143, 0.18), transparent 7rem),
        #0b1115;
      background-size: 34px 34px, 34px 34px, auto, auto;
      overflow: hidden;
    }

    .node {
      position: absolute;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--text);
      box-shadow: 0 0 0 5px rgba(232, 238, 232, 0.08);
    }

    .node.a { left: 14%; bottom: 20%; }
    .node.b { left: 30%; bottom: 58%; }
    .node.c { left: 51%; bottom: 34%; }
    .node.d { left: 78%; bottom: 72%; background: var(--green); }

    .flow-line {
      position: absolute;
      left: 15%;
      right: 20%;
      bottom: 27%;
      height: 3px;
      transform: rotate(-30deg);
      transform-origin: left center;
      background: linear-gradient(90deg, rgba(216, 142, 142, 0.9), var(--cyan), var(--green));
      box-shadow: 0 0 28px rgba(114, 215, 209, 0.26);
    }

    .edge-line {
      position: absolute;
      left: 16%;
      right: 17%;
      bottom: 24%;
      height: 1px;
      transform: rotate(-7deg);
      border-top: 1px dashed rgba(232, 238, 232, 0.42);
    }

    .visual-label {
      position: absolute;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      font-size: 13px;
      color: var(--muted);
      line-height: 1;
    }

    .visual-label.start { left: 10%; bottom: 8%; }
    .visual-label.end { right: 10%; top: 12%; color: var(--green); }
    .visual-label.mid {
      left: 36%;
      top: 13%;
      color: var(--cyan);
      padding: 4px 7px;
      border-radius: 999px;
      background: rgba(5, 7, 10, 0.46);
      box-shadow: 0 0 0 1px rgba(114, 215, 209, 0.10);
    }

    .visual-label mjx-container {
      margin: 0 !important;
      font-size: 112% !important;
    }

    .papers {
      display: grid;
      grid-template-columns: minmax(0, 0.64fr) minmax(0, 0.36fr);
      gap: 16px;
      align-items: stretch;
    }

    .paper-card {
      display: grid;
      grid-template-columns: minmax(0, 0.52fr) minmax(240px, 0.48fr);
      overflow: hidden;
      min-height: 380px;
    }

    .paper-copy {
      padding: 24px;
    }

    .paper-copy h3 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 24px;
      font-weight: 520;
    }

    .paper-graphic {
      position: relative;
      display: block;
      min-height: 320px;
      background:
        linear-gradient(rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 232, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 22% 24%, rgba(114, 215, 209, 0.18), transparent 10rem),
        radial-gradient(circle at 82% 74%, rgba(154, 223, 143, 0.12), transparent 9rem),
        rgba(9, 14, 18, 0.94);
      background-size: 32px 32px, 32px 32px, auto, auto, auto;
      overflow: hidden;
    }

    .paper-graphic svg {
      width: 100%;
      height: 100%;
      min-height: 320px;
      display: block;
    }

    .sorting-graphic {
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 58px;
    }

    .sorting-graphic svg {
      height: auto;
      min-height: 0;
      max-height: 300px;
    }

    .graphic-caption {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 16px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: rgba(232, 238, 232, 0.72);
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      font-size: 17px;
    }

    .graphic-chip {
      padding: 9px 13px;
      border: 1px solid rgba(232, 238, 232, 0.13);
      border-radius: 999px;
      background: rgba(5, 7, 10, 0.38);
    }

    .side-stack {
      display: grid;
      gap: 16px;
    }

    .mini-card {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(21, 27, 25, 0.74);
    }

    .mini-card strong {
      display: block;
      margin-bottom: 8px;
      color: #f3f8f3;
    }

    .mini-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .future {
      display: grid;
      grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
      gap: 16px;
      align-items: stretch;
    }

    .future-card {
      padding: 26px;
      background:
        linear-gradient(135deg, rgba(232, 196, 111, 0.12), transparent 54%),
        rgba(16, 22, 29, 0.78);
    }

    .formula-list {
      display: grid;
      gap: 10px;
      margin-top: 20px;
      color: #eff7f1;
      font-size: 15px;
    }

    .formula-list div {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 64px;
      padding: 12px 14px;
      border: 1px solid rgba(232, 238, 232, 0.12);
      border-radius: 8px;
      background: rgba(5, 7, 10, 0.36);
      overflow-x: auto;
    }

    .formula-list mjx-container {
      margin: 0;
      font-size: 112% !important;
      min-width: max-content;
    }

    .formula-list mjx-container[jax="SVG"][display="true"] {
      display: inline-block;
      text-align: center;
    }

    .entropy-graphic {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      min-height: 100%;
      border: 1px solid rgba(232, 238, 232, 0.14);
      border-radius: 8px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    }

    .entropy-graphic svg {
      height: auto;
      max-height: 340px;
      min-height: 0;
    }

    .svg-math {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      color: #e8eee8;
      font-size: 15px;
      line-height: 1;
      pointer-events: none;
    }

    .svg-math mjx-container {
      margin: 0 !important;
      font-size: 112% !important;
    }

    .svg-math.large {
      font-size: 19px;
    }

    .svg-math.green {
      color: var(--green);
      font-size: 20px;
      font-weight: 700;
    }

    .svg-math.cyan {
      color: var(--cyan);
      font-size: 19px;
      font-weight: 700;
    }

    .svg-math.gold {
      color: var(--gold);
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      font-size: 16px;
      font-weight: 800;
      justify-content: flex-start;
    }

    .footer {
      border-top: 1px solid var(--line);
      padding: 32px 0 42px;
      color: var(--faint);
      font-size: 12px;
    }

    .footer-inner {
      width: min(100% - var(--gutter), var(--max));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    @media (max-width: 880px) {
      .nav {
        min-height: 54px;
      }

      .navlinks {
        display: none;
      }

      .hero {
        background-position: 62% center;
      }

      .hero-inner {
        padding-top: 86px;
        padding-bottom: 54px;
      }

      section {
        padding: 42px 0;
      }

      .section-head, .equation-band, .papers, .paper-card, .future {
        grid-template-columns: 1fr;
      }

      .metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .story-grid {
        grid-template-columns: 1fr;
      }

      .paper-card {
        min-height: 0;
      }

      .paper-graphic {
        min-height: 300px;
      }

      .sorting-graphic svg {
        max-height: 280px;
      }
    }

    @media (max-width: 520px) {
      body {
        font-size: 14px;
      }

      .hero-inner, section, .nav, .footer-inner {
        width: min(100% - 24px, var(--max));
      }

      .metric-row {
        grid-template-columns: 1fr;
      }

      .equation-band, .future-card, .paper-copy, .story-card {
        padding: 18px;
      }

      .actions {
        align-items: stretch;
      }

      .button {
        justify-content: center;
        width: 100%;
      }

      /* The detailed diagrams rely on fixed SVG coordinates and MathJax labels.
         On narrow phones, use compact color fields instead of squeezing those
         layers until they collide. The linked cards remain fully clickable. */
      .flow-visual {
        min-height: 170px;
        background:
          radial-gradient(circle at 78% 24%, rgba(154, 223, 143, 0.42), transparent 34%),
          radial-gradient(circle at 20% 78%, rgba(216, 142, 142, 0.28), transparent 38%),
          linear-gradient(135deg, #111820 0%, rgba(114, 215, 209, 0.34) 52%, rgba(154, 223, 143, 0.18) 100%);
      }

      .flow-visual > * {
        display: none;
      }

      .paper-graphic {
        min-height: 190px;
        aspect-ratio: 16 / 9;
        background:
          radial-gradient(circle at 24% 26%, rgba(114, 215, 209, 0.46), transparent 38%),
          radial-gradient(circle at 80% 76%, rgba(154, 223, 143, 0.34), transparent 40%),
          linear-gradient(135deg, rgba(216, 142, 142, 0.18), rgba(9, 14, 18, 0.96) 48%, rgba(232, 196, 111, 0.16));
      }

      .paper-graphic svg,
      .paper-graphic .graphic-caption {
        display: none;
      }

      .sorting-graphic,
      .entropy-graphic {
        min-height: 190px;
        padding: 0;
      }
    }
  /* Project-specific additions to the shared research-page aesthetic. */
.author { margin: 20px 0 0; color: var(--cyan); font-size: 18px; font-weight: 500; }
.epigraph { max-width: 760px; margin: 0 0 28px; padding: 4px 0 4px 18px; border-left: 1px solid var(--faint); }
.epigraph p { margin: 0; color: var(--text); font-family: Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.5; }
.epigraph footer { margin-top: 8px; color: var(--muted); font-size: 14px; }
.epigraph cite { font-style: normal; }
.epigraph a { text-decoration: underline; text-underline-offset: 3px; }
.epigraph a:hover { color: var(--text); }
h1 { max-width: 800px; font-size: clamp(36px, 5.5vw, 62px); }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 520; font-size: clamp(27px, 3.5vw, 38px); }
section { scroll-margin-top: 72px; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; background: var(--panel); }
.skip:focus { top: 12px; }
.eyebrow { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.model-note p { color: var(--muted); font-size: 13px; }
.model-note h3 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; color: var(--green); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: rgba(16,22,29,.74); }
caption { text-align: left; padding: 18px; color: var(--muted); }
th, td { text-align: left; padding: 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--cyan); font-size: 12px; }
tbody th { font-weight: 600; min-width: 170px; }
td:last-child { white-space: nowrap; color: var(--green); }
.footnote { font-size: 12px; color: var(--muted); max-width: 900px; margin-top: 18px; }
.explorer { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg,rgba(114,215,209,.06),transparent 60%),rgba(16,22,29,.74); }
.explorer-head { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.explorer-head label { color: var(--muted); font-size: 13px; }
output { display: inline-block; color: var(--cyan); min-width: 20px; text-align: right; }
input[type=range] { display: block; width: 200px; margin-top: 12px; accent-color: var(--cyan); }
#speed-chart { width: 100%; height: auto; margin-top: 26px; overflow: visible; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; margin-top: 16px; }
.gold { color: var(--gold); } .rose { color: var(--rose); } .cyan { color: var(--cyan); } .green { color: var(--green); }
#speed-summary { color: var(--muted); font-size: 13px; }
.takeaways { margin-top: 16px; }
.paper-list .story-card { display: flex; flex-direction: column; }
.companion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.paper-list .story-card:first-child { grid-column: 1 / -1; }
@media(max-width: 700px) { .companion-grid { grid-template-columns: 1fr; } }
.paper-list h3 { font-family: Georgia,serif; font-size: 23px; font-weight: 500; line-height: 1.2; }
.paper-list .actions { margin-top: auto; padding-top: 22px; align-items: center; gap: 16px; }
.paper-list .button { width: auto; }
.paper-list .button::before {
  content: "";
  width: 12px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) 3px 5px / 4px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 8px / 4px 1px no-repeat;
  opacity: .8;
}
.paper-equation { margin: 16px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.paper-equation .formula { display: flex; align-items: center; max-width: 100%; min-height: 44px; overflow: visible; padding: 6px 0; color: var(--text); font-size: 17px; }
.paper-equation .formula > mjx-container { min-width: 0; max-width: 100%; }
.paper-equation .formula > mjx-container > svg { max-width: 100%; height: auto; }
.paper-equation figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.text-link { font-size: 12px; padding: 9px 0; color: var(--muted); text-decoration: underline; }
.paper-list .eyebrow { font-family: 'Courier New', monospace; letter-spacing: .16em; }
.text-link:hover { color: #ffffff; }
.future-card h2 { margin-bottom: 20px; }
@media(max-width:520px) { .explorer { padding: 16px; } th,td { padding: 12px; } .hero-inner { padding-top: 96px; } .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric { padding: 16px; } .metric strong { font-size: 21px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
