:root {
      --ink: #15151d;
      --muted: #5f5d6c;
      --lavender: #e9e4ff;
      --lavender-deep: #d8d0ff;
      --paper: #f8f7f2;
      --white: #fff;
      --blue: #3c46ff;
      --orange: #ff642e;
      --lime: #d9ff43;
      --pink: #ffb9dd;
      --cyan: #8ce8ff;
      --line: rgba(21, 21, 29, .18);
      --line-strong: rgba(21, 21, 29, .42);
      --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      --shadow: 10px 10px 0 var(--ink);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--lavender);
      font-family: var(--sans);
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }
    body.menu-open,
    body.modal-open { overflow: hidden; }
    button,
    input { font: inherit; }
    button,
    a { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    a { color: inherit; }
    svg { display: block; width: 100%; }
    ::selection { color: var(--ink); background: var(--lime); }
    :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

    .skip-link {
      position: fixed;
      z-index: 200;
      top: 12px;
      left: 12px;
      padding: 10px 14px;
      background: var(--lime);
      border: 2px solid var(--ink);
      font-weight: 800;
      transform: translateY(-160%);
    }
    .skip-link:focus { transform: translateY(0); }

    .side-rail {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 60;
      width: 84px;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--paper);
      background: var(--ink);
      border-right: 1px solid rgba(255,255,255,.18);
    }
    .rail-logo {
      width: 84px;
      height: 84px;
      display: grid;
      place-items: center;
      color: var(--ink);
      background: var(--lime);
      border-bottom: 1px solid var(--ink);
      text-decoration: none;
    }
    .rail-logo svg { width: 42px; height: 42px; }
    .rail-wordmark {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 22px 0;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .rail-counter {
      width: 84px;
      min-height: 86px;
      display: grid;
      place-items: center;
      border-top: 1px solid rgba(255,255,255,.18);
      font-family: var(--mono);
      font-size: 11px;
      text-align: center;
    }
    .rail-counter strong { display: block; color: var(--lime); font-size: 22px; }

    .page { margin-left: 84px; }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      min-height: 72px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 24px;
      padding: 0 34px;
      background: rgba(233, 228, 255, .9);
      border-bottom: 1px solid var(--line-strong);
      backdrop-filter: blur(18px);
    }
    .mobile-brand { display: none; font-weight: 900; text-decoration: none; }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-links a {
      position: relative;
      font-size: 13px;
      font-weight: 750;
      text-decoration: none;
    }
    .nav-links a::after {
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -7px;
      height: 3px;
      background: var(--orange);
      content: "";
      transition: right .2s ease;
    }
    .nav-links a:hover::after { right: 0; }
    .top-note {
      justify-self: center;
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
    .compare-button,
    .menu-button {
      min-height: 40px;
      padding: 0 14px;
      background: transparent;
      border: 1px solid var(--ink);
      border-radius: 0;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .compare-button span {
      min-width: 21px;
      height: 21px;
      display: inline-grid;
      place-items: center;
      margin-left: 7px;
      color: var(--paper);
      background: var(--blue);
      border-radius: 50%;
      font-family: var(--mono);
      font-size: 10px;
    }
    .menu-button { display: none; width: 42px; padding: 0; }

    .hero {
      position: relative;
      min-height: calc(100svh - 72px);
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(410px, .78fr);
      border-bottom: 1px solid var(--ink);
      overflow: hidden;
    }
    .hero-copy {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: clamp(46px, 6vw, 92px) clamp(28px, 5.2vw, 84px) 34px;
      border-right: 1px solid var(--ink);
    }
    .hero-copy::after {
      position: absolute;
      right: 8%;
      bottom: 18%;
      width: clamp(60px, 8vw, 124px);
      aspect-ratio: 1;
      background: var(--orange);
      border: 1px solid var(--ink);
      border-radius: 50%;
      mix-blend-mode: multiply;
      content: "";
      animation: drift 7s ease-in-out infinite;
    }
    @keyframes drift { 50% { transform: translate(-18px, -24px) scale(.92); } }
    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      margin: 0 0 30px;
      padding: 8px 11px;
      background: var(--paper);
      border: 1px solid var(--ink);
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .hero-kicker i {
      width: 8px;
      height: 8px;
      background: var(--blue);
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(60,70,255,.12);
    }
    h1 {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0;
      font-size: clamp(62px, 8.4vw, 144px);
      font-weight: 950;
      letter-spacing: -.085em;
      line-height: .78;
    }
    h1 span { display: block; }
    h1 .outline {
      color: transparent;
      -webkit-text-stroke: 2px var(--ink);
      text-stroke: 2px var(--ink);
    }
    .hero-bottom {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: minmax(240px, 520px) auto;
      gap: 28px;
      align-items: end;
      margin-top: 58px;
    }
    .hero-sub {
      margin: 0;
      color: #454351;
      font-size: clamp(16px, 1.35vw, 20px);
      letter-spacing: -.015em;
    }
    .hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
    .button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 18px;
      border: 1px solid var(--ink);
      font-size: 12px;
      font-weight: 850;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: .035em;
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
    .button.primary { color: var(--paper); background: var(--blue); }
    .button.secondary { background: var(--paper); }
    .button .arrow { font-size: 18px; line-height: 1; }

    .chart-lab {
      min-width: 0;
      display: grid;
      grid-template-rows: auto 1fr auto;
      background: var(--paper);
    }
    .lab-head,
    .lab-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 18px 22px;
      border-bottom: 1px solid var(--ink);
      font-family: var(--mono);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .lab-head strong { font-size: 12px; }
    .lab-status { display: flex; align-items: center; gap: 8px; }
    .lab-status::before { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; content: ""; }
    .lab-stage {
      position: relative;
      min-height: 520px;
      display: grid;
      place-items: center;
      padding: 8%;
      overflow: hidden;
      background:
        linear-gradient(rgba(21,21,29,.095) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,21,29,.095) 1px, transparent 1px),
        var(--paper);
      background-size: 38px 38px;
    }
    .lab-stage::before {
      position: absolute;
      width: 46%;
      aspect-ratio: 1;
      top: 10%;
      right: -8%;
      background: var(--pink);
      border: 1px solid var(--ink);
      border-radius: 50%;
      content: "";
    }
    .lab-stage::after {
      position: absolute;
      width: 34%;
      height: 20%;
      left: -4%;
      bottom: 9%;
      background: var(--lime);
      border: 1px solid var(--ink);
      transform: rotate(-8deg);
      content: "";
    }
    .chart-window {
      position: relative;
      z-index: 2;
      width: min(100%, 590px);
      background: var(--white);
      border: 2px solid var(--ink);
      box-shadow: var(--shadow);
    }
    .window-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px;
      border-bottom: 1px solid var(--ink);
      font-family: var(--mono);
      font-size: 10px;
    }
    .window-dots { display: flex; gap: 5px; }
    .window-dots i { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
    .window-dots i:nth-child(1) { background: var(--orange); }
    .window-dots i:nth-child(2) { background: var(--lime); }
    .window-dots i:nth-child(3) { background: var(--blue); }
    .chart-wrap { position: relative; padding: 22px 22px 14px; }
    #heroChart { aspect-ratio: 1.28; overflow: visible; }
    .axis { stroke: var(--ink); stroke-width: 1.5; }
    .grid-line { stroke: rgba(21,21,29,.14); stroke-width: 1; stroke-dasharray: 4 6; }
    .bar-shape { transform-box: fill-box; transform-origin: bottom; animation: grow .65s cubic-bezier(.2,.8,.2,1) both; }
    .bar-shape:nth-of-type(2) { animation-delay: .08s; }
    .bar-shape:nth-of-type(3) { animation-delay: .16s; }
    .bar-shape:nth-of-type(4) { animation-delay: .24s; }
    .bar-shape:nth-of-type(5) { animation-delay: .32s; }
    @keyframes grow { from { transform: scaleY(.02); } }
    .plot-point { transform-box: fill-box; transform-origin: center; animation: pop .45s ease both; }
    @keyframes pop { from { opacity: 0; transform: scale(.2); } }
    .chart-caption {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 0 22px 18px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 10px;
    }
    .lab-foot { border-top: 1px solid var(--ink); border-bottom: 0; padding: 0; align-items: stretch; }
    .chart-tabs { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
    .chart-tab {
      min-height: 54px;
      padding: 0 12px;
      background: var(--paper);
      border: 0;
      border-right: 1px solid var(--ink);
      cursor: pointer;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 750;
      text-transform: uppercase;
    }
    .chart-tab[aria-selected="true"] { color: var(--paper); background: var(--ink); }
    .shuffle {
      width: 58px;
      border: 0;
      background: var(--lime);
      cursor: pointer;
      font-size: 21px;
    }

    .ticker {
      display: flex;
      overflow: hidden;
      color: var(--paper);
      background: var(--blue);
      border-bottom: 1px solid var(--ink);
    }
    .ticker-track {
      flex: none;
      display: flex;
      align-items: center;
      gap: 40px;
      min-width: max-content;
      padding: 15px 20px;
      animation: ticker 26s linear infinite;
    }
    .ticker:hover .ticker-track { animation-play-state: paused; }
    .ticker span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .ticker b { color: var(--lime); }
    @keyframes ticker { to { transform: translateX(-100%); } }

    .section { padding: clamp(74px, 9vw, 140px) clamp(26px, 5vw, 82px); border-bottom: 1px solid var(--ink); }
    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
      gap: 50px;
      align-items: end;
      margin-bottom: 52px;
    }
    .section-index {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .section-index::before { width: 30px; height: 2px; background: var(--orange); content: ""; }
    h2 {
      max-width: 900px;
      margin: 0;
      font-size: clamp(48px, 6.3vw, 100px);
      font-weight: 920;
      letter-spacing: -.075em;
      line-height: .86;
    }
    .section-intro { margin: 0; color: var(--muted); font-size: 17px; }

    .finder { background: var(--paper); }
    .finder-bar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      gap: 18px;
      align-items: center;
      margin-bottom: 26px;
      padding: 16px;
      background: var(--lavender);
      border: 1px solid var(--ink);
    }
    .search-box { position: relative; }
    .search-box svg {
      position: absolute;
      left: 15px;
      top: 50%;
      width: 19px;
      transform: translateY(-50%);
      pointer-events: none;
    }
    .search-box input {
      width: 100%;
      height: 50px;
      padding: 0 16px 0 46px;
      color: var(--ink);
      background: var(--white);
      border: 1px solid var(--ink);
      border-radius: 0;
    }
    .search-box input::placeholder { color: #777483; }
    .results-count { font-family: var(--mono); font-size: 11px; text-align: right; }
    .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
    .filter-chip {
      min-height: 38px;
      padding: 0 15px;
      color: var(--ink);
      background: transparent;
      border: 1px solid var(--ink);
      border-radius: 999px;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: .035em;
    }
    .filter-chip[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
    .tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
    .tool-card {
      min-height: 330px;
      display: flex;
      flex-direction: column;
      background: var(--white);
      border-right: 1px solid var(--ink);
      border-bottom: 1px solid var(--ink);
      transition: background .2s ease;
    }
    .tool-card:hover { background: var(--lavender); }
    .tool-card[hidden] { display: none; }
    .tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px; }
    .tool-number { font-family: var(--mono); font-size: 10px; }
    .compare-toggle {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      background: transparent;
      border: 1px solid var(--ink);
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
    }
    .compare-toggle[aria-pressed="true"] { color: var(--paper); background: var(--blue); }
    .tool-mark {
      width: 74px;
      height: 74px;
      display: grid;
      place-items: center;
      margin: 10px 18px 28px;
      border: 1px solid var(--ink);
      border-radius: 50%;
      font-weight: 950;
      font-size: 25px;
      letter-spacing: -.06em;
    }
    .tool-card:nth-child(4n+1) .tool-mark { background: var(--lime); }
    .tool-card:nth-child(4n+2) .tool-mark { background: var(--pink); }
    .tool-card:nth-child(4n+3) .tool-mark { background: var(--cyan); }
    .tool-card:nth-child(4n+4) .tool-mark { color: var(--paper); background: var(--blue); }
    .tool-card-body { padding: 0 18px 22px; margin-top: auto; }
    .tool-card h3 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.04em; }
    .tool-card p { min-height: 42px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
    .tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
    .tool-tags span { padding: 4px 7px; background: var(--paper); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
    .tool-link { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
    .empty-state { display: none; padding: 50px; background: var(--lavender); border: 1px solid var(--ink); text-align: center; }
    .empty-state.visible { display: block; }

    .chooser { color: var(--paper); background: var(--ink); }
    .chooser .section-index::before { background: var(--lime); }
    .chooser .section-intro { color: rgba(248,247,242,.68); }
    .question-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.28); border-left: 1px solid rgba(255,255,255,.28); }
    .question-card {
      position: relative;
      min-height: 310px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 22px;
      border-right: 1px solid rgba(255,255,255,.28);
      border-bottom: 1px solid rgba(255,255,255,.28);
      text-decoration: none;
      overflow: hidden;
    }
    .question-card::after {
      position: absolute;
      right: -25%;
      bottom: -25%;
      width: 80%;
      aspect-ratio: 1;
      background: var(--card-color, var(--blue));
      border-radius: 50%;
      opacity: .8;
      transform: scale(.72);
      transition: transform .25s ease;
      content: "";
    }
    .question-card:hover::after { transform: scale(1); }
    .question-card span,
    .question-card strong { position: relative; z-index: 1; }
    .question-card span { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
    .question-card strong { max-width: 170px; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.04; letter-spacing: -.04em; }
    .question-card:nth-child(2) { --card-color: var(--orange); }
    .question-card:nth-child(3) { --card-color: var(--pink); color: var(--ink); background: var(--paper); }
    .question-card:nth-child(4) { --card-color: var(--lime); }
    .question-card:nth-child(5) { --card-color: var(--cyan); color: var(--ink); background: var(--paper); }
    .question-card:nth-child(6) { --card-color: #945cff; }

    .examples { background: var(--orange); }
    .examples .section-index::before { background: var(--ink); }
    .examples .section-intro { color: var(--ink); }
    .specimen-wall {
      display: grid;
      grid-template-columns: 1.1fr .72fr 1fr;
      grid-template-rows: 310px 250px;
      gap: 14px;
    }
    .specimen {
      position: relative;
      min-width: 0;
      padding: 18px;
      background: var(--paper);
      border: 2px solid var(--ink);
      overflow: hidden;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .specimen:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
    .specimen:first-child { grid-row: 1 / 3; }
    .specimen:nth-child(4) { grid-column: 2 / 4; }
    .specimen-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
    .specimen svg { height: calc(100% - 30px); }
    .specimen-link { position: absolute; inset: 0; z-index: 3; text-indent: -9999px; }
    .ring-chart { width: min(78%, 300px); aspect-ratio: 1; margin: 24px auto; border-radius: 50%; background: conic-gradient(var(--blue) 0 39%, var(--lime) 39% 67%, var(--orange) 67% 84%, var(--pink) 84%); position: relative; }
    .ring-chart::after { position: absolute; inset: 26%; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; content: "68%"; display: grid; place-items: center; font-size: 38px; font-weight: 900; letter-spacing: -.06em; }
    .mini-bars { height: calc(100% - 30px); display: flex; align-items: end; gap: 10px; padding: 25px 10px 0; }
    .mini-bars i { flex: 1; height: var(--h); background: var(--c); border: 1px solid var(--ink); }
    .dot-field { position: relative; height: calc(100% - 30px); }
    .dot-field i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c); border: 1px solid var(--ink); border-radius: 50%; }

    .method {
      display: grid;
      grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
      gap: 0;
      padding: 0;
      background: var(--paper);
    }
    .method-copy { padding: clamp(70px, 8vw, 128px) clamp(28px, 6vw, 90px); border-right: 1px solid var(--ink); }
    .method-copy h2 { font-size: clamp(48px, 6vw, 92px); }
    .method-copy p { max-width: 560px; margin: 28px 0 34px; color: var(--muted); font-size: 17px; }
    .method-list { display: grid; }
    .method-row {
      display: grid;
      grid-template-columns: 86px 1fr;
      gap: 25px;
      align-items: center;
      padding: 34px clamp(24px, 4vw, 62px);
      border-bottom: 1px solid var(--ink);
    }
    .method-row:last-child { border-bottom: 0; }
    .method-row b { font-family: var(--mono); font-size: 11px; }
    .method-row strong { display: block; margin-bottom: 4px; font-size: 20px; letter-spacing: -.03em; }
    .method-row p { margin: 0; color: var(--muted); font-size: 13px; }

    .closing {
      position: relative;
      min-height: 620px;
      display: grid;
      place-items: center;
      padding: 90px 30px;
      color: var(--paper);
      background: var(--blue);
      overflow: hidden;
    }
    .closing::before,
    .closing::after { position: absolute; border: 2px solid var(--ink); border-radius: 50%; content: ""; }
    .closing::before { width: 420px; height: 420px; left: -90px; top: -160px; background: var(--lime); }
    .closing::after { width: 300px; height: 300px; right: -50px; bottom: -130px; background: var(--orange); }
    .closing-inner { position: relative; z-index: 2; max-width: 980px; text-align: center; }
    .closing h2 { margin: 0 auto 32px; font-size: clamp(56px, 8vw, 126px); }
    .closing .button { background: var(--lime); color: var(--ink); }

    .footer {
      color: var(--paper);
      background: var(--ink);
      border-top: 1px solid rgba(255,255,255,.2);
    }
    .footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 45px; padding: 65px clamp(28px, 5vw, 80px); }
    .footer-brand { max-width: 360px; }
    .footer-brand strong { display: block; margin-bottom: 12px; font-size: 24px; letter-spacing: -.04em; }
    .footer-brand p { margin: 0; color: rgba(248,247,242,.6); font-size: 13px; }
    .footer-col h3 { margin: 0 0 16px; color: rgba(248,247,242,.5); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
    .footer-col a { display: block; width: fit-content; margin: 9px 0; color: rgba(248,247,242,.82); font-size: 13px; text-decoration: none; }
    .footer-col a:hover { color: var(--lime); }
    .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(28px, 5vw, 80px); color: rgba(248,247,242,.48); border-top: 1px solid rgba(255,255,255,.17); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }

    .compare-tray {
      position: fixed;
      z-index: 80;
      left: calc(84px + 50%);
      bottom: 18px;
      width: min(680px, calc(100% - 124px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 13px 15px;
      color: var(--paper);
      background: var(--ink);
      border: 1px solid var(--paper);
      box-shadow: 7px 7px 0 var(--orange);
      transform: translate(-50%, 150%);
      transition: transform .25s ease;
    }
    .compare-tray.visible { transform: translate(-50%, 0); }
    .tray-tools { min-width: 0; display: flex; gap: 7px; overflow: hidden; }
    .tray-tool { flex: none; padding: 6px 9px; color: var(--ink); background: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
    .tray-action { flex: none; padding: 9px 12px; color: var(--paper); background: var(--blue); border: 1px solid var(--paper); font-size: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; }

    .modal {
      position: fixed;
      z-index: 120;
      inset: 0;
      display: none;
      place-items: center;
      padding: 24px;
      background: rgba(21,21,29,.74);
      backdrop-filter: blur(9px);
    }
    .modal.open { display: grid; }
    .modal-card { width: min(900px, 100%); max-height: 86vh; overflow: auto; background: var(--paper); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--orange); }
    .modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--lime); border-bottom: 2px solid var(--ink); }
    .modal-head h2 { font-size: 28px; letter-spacing: -.04em; }
    .modal-close { width: 38px; height: 38px; background: var(--paper); border: 1px solid var(--ink); cursor: pointer; font-size: 21px; }
    .compare-table { width: 100%; border-collapse: collapse; }
    .compare-table th,
    .compare-table td { padding: 15px 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; font-size: 13px; }
    .compare-table th { width: 160px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

    @media (max-width: 1180px) {
      .hero { grid-template-columns: 1fr 430px; }
      .hero-bottom { grid-template-columns: 1fr; }
      .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .question-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .question-card { min-height: 250px; }
      .footer-main { grid-template-columns: 1.3fr repeat(2, .7fr); }
      .footer-col:last-child { grid-column: 2; }
    }

    @media (max-width: 900px) {
      .side-rail { display: none; }
      .page { margin-left: 0; }
      .topbar { min-height: 66px; grid-template-columns: 1fr auto; padding: 0 18px; }
      .mobile-brand { display: block; font-size: 14px; letter-spacing: -.035em; }
      .top-note,
      .compare-button { display: none; }
      .menu-button { display: block; }
      .nav-links {
        position: fixed;
        inset: 66px 0 auto;
        display: grid;
        gap: 0;
        padding: 0;
        background: var(--paper);
        border-bottom: 2px solid var(--ink);
        transform: translateY(-130%);
        transition: transform .25s ease;
      }
      .menu-open .nav-links { transform: translateY(0); }
      .nav-links a { padding: 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
      .hero { grid-template-columns: 1fr; }
      .hero-copy { min-height: 720px; border-right: 0; border-bottom: 1px solid var(--ink); }
      .chart-lab { min-height: 720px; }
      .lab-stage { min-height: 590px; }
      .section-head { grid-template-columns: 1fr; gap: 24px; }
      .method { grid-template-columns: 1fr; }
      .method-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
      .compare-tray { left: 50%; width: calc(100% - 34px); }
    }

    @media (max-width: 650px) {
      .hero-copy { min-height: 650px; padding: 46px 20px 28px; }
      h1 { font-size: clamp(58px, 19vw, 86px); }
      .hero-bottom { margin-top: 45px; }
      .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
      .button { min-height: 52px; padding: 0 12px; font-size: 10px; }
      .chart-lab { min-height: auto; }
      .lab-stage { min-height: 460px; padding: 9% 6%; }
      .chart-window { box-shadow: 6px 6px 0 var(--ink); }
      .section { padding: 72px 18px; }
      h2 { font-size: clamp(46px, 15vw, 72px); }
      .finder-bar { grid-template-columns: 1fr; }
      .results-count { text-align: left; }
      .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
      .filter-chip { flex: none; }
      .tool-grid { grid-template-columns: 1fr; }
      .tool-card { min-height: 290px; }
      .question-grid { grid-template-columns: 1fr 1fr; }
      .question-card { min-height: 220px; }
      .specimen-wall { grid-template-columns: 1fr; grid-template-rows: repeat(4, 310px); }
      .specimen:first-child,
      .specimen:nth-child(4) { grid-row: auto; grid-column: auto; }
      .method-row { grid-template-columns: 54px 1fr; gap: 12px; padding: 25px 18px; }
      .closing { min-height: 540px; }
      .closing::before { width: 250px; height: 250px; }
      .closing::after { width: 210px; height: 210px; }
      .footer-main { grid-template-columns: 1fr 1fr; padding: 48px 20px; }
      .footer-brand { grid-column: 1 / 3; }
      .footer-col:last-child { grid-column: auto; }
      .footer-bottom { flex-direction: column; padding: 18px 20px; }
      .compare-table { min-width: 680px; }
      .modal-card { overflow-x: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }

    .guide { background: var(--white); }
    .guide-layout {
      display: grid;
      grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
      align-items: start;
      gap: 48px;
    }
    .guide-main { min-width: 0; }
    .guide-intro { margin: 0 0 54px; }
    .guide-intro p { margin: 0 0 20px; color: var(--ink); font-size: 17px; line-height: 1.6; }
    .guide-intro p:last-child { margin-bottom: 0; }
    .guide-rail { position: sticky; top: 92px; display: grid; gap: 16px; align-content: start; max-height: calc(100svh - 112px); overflow-y: auto; }
    .guide-toc { padding: 20px 22px; background: var(--paper); border: 1px solid var(--ink); }
    .guide-toc a {
      display: block;
      padding: 7px 0;
      color: var(--ink);
      border-bottom: 1px solid var(--line);
      font-size: 12.5px;
      font-weight: 700;
      text-decoration: none;
    }
    .guide-toc a:last-child { border-bottom: 0; padding-bottom: 0; }
    .guide-toc a:first-of-type { padding-top: 0; }
    .guide-toc a:hover { color: var(--blue); }
    .guide-callout { padding: 20px 22px; background: var(--paper); border: 1px solid var(--ink); }
    .guide-rail .guide-callout:nth-of-type(2) { background: var(--lavender); }
    .guide-callout-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .guide-callout-label::before { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; content: ""; }
    .guide-callout p { margin: 0 0 12px; color: var(--ink); font-size: 13.5px; line-height: 1.55; }
    .guide-callout p:last-of-type { margin-bottom: 0; }
    .guide-callout a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
    .guide-callout a:hover { color: var(--blue); }
    .guide-callout-stat { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .guide-callout-stat p { color: rgba(248,247,242,.82); }
    .guide-callout-stat a { color: var(--lime); }
    .guide-stat { display: block; margin-bottom: 6px; font-size: 34px; font-weight: 950; letter-spacing: -.03em; color: var(--lime); }
    .guide-body { max-width: 760px; }
    .guide-body h3 {
      max-width: none;
      margin: 58px 0 18px;
      font-size: clamp(26px, 2.6vw, 36px);
      font-weight: 900;
      letter-spacing: -.03em;
      line-height: 1.1;
    }
    .guide-body h3:first-child { margin-top: 0; }
    .guide-body h4 {
      margin: 30px 0 10px;
      font-size: 19px;
      font-weight: 850;
      letter-spacing: -.02em;
    }
    .guide-body p { margin: 0 0 20px; color: var(--ink); font-size: 16px; line-height: 1.65; }
    .guide-body p:last-child { margin-bottom: 0; }
    .guide-body strong { font-weight: 800; }
    .guide-body a { color: var(--blue); text-decoration-thickness: 1.5px; }
    .guide-table-wrap { margin: 8px 0 36px; overflow-x: auto; border: 1px solid var(--ink); }
    .guide-body table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
    .guide-body th,
    .guide-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
    .guide-body th:last-child,
    .guide-body td:last-child { border-right: 0; }
    .guide-body tr:last-child td { border-bottom: 0; }
    .guide-body th { background: var(--paper); font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .guide-table-note { margin: -18px 0 36px; color: var(--muted); font-size: 14px; }
    .guide-faq { display: grid; gap: 12px; margin-top: 8px; }
    .guide-faq details { padding: 18px 20px; background: var(--paper); border: 1px solid var(--ink); }
    .guide-faq summary { cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; }
    .guide-faq summary::-webkit-details-marker { display: none; }
    .guide-faq summary::after { float: right; font-weight: 900; content: "+"; }
    .guide-faq details[open] summary::after { content: "\2013"; }
    .guide-faq details p { margin: 14px 0 0; }

    /* Callout components: break up long-form prose with a labeled aside.
       Six variants, one accent each. Usage:
       <aside class="callout callout--quick"><span class="callout-label">Quick take</span><p>...</p></aside> */
    .callout { margin: 30px 0; padding: 18px 22px; background: var(--paper); border: 1px solid var(--ink); border-left: 6px solid var(--ink); }
    .callout-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .callout-label::before { width: 7px; height: 7px; flex: none; background: currentColor; border-radius: 50%; content: ""; }
    .callout p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
    .callout p + p { margin-top: 10px; }

    .callout--quick { border-left-color: var(--blue); }
    .callout--quick .callout-label { color: var(--blue); }

    .callout--warn { background: #fff3ee; border-left-color: var(--orange); }
    .callout--warn .callout-label { color: var(--orange); }

    .callout--fact { border-left-color: var(--lime); }
    .callout--fact .callout-label { color: #7c8f00; }

    .callout--field { border-left-color: var(--pink); }
    .callout--field .callout-label { color: #c23f80; }

    .callout--term { border-left-color: var(--cyan); }
    .callout--term .callout-label { color: #12799e; }

    .callout--compare { background: var(--lavender); border-left-color: var(--ink); }
    .callout--compare .callout-label { color: var(--ink); }

    @media (max-width: 900px) {
      .guide-layout { grid-template-columns: 1fr; }
      .guide-rail { position: static; max-height: none; overflow-y: visible; }
    }

    @media (max-width: 650px) {
      .guide-body h3 { margin-top: 44px; }
    }

    /* Phase 1 placeholder pages: minimal shell reusing the core design tokens. */
    .stub-page { min-height: calc(100svh - 72px); }
    .stub-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 34px;
      padding: 8px 12px;
      background: var(--paper);
      border: 1px solid var(--ink);
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
    }
    .stub-badge::before { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; content: ""; }
    .stub-body { max-width: 720px; }
    .stub-body p { margin: 0 0 18px; color: var(--ink); font-size: 16px; line-height: 1.55; }
    .stub-body p:last-child { margin-bottom: 0; }
    .stub-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 46px;
      padding-top: 30px;
      border-top: 1px solid var(--line-strong);
    }
    .stub-links a {
      padding: 10px 15px;
      background: var(--paper);
      border: 1px solid var(--ink);
      font-size: 12px;
      font-weight: 750;
      text-decoration: none;
    }
    .stub-links a:hover { background: var(--lavender-deep); }
