  :root {
    --ink: #0A0B0F;
    --ink-2: #101218;
    --ink-3: #161922;
    --line: #1F2230;
    --line-2: #2A2E40;
    --paper: #F5F4ED;
    --text: #E8E6DD;
    --text-dim: #9A988F;
    --text-muted: #6B6A63;
    --accent: #4D5BFF;
    --accent-2: #B8B0FF;
    --accent-3: #6E7BFF;
    --live: #50E3A4;
    --warn: #FFB84D;
    --hot: #FF6B6B;
    --grad-1: linear-gradient(135deg, #4D5BFF 0%, #B8B0FF 100%);
    --grad-2: linear-gradient(180deg, #4D5BFF 0%, #2A33A0 100%);
    --grad-glow: radial-gradient(closest-side, rgba(77,91,255,0.55), rgba(77,91,255,0));

    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --maxw: 1380px;
    --pad: clamp(20px, 4vw, 56px);

    --t-fast: 240ms cubic-bezier(.2,.7,.2,1);
    --t-med:  520ms cubic-bezier(.2,.7,.2,1);
    --t-slow: 900ms cubic-bezier(.2,.7,.2,1);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  *::selection { background: var(--accent); color: var(--paper); }

  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

  body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    cursor: none;
  }

  @media (max-width: 880px) {
    body { cursor: auto; }
  }

  img, svg { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }

  /* ------- Grain overlay ------- */
  .grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 200;
    opacity: 0.06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ------- Custom cursor ------- */
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
    transform: translate(-50%, -50%);
    transition: opacity 200ms;
  }
  .cursor-dot {
    width: 6px; height: 6px; background: var(--paper); border-radius: 50%;
    transition: transform 80ms linear, width 200ms, height 200ms, background 200ms;
  }
  .cursor-ring {
    width: 38px; height: 38px; border: 1px solid rgba(245,244,237,0.4); border-radius: 50%;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1), width 280ms, height 280ms, border-color 200ms;
  }
  body.hover-link .cursor-dot { width: 0; height: 0; }
  body.hover-link .cursor-ring { width: 60px; height: 60px; border-color: var(--accent-2); background: rgba(77,91,255,0.08); }

  /* ------- Scroll progress ------- */
  .progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150;
    background: transparent;
  }
  .progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 0 12px rgba(77,91,255,0.6);
  }

  /* ------- Nav ------- */
  nav.top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px var(--pad);
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(10,11,15,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--t-fast), border-color var(--t-fast);
  }
  nav.top.scrolled {
    background: rgba(10,11,15,0.85);
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .brand { display: flex; align-items: center; gap: 10px; }
  .brand-mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--grad-1);
    position: relative;
    box-shadow: 0 0 24px rgba(77,91,255,0.5);
  }
  .brand-mark::before {
    content: ""; position: absolute; inset: 4px;
    background: var(--ink);
    border-radius: 4px;
  }
  .brand-mark::after {
    content: ""; position: absolute; inset: 9px;
    background: var(--paper);
    border-radius: 1px;
  }
  .brand-name {
    font-family: var(--font-display); font-weight: 600;
    font-size: 22px; letter-spacing: -0.01em; color: var(--paper);
    font-variation-settings: "opsz" 144;
  }
  .brand-tag {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase;
    margin-left: 8px; padding: 3px 7px; border: 1px solid var(--line);
    border-radius: 4px;
  }

  .nav-links {
    display: flex; gap: 32px; align-items: center;
  }
  .nav-links a {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-dim);
    transition: color var(--t-fast); position: relative;
  }
  .nav-links a:hover { color: var(--paper); }
  .nav-links a::before {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
    background: var(--accent-2); transition: width var(--t-fast);
  }
  .nav-links a:hover::before { width: 100%; }

  .nav-cta {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 11px 18px;
    background: var(--paper); color: var(--ink);
    border-radius: 999px;
    transition: all var(--t-fast);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
  .nav-cta .arrow {
    width: 14px; height: 14px;
    transition: transform var(--t-fast);
  }
  .nav-cta:hover .arrow { transform: translateX(3px); }

  @media (max-width: 880px) {
    .nav-links { display: none; }
  }

  /* ------- Hero ------- */
  section.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px var(--pad) 80px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
  }
  .hero-canvas {
    position: absolute; inset: 0; z-index: 0;
    opacity: 0.85;
  }
  .hero-vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(10,11,15,0.7) 100%),
      linear-gradient(180deg, transparent 60%, var(--ink) 100%);
  }
  .hero-inner {
    position: relative; z-index: 2;
    max-width: var(--maxw); margin: 0 auto; width: 100%;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
  }

  .hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 32px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-dim);
  }
  .hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--live);
    box-shadow: 0 0 10px var(--live);
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
  }

  h1.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(48px, 8.5vw, 138px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--paper);
    font-variation-settings: "opsz" 144, "SOFT" 50;
  }
  h1.hero-title .it {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(90deg, var(--accent-2) 0%, var(--paper) 60%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variation-settings: "opsz" 144, "SOFT" 100;
  }
  h1.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
  }
  h1.hero-title .word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: wordRise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
  }
  h1.hero-title .word:nth-child(1) > span { animation-delay: 0.1s; }
  h1.hero-title .word:nth-child(2) > span { animation-delay: 0.22s; }
  h1.hero-title .word:nth-child(3) > span { animation-delay: 0.34s; }
  h1.hero-title .word:nth-child(4) > span { animation-delay: 0.46s; }
  h1.hero-title .word:nth-child(5) > span { animation-delay: 0.58s; }
  h1.hero-title .word:nth-child(6) > span { animation-delay: 0.7s; }
  @keyframes wordRise {
    to { transform: translateY(0); }
  }

  .hero-sub {
    margin-top: 36px;
    max-width: 620px;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-dim);
    line-height: 1.55;
    opacity: 0;
    animation: fadeUp 1s 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-actions {
    margin-top: 44px;
    display: flex; gap: 16px; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 1s cubic-bezier(.2,.7,.2,1) forwards;
  }

  .btn-primary, .btn-ghost {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 26px;
    border-radius: 999px;
    transition: all var(--t-fast);
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
    position: relative; overflow: hidden;
  }
  .btn-primary {
    background: var(--paper); color: var(--ink);
  }
  .btn-primary:hover {
    background: var(--accent-2); transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(77,91,255,0.4);
  }
  .btn-ghost {
    color: var(--text); border-color: var(--line-2);
    background: rgba(255,255,255,0.02);
  }
  .btn-ghost:hover {
    border-color: var(--accent-2); color: var(--paper);
    background: rgba(77,91,255,0.1);
  }
  .btn-primary .arrow, .btn-ghost .arrow {
    transition: transform var(--t-fast);
  }
  .btn-primary:hover .arrow, .btn-ghost:hover .arrow { transform: translateX(3px); }

  /* Hero stats ticker */
  .hero-stats {
    position: relative; z-index: 2;
    margin-top: 80px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    opacity: 0;
    animation: fadeUp 1s 1.2s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero-stat {
    padding-right: 24px;
    border-right: 1px solid var(--line);
  }
  .hero-stat:last-child { border-right: 0; }
  .hero-stat .label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 10px;
  }
  .hero-stat .value {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(24px, 3vw, 38px);
    color: var(--paper);
    line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "opsz" 144;
  }
  .hero-stat .delta {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--live); margin-top: 6px;
  }
  .hero-stat .delta.warn { color: var(--warn); }
  @media (max-width: 880px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
    .hero-stat:nth-child(2) { border-right: 0; }
  }

  /* ------- Marquee ------- */
  .marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--ink);
    padding: 22px 0;
    position: relative;
  }
  .marquee::before, .marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
    pointer-events: none;
  }
  .marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
  .marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
  .marquee-track {
    display: flex; gap: 60px;
    animation: scroll 50s linear infinite;
    white-space: nowrap;
    width: max-content;
  }
  .marquee-track span {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 28px;
    color: var(--text-dim);
    display: inline-flex; align-items: center; gap: 60px;
  }
  .marquee-track span::after {
    content: "✦"; color: var(--accent); font-style: normal;
  }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ------- Sections shared ------- */
  section.block {
    padding: 140px var(--pad);
    max-width: var(--maxw); margin: 0 auto;
    position: relative;
  }
  .section-label {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 32px;
  }
  .section-label .num {
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
  }
  .section-label .line {
    flex: 0 0 60px; height: 1px; background: var(--line-2);
  }

  h2.section-title {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.95; letter-spacing: -0.035em;
    color: var(--paper);
    max-width: 14ch;
    font-variation-settings: "opsz" 144;
  }
  h2.section-title .it { font-style: italic; color: var(--accent-2); }

  .section-intro {
    margin-top: 28px;
    max-width: 60ch;
    color: var(--text-dim);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.6;
  }

  /* ------- Reveal animations ------- */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
  .reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

  /* ------- Thesis section ------- */
  .thesis {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 80px; align-items: start;
  }
  @media (max-width: 1000px) { .thesis { grid-template-columns: 1fr; gap: 40px; } }

  .thesis-statement {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--paper);
    font-variation-settings: "opsz" 96;
  }
  .thesis-statement .hl {
    background: linear-gradient(180deg, transparent 65%, rgba(77,91,255,0.35) 65%);
    padding: 0 4px;
  }
  .thesis-statement .it { font-style: italic; color: var(--accent-2); }

  .thesis-side {
    color: var(--text-dim); font-size: 16px; line-height: 1.7;
  }
  .thesis-side p + p { margin-top: 16px; }
  .thesis-side .pull {
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 18px;
  }

  /* ------- Live network ------- */
  .live-shell {
    margin-top: 64px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }
  .live-shell::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 0%, rgba(77,91,255,0.15), transparent 50%),
      radial-gradient(circle at 80% 100%, rgba(184,176,255,0.08), transparent 50%);
    pointer-events: none;
  }
  .live-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px;
    position: relative; z-index: 1;
    flex-wrap: wrap; gap: 16px;
  }
  .live-title {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text);
  }
  .live-title .live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--live);
    box-shadow: 0 0 12px var(--live);
    animation: pulse 1.6s ease-in-out infinite;
  }
  .live-tabs {
    display: flex; gap: 4px; padding: 4px; background: var(--ink);
    border: 1px solid var(--line); border-radius: 999px;
  }
  .live-tab {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-muted);
    padding: 8px 14px; border-radius: 999px;
    transition: all var(--t-fast);
  }
  .live-tab.active { background: var(--paper); color: var(--ink); }
  .live-tab:hover:not(.active) { color: var(--text); }

  .live-grid {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 24px; position: relative; z-index: 1;
  }
  @media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }

  .live-map-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
  }
  .live-map-wrap svg { width: 100%; height: 100%; }
  .map-label {
    position: absolute; top: 16px; left: 16px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .map-stats {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text);
  }
  .map-stats .ms-item .lbl { color: var(--text-muted); margin-right: 6px; }

  .live-side {
    display: flex; flex-direction: column; gap: 16px;
  }
  .live-card {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
  }
  .live-card .lc-label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 8px;
  }
  .live-card .lc-value {
    font-family: var(--font-display); font-weight: 400;
    font-size: 38px; line-height: 1;
    color: var(--paper); letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "opsz" 144;
  }
  .live-card .lc-sub {
    margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--live);
  }
  .live-card .lc-sub.warn { color: var(--warn); }

  .live-feed {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex: 1; min-height: 200px;
    overflow: hidden; position: relative;
  }
  .live-feed-title {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 14px;
  }
  .feed-list {
    font-family: var(--font-mono); font-size: 11px;
    list-style: none;
  }
  .feed-list li {
    display: grid; grid-template-columns: 60px 1fr auto;
    gap: 12px; padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--text-dim);
    animation: feedIn 0.5s ease;
  }
  .feed-list li:last-child { border-bottom: 0; }
  .feed-list li .t { color: var(--accent-2); }
  .feed-list li .m { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .feed-list li .p { color: var(--live); }
  @keyframes feedIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ------- How it works ------- */
  .how {
    margin-top: 64px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
  }
  @media (max-width: 1000px) { .how { grid-template-columns: 1fr; gap: 40px; } }

  .how-sticky {
    position: sticky; top: 120px;
    aspect-ratio: 1; max-width: 540px;
  }
  .how-diagram {
    width: 100%; height: 100%;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
  }
  .how-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }

  .how-steps {
    display: flex; flex-direction: column;
    gap: 16px;
  }
  .how-step {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    transition: all var(--t-med);
    cursor: pointer;
  }
  .how-step.active {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(77,91,255,0.08), var(--ink-2));
  }
  .how-step .hs-num {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--accent-2); letter-spacing: 0.15em;
    margin-bottom: 12px;
  }
  .how-step .hs-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: 26px; color: var(--paper);
    line-height: 1.15; letter-spacing: -0.02em;
    margin-bottom: 10px;
    font-variation-settings: "opsz" 96;
  }
  .how-step .hs-body {
    color: var(--text-dim); font-size: 15px; line-height: 1.55;
  }

  /* ------- Verification tiers ------- */
  .tiers {
    margin-top: 64px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; } }

  .tier {
    position: relative;
    padding: 36px 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--ink-2);
    overflow: hidden;
    transition: all var(--t-med);
  }
  .tier::before {
    content: ""; position: absolute; inset: 0;
    background: var(--grad-glow);
    opacity: 0; transition: opacity var(--t-med);
    pointer-events: none;
  }
  .tier:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .tier:hover::before { opacity: 0.4; }

  .tier-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px; border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-dim);
    margin-bottom: 24px;
  }
  .tier.featured .tier-tag {
    background: var(--accent); color: var(--paper); border-color: var(--accent);
  }
  .tier h3 {
    font-family: var(--font-display); font-weight: 400;
    font-size: 32px; color: var(--paper);
    line-height: 1.1; letter-spacing: -0.02em;
    margin-bottom: 10px;
    font-variation-settings: "opsz" 96;
  }
  .tier h3 .it { font-style: italic; color: var(--accent-2); }
  .tier-sub {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-muted); letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .tier-body {
    color: var(--text-dim); font-size: 15px; line-height: 1.55;
    margin-bottom: 24px;
  }
  .tier-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .tier-stat {
    font-family: var(--font-mono);
  }
  .tier-stat .ts-l {
    font-size: 10px; letter-spacing: 0.15em;
    color: var(--text-muted); text-transform: uppercase;
    margin-bottom: 4px;
  }
  .tier-stat .ts-v {
    font-size: 14px; color: var(--paper);
  }

  /* ------- Code section ------- */
  .code-block {
    margin-top: 64px;
    background: #0E1018;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  }
  .code-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
  }
  .code-tabs { display: flex; gap: 4px; }
  .code-tab {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-muted);
    padding: 8px 14px; border-radius: 8px;
    transition: all var(--t-fast);
  }
  .code-tab.active { color: var(--paper); background: rgba(255,255,255,0.06); }
  .code-tab:hover:not(.active) { color: var(--text); }
  .code-dots { display: flex; gap: 6px; }
  .code-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }

  .code-body {
    padding: 28px 32px;
    font-family: var(--font-mono); font-size: 13px;
    line-height: 1.75;
    overflow-x: auto;
    min-height: 320px;
  }
  .code-body .ln {
    display: block;
    color: var(--text);
  }
  .code-body .kw { color: #FF6B9D; }
  .code-body .st { color: #C3E88D; }
  .code-body .fn { color: var(--accent-2); }
  .code-body .cm { color: var(--text-muted); font-style: italic; }
  .code-body .nm { color: #82AAFF; }
  .code-body .pn { color: #FFCB6B; }
  .code-body .cursor-blink {
    display: inline-block; width: 2px; height: 1em;
    background: var(--accent-2); margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .code-meta {
    margin-top: 28px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media (max-width: 720px) { .code-meta { grid-template-columns: 1fr; } }
  .code-meta-item .cm-l {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 8px;
  }
  .code-meta-item .cm-v {
    font-family: var(--font-display); font-weight: 400; font-size: 22px;
    color: var(--paper); letter-spacing: -0.01em;
    font-variation-settings: "opsz" 96;
  }
  .code-meta-item .cm-d {
    margin-top: 6px; font-size: 13px; color: var(--text-dim);
  }

  /* ------- Earnings calculator ------- */
  .calc {
    margin-top: 64px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 40px;
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    position: relative;
    overflow: hidden;
  }
  @media (max-width: 1000px) { .calc { grid-template-columns: 1fr; gap: 40px; padding: 28px; } }
  .calc::before {
    content: ""; position: absolute; right: -200px; top: -200px;
    width: 500px; height: 500px;
    background: var(--grad-glow);
    pointer-events: none;
  }

  .calc-controls { position: relative; z-index: 1; }
  .calc-row { margin-bottom: 28px; }
  .calc-label {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
  }
  .calc-label .l {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-dim);
  }
  .calc-label .v {
    font-family: var(--font-mono); font-size: 14px;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
  }
  .hw-select {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  }
  .hw-opt {
    padding: 14px 8px; text-align: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink);
    transition: all var(--t-fast);
  }
  .hw-opt:hover { border-color: var(--line-2); }
  .hw-opt.active {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(77,91,255,0.12), var(--ink));
  }
  .hw-opt .hw-name {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--paper);
  }
  .hw-opt .hw-price {
    margin-top: 2px;
    font-family: var(--font-mono); font-size: 9px;
    color: var(--text-muted);
  }
  @media (max-width: 600px) { .hw-select { grid-template-columns: repeat(2, 1fr); } }

  .slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px;
    background: var(--line);
    border-radius: 2px;
    outline: none;
    margin-top: 4px;
  }
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px;
    background: var(--paper);
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(77,91,255,0.5);
    transition: transform var(--t-fast);
  }
  .slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
  .slider::-moz-range-thumb {
    width: 20px; height: 20px;
    background: var(--paper);
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
  }

  .calc-results {
    position: relative; z-index: 1;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
  }
  .calc-results .cr-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 12px;
  }
  .calc-results .cr-big {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(48px, 6vw, 72px);
    color: var(--paper);
    line-height: 1; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "opsz" 144;
    background: linear-gradient(135deg, var(--paper) 30%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .calc-results .cr-period {
    font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
    margin-top: 8px; letter-spacing: 0.15em; text-transform: uppercase;
  }
  .calc-breakdown {
    margin-top: 28px;
    display: flex; flex-direction: column; gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .cb-row {
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 13px;
  }
  .cb-row .cb-l { color: var(--text-dim); }
  .cb-row .cb-v { color: var(--paper); font-variant-numeric: tabular-nums; }

  /* ------- Tokenomics ------- */
  .token {
    margin-top: 64px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
  }
  @media (max-width: 900px) { .token { grid-template-columns: 1fr; } }
  .token-chart {
    aspect-ratio: 1;
    max-width: 480px;
    position: relative;
  }
  .token-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .token-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .token-center .tc-amount {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(40px, 5vw, 64px);
    color: var(--paper);
    letter-spacing: -0.03em;
    font-variation-settings: "opsz" 144;
  }
  .token-center .tc-label {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-muted); letter-spacing: 0.2em;
    text-transform: uppercase; margin-top: 6px;
  }

  .token-list {
    display: flex; flex-direction: column; gap: 12px;
  }
  .token-row {
    display: grid; grid-template-columns: 16px 1fr auto;
    gap: 16px; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    transition: all var(--t-fast);
  }
  .token-row:hover { padding-left: 8px; }
  .token-swatch {
    width: 12px; height: 12px;
    border-radius: 3px;
  }
  .token-name {
    font-family: var(--font-body); font-weight: 500;
    font-size: 15px; color: var(--paper);
  }
  .token-name .vest {
    font-family: var(--font-mono); font-size: 10px; color: var(--text-muted);
    margin-top: 2px; letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
  }
  .token-pct {
    font-family: var(--font-mono); font-size: 14px;
    color: var(--paper); font-variant-numeric: tabular-nums;
  }

  /* ------- Roadmap ------- */
  .roadmap {
    margin-top: 64px;
    position: relative;
  }
  .roadmap::before {
    content: ""; position: absolute; left: 28px; top: 0; bottom: 0;
    width: 1px; background: var(--line);
  }
  .road-progress {
    position: absolute; left: 28px; top: 0;
    width: 1px; height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--accent);
  }
  .road-phase {
    position: relative;
    padding: 0 0 56px 80px;
  }
  .road-phase:last-child { padding-bottom: 0; }
  .road-phase .road-dot {
    position: absolute; left: 19px; top: 6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--line-2);
    transition: all var(--t-med);
  }
  .road-phase.in .road-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 24px var(--accent);
  }
  .road-meta {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .road-meta .badge {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--ink-2); border: 1px solid var(--line);
    font-size: 10px;
  }
  .road-meta .badge.live { color: var(--live); border-color: rgba(80,227,164,0.3); background: rgba(80,227,164,0.06); }
  .road-meta .badge.next { color: var(--accent-2); border-color: rgba(184,176,255,0.3); background: rgba(184,176,255,0.06); }
  .road-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(28px, 3vw, 38px);
    color: var(--paper);
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 16px;
    font-variation-settings: "opsz" 96;
  }
  .road-title .it { font-style: italic; color: var(--accent-2); }
  .road-list {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px 32px;
    color: var(--text-dim);
    font-size: 15px; line-height: 1.6;
  }
  @media (max-width: 720px) { .road-list { grid-template-columns: 1fr; } }
  .road-list li {
    list-style: none;
    padding-left: 18px;
    position: relative;
  }
  .road-list li::before {
    content: ""; position: absolute; left: 0; top: 11px;
    width: 6px; height: 1px; background: var(--text-muted);
  }

  /* ------- Final CTA ------- */
  .final {
    text-align: center;
    padding: 180px var(--pad);
    position: relative;
    overflow: hidden;
  }
  .final::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 50%, rgba(77,91,255,0.18), transparent 70%);
    pointer-events: none;
  }
  .final-title {
    font-family: var(--font-display); font-weight: 200;
    font-size: clamp(48px, 10vw, 160px);
    line-height: 0.9; letter-spacing: -0.045em;
    color: var(--paper);
    font-variation-settings: "opsz" 144, "SOFT" 50;
    position: relative;
  }
  .final-title .it {
    font-style: italic; font-weight: 300;
    background: linear-gradient(120deg, var(--accent-2) 0%, var(--paper) 80%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .final-sub {
    margin-top: 32px;
    font-size: 18px; color: var(--text-dim);
    max-width: 50ch; margin-left: auto; margin-right: auto;
  }
  .final-actions {
    margin-top: 56px;
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  }

  /* ------- Footer ------- */
  footer {
    background: var(--ink);
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .footer-mark {
    padding: 80px var(--pad) 40px;
    max-width: var(--maxw); margin: 0 auto;
    text-align: center;
  }
  .footer-mark .big {
    font-family: var(--font-display); font-weight: 200;
    font-size: clamp(80px, 24vw, 360px);
    line-height: 0.85; letter-spacing: -0.06em;
    color: var(--paper);
    background: linear-gradient(180deg, var(--paper) 0%, transparent 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    user-select: none;
  }
  .footer-grid {
    max-width: var(--maxw); margin: 0 auto;
    padding: 40px var(--pad) 32px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  .fg-col h5 {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 16px; font-weight: 400;
  }
  .fg-col a {
    display: block; margin-bottom: 8px;
    color: var(--text-dim); font-size: 14px;
    transition: color var(--t-fast);
  }
  .fg-col a:hover { color: var(--paper); }
  .fg-col p { color: var(--text-dim); font-size: 14px; max-width: 35ch; line-height: 1.5; }

  .footer-bottom {
    max-width: var(--maxw); margin: 0 auto;
    padding: 24px var(--pad) 40px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
    letter-spacing: 0.05em;
    flex-wrap: wrap; gap: 12px;
  }
  .footer-bottom .legal-links { display: flex; gap: 24px; }
  .footer-bottom a:hover { color: var(--text); }

  /* ------- Generic icon ------- */
  .ic { width: 14px; height: 14px; flex-shrink: 0; }

  /* ------- Mobile cleanup ------- */
  @media (max-width: 720px) {
    section.block { padding: 80px var(--pad); }
    .live-shell { padding: 20px; }
    .calc { padding: 24px; }
    .road-phase { padding-left: 60px; }
  }

  /* ===========================================================
     WHITEPAPER SECTION & MODAL
     =========================================================== */
  .wp-section {
    padding-top: 60px;
    padding-bottom: 80px;
    border-top: 1px solid var(--line);
    background:
      radial-gradient(ellipse at 50% 0%, rgba(77,91,255,0.08) 0%, transparent 60%),
      var(--ink);
  }
  .wp-section-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 48px;
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
  }
  @media (max-width: 980px) {
    .wp-section-grid { grid-template-columns: 1fr; gap: 40px; }
  }

  .wp-pitch {
    max-width: 540px;
  }
  .wp-pitch p {
    color: var(--text-dim);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .wp-meta-row {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 28px 0 32px;
  }
  .wp-meta-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(255,255,255,0.02);
  }
  .wp-meta-pill .pill-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-2);
  }
  .wp-actions-row {
    display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center;
  }
  .wp-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 24px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
  }
  .wp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(245,244,237,0.12);
  }
  .wp-btn-primary .ic { width: 16px; height: 16px; }
  .wp-btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 24px;
    border: 1px solid var(--line-2);
    color: var(--text);
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: border-color var(--t-fast), background var(--t-fast);
  }
  .wp-btn-secondary:hover {
    border-color: var(--accent-2);
    background: rgba(184,176,255,0.06);
  }
  .wp-btn-secondary .ic { width: 16px; height: 16px; }

  /* Paper preview visual */
  .wp-preview {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 480px;
    margin-left: auto;
    perspective: 1400px;
  }
  .wp-page {
    position: absolute; inset: 0;
    background: var(--paper);
    border-radius: 4px;
    box-shadow:
      0 30px 80px rgba(0,0,0,0.5),
      0 8px 24px rgba(0,0,0,0.4),
      inset 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform var(--t-med);
  }
  .wp-page::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-3));
  }
  .wp-page-back-1 {
    transform: translate(-18px, 14px) rotate(-3deg);
    opacity: 0.55;
    background: #ECE9DD;
  }
  .wp-page-back-2 {
    transform: translate(-9px, 7px) rotate(-1.5deg);
    opacity: 0.78;
    background: #F0EDE2;
  }
  .wp-page-front {
    padding: 44px 38px;
    display: flex; flex-direction: column;
    color: var(--ink);
  }
  .wp-preview:hover .wp-page-front { transform: translateY(-4px) rotate(0.3deg); }
  .wp-preview:hover .wp-page-back-1 { transform: translate(-22px, 16px) rotate(-3.6deg); }
  .wp-preview:hover .wp-page-back-2 { transform: translate(-12px, 9px) rotate(-1.8deg); }

  .wp-page-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B6A63;
    margin-bottom: 16px;
  }
  .wp-page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    margin-bottom: 8px;
  }
  .wp-page-title .it {
    font-style: italic;
    color: #4D5BFF;
  }
  .wp-page-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(13px, 1.3vw, 16px);
    color: #555550;
    line-height: 1.4;
    margin-bottom: 28px;
  }
  .wp-page-rule {
    height: 1px;
    background: rgba(10,11,15,0.15);
    margin: 0 0 22px;
  }
  .wp-page-stub {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 7px;
  }
  .wp-page-stub .stub-line {
    height: 5px;
    background: rgba(10,11,15,0.08);
    border-radius: 2px;
  }
  .wp-page-stub .stub-line.short { width: 62%; }
  .wp-page-stub .stub-line.med { width: 88%; }
  .wp-page-stub .stub-gap { height: 14px; }
  .wp-page-foot {
    margin-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8A887F;
  }

  .hero-version {
    color: var(--text-muted);
    margin-left: auto;
  }

  .value-suffix {
    color: var(--text-dim);
    font-size: 0.6em;
  }

  .live-status-text {
    color: var(--live);
  }

  .endpoint-code {
    color: var(--accent-2);
  }

  .footer-brand {
    margin-bottom: 18px;
  }

  .nav-cta[aria-disabled="true"] {
    cursor: default;
  }

  .hero-canvas {
    position: absolute; inset: 0; z-index: 0;
    opacity: 0.85;
  }

  .live-map-wrap svg {
    width: 100%; height: 100%;
  }

  .how-diagram svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
  }

  .token-swatch-community { background: #4D5BFF; }
  .token-swatch-providers { background: #B8B0FF; }
  .token-swatch-team { background: #50E3A4; }
  .token-swatch-treasury { background: #FFB84D; }
  .token-swatch-investors { background: #FF6B6B; }

  .whitepaper-page {
    background: var(--paper);
    color: var(--ink);
    cursor: auto;
  }

  .whitepaper-page .grain,
  .whitepaper-page .cursor-dot,
  .whitepaper-page .cursor-ring,
  .whitepaper-page .progress {
    display: none;
  }

  .whitepaper-shell {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
  }

  .whitepaper-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(20px, 4vw, 56px);
    border-bottom: 1px solid rgba(10,11,15,0.08);
    background: rgba(245,244,237,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .whitepaper-nav .brand-name {
    color: var(--ink);
  }

  .whitepaper-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #393A3F;
    padding: 9px 13px;
    border: 1px solid rgba(10,11,15,0.12);
    border-radius: 999px;
    transition: border-color var(--t-fast), background var(--t-fast);
  }

  .whitepaper-nav-link:hover {
    border-color: rgba(77,91,255,0.5);
    background: rgba(77,91,255,0.06);
  }

  .whitepaper-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 1180px;
    margin: 0 auto;
  }

  .whitepaper-toc {
    position: sticky;
    top: 68px;
    align-self: start;
    height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 36px 0;
    border-right: 1px solid rgba(10,11,15,0.08);
    background: #EFEDE3;
  }

  .whitepaper-toc .wp-toc-list li a {
    cursor: pointer;
  }

  .whitepaper-toc .wp-toc-list li a::before {
    content: none;
  }

  .whitepaper-toc .wp-toc-list li a[href] {
    color: #4A4B50;
  }

  .whitepaper-toc .wp-toc-list li a[href]:hover {
    color: var(--ink);
  }

  .whitepaper-content {
    min-width: 0;
    padding: 56px clamp(24px, 5vw, 80px) 100px;
  }

  .whitepaper-content .wp-paper-body {
    overflow: visible;
    padding: 0;
  }

  @media (max-width: 980px) {
    .whitepaper-layout {
      grid-template-columns: 1fr;
    }

    .whitepaper-toc {
      position: static;
      height: auto;
      border-right: 0;
      border-bottom: 1px solid rgba(10,11,15,0.08);
      padding: 24px 0;
    }
  }

  /* ===========================================================
     WHITEPAPER MODAL
     =========================================================== */
  .wp-modal {
    position: fixed; inset: 0; z-index: 400;
    visibility: hidden;
    opacity: 0;
    transition: opacity 320ms cubic-bezier(.2,.7,.2,1), visibility 320ms;
  }
  .wp-modal.open { visibility: visible; opacity: 1; }
  body.wp-locked { overflow: hidden; cursor: auto; }
  body.wp-locked .cursor-dot,
  body.wp-locked .cursor-ring { display: none; }

  .wp-backdrop {
    position: absolute; inset: 0;
    background: rgba(6,7,10,0.78);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    cursor: pointer;
  }

  .wp-paper {
    position: absolute;
    top: 24px; left: 24px; right: 24px; bottom: 24px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 60px 140px rgba(0,0,0,0.7);
    transform: translateY(16px) scale(0.985);
    transition: transform 380ms cubic-bezier(.2,.7,.2,1);
    cursor: auto;
  }
  .wp-modal.open .wp-paper { transform: translateY(0) scale(1); }
  @media (max-width: 720px) {
    .wp-paper { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; }
  }

  .wp-progress {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: rgba(10,11,15,0.06);
    z-index: 5;
  }
  .wp-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transition: width 80ms linear;
  }

  .wp-paper-head {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(10,11,15,0.08);
    background: rgba(245,244,237,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 4;
  }
  @media (max-width: 720px) {
    .wp-paper-head { padding: 14px 18px; }
  }

  .wp-head-meta {
    display: flex; align-items: center; gap: 12px;
    min-width: 0;
  }
  .wp-head-mark {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--grad-1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(77,91,255,0.4);
  }
  .wp-head-mark::before {
    content: ""; position: absolute; inset: 4px;
    background: var(--paper);
    border-radius: 3px;
  }
  .wp-head-mark::after {
    content: ""; position: absolute; inset: 8px;
    background: var(--ink);
    border-radius: 1px;
  }
  .wp-head-titles {
    display: flex; flex-direction: column; line-height: 1.2;
    min-width: 0;
  }
  .wp-head-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wp-head-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6A63;
  }
  @media (max-width: 540px) {
    .wp-head-sub { display: none; }
  }

  .wp-head-actions {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
  }
  .wp-head-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    color: #393A3F;
    border: 1px solid rgba(10,11,15,0.12);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  }
  .wp-head-btn:hover {
    border-color: rgba(77,91,255,0.5);
    background: rgba(77,91,255,0.06);
    color: var(--ink);
  }
  .wp-head-btn .ic { width: 13px; height: 13px; }
  .wp-head-btn-label {
    display: inline;
  }
  @media (max-width: 540px) {
    .wp-head-btn-label { display: none; }
    .wp-head-btn { padding: 8px; }
  }
  .wp-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(10,11,15,0.06);
    color: var(--ink);
    cursor: pointer;
    border: 0;
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .wp-close:hover { background: rgba(10,11,15,0.12); transform: rotate(90deg); }
  .wp-close .ic { width: 16px; height: 16px; }

  .wp-body-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
    min-height: 0;
  }
  @media (max-width: 980px) {
    .wp-body-wrap { grid-template-columns: 1fr; }
  }

  /* TOC */
  .wp-toc {
    border-right: 1px solid rgba(10,11,15,0.08);
    overflow-y: auto;
    padding: 28px 0;
    background: #EFEDE3;
  }
  @media (max-width: 980px) {
    .wp-toc {
      position: absolute;
      top: 60px; left: 0; bottom: 0;
      width: 280px;
      max-width: 80%;
      transform: translateX(-100%);
      transition: transform 280ms cubic-bezier(.2,.7,.2,1);
      z-index: 3;
      border-right: 1px solid rgba(10,11,15,0.12);
      box-shadow: 8px 0 32px rgba(0,0,0,0.15);
    }
    .wp-toc.open { transform: translateX(0); }
  }
  .wp-toc-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B6A63;
    padding: 0 24px;
    margin-bottom: 14px;
  }
  .wp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .wp-toc-list li a {
    display: block;
    padding: 7px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: #4A4B50;
    border-left: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
    cursor: pointer;
  }
  .wp-toc-list li a:hover {
    color: var(--ink);
    background: rgba(77,91,255,0.06);
  }
  .wp-toc-list li.active a {
    color: var(--ink);
    border-left-color: var(--accent);
    background: rgba(77,91,255,0.08);
    font-weight: 500;
  }
  .wp-toc-list li.is-sub a {
    padding-left: 40px;
    font-size: 12px;
    color: #6B6A63;
  }

  /* Reading area */
  .wp-paper-body {
    overflow-y: auto;
    padding: 56px clamp(24px, 5vw, 80px) 100px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.72;
    font-variation-settings: "opsz" 14, "SOFT" 100;
    scroll-behavior: smooth;
  }
  @media (max-width: 720px) {
    .wp-paper-body { padding: 32px 22px 80px; font-size: 16px; }
  }

  .wp-paper-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .wp-paper-body .wp-cover {
    max-width: 720px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(10,11,15,0.12);
  }
  .wp-cover-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
  }
  .wp-cover-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    margin-bottom: 20px;
  }
  .wp-cover-title .it {
    font-style: italic;
    color: var(--accent);
  }
  .wp-cover-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    color: #4A4B50;
    line-height: 1.4;
    margin-bottom: 32px;
    font-weight: 400;
  }
  .wp-cover-tagline {
    font-family: var(--font-body);
    font-size: 15px;
    color: #6B6A63;
    margin-bottom: 40px;
    line-height: 1.5;
  }
  .wp-cover-meta {
    display: flex; flex-wrap: wrap; gap: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6A63;
  }
  .wp-cover-meta span strong {
    color: var(--ink);
    font-weight: 600;
    margin-right: 6px;
  }

  .wp-paper-body p {
    margin: 0 0 1.2em;
  }
  .wp-paper-body strong { font-weight: 600; color: var(--ink); }
  .wp-paper-body em { font-style: italic; }
  .wp-paper-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 2px 6px;
    background: rgba(10,11,15,0.06);
    border-radius: 4px;
    color: #2A33A0;
  }

  .wp-paper-body .wp-h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 72px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(10,11,15,0.12);
    font-variation-settings: "opsz" 72, "SOFT" 100;
    scroll-margin-top: 80px;
  }
  .wp-paper-body .wp-h1:first-of-type { margin-top: 0; }
  .wp-paper-body .wp-h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 48px 0 16px;
    font-variation-settings: "opsz" 36, "SOFT" 100;
    scroll-margin-top: 80px;
  }
  .wp-paper-body .wp-h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
    margin: 32px 0 12px;
    font-variation-settings: "opsz" 24, "SOFT" 100;
  }

  .wp-paper-body .wp-list {
    margin: 0 0 1.4em;
    padding-left: 24px;
    list-style: none;
  }
  .wp-paper-body .wp-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 0.7em;
  }
  .wp-paper-body .wp-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.78em;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }

  .wp-paper-body .wp-callout {
    background: linear-gradient(135deg, rgba(77,91,255,0.08), rgba(184,176,255,0.05));
    border-left: 3px solid var(--accent);
    padding: 22px 26px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.97em;
    line-height: 1.65;
    color: #2A2D3A;
  }
  .wp-paper-body .wp-callout strong { color: var(--ink); }

  .wp-paper-body .wp-table-wrap {
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid rgba(10,11,15,0.12);
    border-radius: 8px;
  }
  .wp-paper-body .wp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
  }
  .wp-paper-body .wp-table thead {
    background: rgba(10,11,15,0.04);
  }
  .wp-paper-body .wp-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(10,11,15,0.12);
  }
  .wp-paper-body .wp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(10,11,15,0.08);
    color: #2A2D3A;
    vertical-align: top;
  }
  .wp-paper-body .wp-table tr:last-child td { border-bottom: 0; }
  .wp-paper-body .wp-table tr:hover td { background: rgba(77,91,255,0.03); }

  .wp-paper-body .wp-end {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(10,11,15,0.12);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B6A63;
    text-align: center;
  }

  /* On-page hidden by default — only loaded when modal opens */
  .wp-content-source { display: none; }
