  /* PeerBadge one-page site &mdash; built on the credential app's own design tokens.
     Committed light design (the app's look); every color painted explicitly. */
  :root {
    --font-primary: "Poppins", system-ui, sans-serif;
    --font-secondary: "Albert Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --font-hand: "Caveat", cursive;

    --ground: #eef1f2;
    --grid: rgba(11, 16, 19, 0.04);
    --ink: #0b1013;
    --dim: #6d7071;
    --card: #ffffff;
    --g50: #f8f8f8;
    --g100: #f3f3f3;
    --g150: #eaeaeb;
    --g200: #d3d4db;

    --blue: #0285f5;
    --blue-dark: #026ce0;
    --blue-soft: rgba(2, 133, 245, 0.10);
    --green: #00a854;
    --accent: #7c3aed;
    --accent-soft: rgba(124, 58, 237, 0.10);

    /* analogy-only palette (the carbon-paper envelope) */
    --manila: #cdb98e;
    --manila-deep: #a8945f;
    --carbon: var(--blue);       /* the "ink" that comes through the carbon = the crypto act */
    --carbon-soft: #7fb6f6;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.55;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
      linear-gradient(90deg, var(--grid) 1px, transparent 1px),
      linear-gradient(180deg, var(--grid) 1px, transparent 1px),
      var(--ground);
    background-size: 28px 28px;
  }

  h1, h2, h3, p { margin: 0; }
  a { color: inherit; text-decoration: none; }

  .wrap {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding-inline: clamp(16px, 5vw, 48px);
  }

  /* ---------------- Header ---------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--ground) 82%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g150);
  }
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
  }
  .brand { display: inline-flex; align-items: center; gap: 10px; }
  .brand img { display: block; width: 30px; height: 30px; }
  .brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
  .site-nav { display: flex; gap: 26px; color: var(--dim); font-size: 15px; font-weight: 500; }
  .site-nav a:hover { color: var(--ink); }
  .nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid var(--g200); border-radius: 10px; background: var(--card); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
  @media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
      display: none;
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0;
      padding: 6px clamp(16px, 5vw, 48px) 14px;
      background: var(--card); border-bottom: 1px solid var(--g150);
      box-shadow: 0 18px 40px rgba(11, 16, 19, 0.10);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 13px 2px; border-top: 1px solid var(--g150); font-size: 16px; color: var(--ink); }
    .site-nav a:first-child { border-top: 0; }
  }

  /* ---------------- Shared section rhythm ---------------- */
  .band { border-top: 1px solid var(--g150); }
  .band > .wrap { padding-block: clamp(56px, 8vw, 88px); }
  .band:first-of-type { border-top: 0; }

  .eyebrow {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: 999px;
  }
  .eyebrow.plain { background: transparent; color: var(--dim); padding-inline: 0; }

  .h2 {
    font-size: clamp(26px, 4.4vw, 38px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .lede {
    margin-top: 14px;
    max-width: 60ch;
    color: var(--dim);
    font-size: 17px;
    line-height: 1.6;
  }
  .lede em { color: var(--ink); font-style: normal; font-weight: 500; }
  .closing-line {
    margin-top: 28px;
    max-width: 68ch;
    color: var(--dim);
    font-size: 15px;
    line-height: 1.6;
  }

  /* ---------------- Buttons ---------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(2, 133, 245, 0.26); }
  .btn-primary:hover { background: var(--blue-dark); }
  .btn-ghost { color: var(--ink); background: var(--card); border-color: var(--g200); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

  /* ---------------- Hero ---------------- */
  .hero > .wrap { padding-block: clamp(64px, 11vw, 120px) clamp(40px, 7vw, 72px); text-align: center; }
  .hero-statement {
    margin: 22px auto 0;
    max-width: 20ch;
    font-size: clamp(34px, 6.4vw, 60px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .hero-sub {
    margin: 22px auto 0;
    max-width: 60ch;
    color: var(--dim);
    font-size: clamp(16px, 2.3vw, 19px);
    line-height: 1.62;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
  }

  /* ---------------- Carousel ---------------- */
  .co-head { max-width: 62ch; }
  .stage {
    margin-top: clamp(28px, 5vw, 44px);
    background: var(--card);
    border: 1px solid var(--g150);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(11, 16, 19, 0.07);
  }
  .frame { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 372px; }
  @media (max-width: 820px) { .frame { grid-template-columns: 1fr; min-height: 0; } }

  .panel {
    position: relative;
    border-right: 1px solid var(--g150);
    background-color: var(--g50);
    background-image:
      linear-gradient(90deg, var(--g150) 1px, transparent 1px),
      linear-gradient(180deg, var(--g150) 1px, transparent 1px);
    background-size: 26px 26px;
    background-position: -1px -1px;
    display: grid;
    place-items: center;
    padding: 22px 20px;
    min-height: 272px;
  }
  @media (max-width: 820px) { .panel { border-right: 0; border-bottom: 1px solid var(--g150); } }
  .panel::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 44%, transparent 42%, var(--g50) 100%);
    opacity: 0.7; pointer-events: none;
  }
  /* signpost 1: persistent "this is the metaphor" tag on every illustration */
  .panel::before {
    content: "The paper version";
    position: absolute; top: 0; left: 0; z-index: 2;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--manila-deep);
    background: var(--card);
    border-right: 1px solid var(--g150);
    border-bottom: 1px solid var(--g150);
    border-bottom-right-radius: 10px;
    padding: 7px 12px 6px;
  }

  .copy {
    padding: clamp(22px, 3vw, 34px);
    display: flex; flex-direction: column; gap: 12px; justify-content: center;
  }
  .step-mark {
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.1em; color: var(--blue);
    font-variant-numeric: tabular-nums;
  }
  .copy h3 {
    font-size: clamp(20px, 2.7vw, 26px);
    font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance;
  }
  .body-copy { font-size: 15.5px; color: var(--ink); }
  /* signpost 2: "ON PAPER" opener on every body paragraph */
  .onpaper {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--manila-deep); margin-right: 8px; white-space: nowrap;
  }
  /* signpost 3: distinct "WHAT ACTUALLY HAPPENS" panel on every slide */
  .protocol {
    margin-top: 6px;
    padding: 14px 16px;
    border-left: 3px solid var(--blue);
    border-radius: 0 10px 10px 0;
    background: var(--blue-soft);
    font-size: 14px; color: var(--ink); line-height: 1.55;
  }
  .protocol b {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--blue-dark); font-weight: 500; margin-bottom: 6px;
  }
  .protocol em { font-style: normal; font-weight: 600; }

  .slide { display: none; }
  .slide.active { display: contents; }
  .art { width: 100%; max-width: 420px; height: auto; display: block; position: relative; z-index: 1; }

  .slide.active .art,
  .slide.active .copy > * { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .slide.active .copy > *:nth-child(2) { animation-delay: 0.04s; }
  .slide.active .copy > *:nth-child(3) { animation-delay: 0.08s; }
  .slide.active .copy > *:nth-child(4) { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .controls {
    display: flex; align-items: center; gap: 18px;
    border-top: 1px solid var(--g150);
    padding: 14px clamp(16px, 2.6vw, 24px);
    background: var(--card);
  }
  .nav { display: flex; gap: 8px; }
  .cbtn {
    font-family: var(--font-primary);
    font-size: 14px; font-weight: 500; color: var(--ink);
    background: var(--card); border: 1px solid var(--g200); border-radius: 10px;
    padding: 8px 15px; cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .cbtn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
  .cbtn:disabled { opacity: 0.4; cursor: default; }
  .cbtn:focus-visible, .tick:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
  .counter {
    font-family: var(--font-mono); font-size: 12.5px; color: var(--dim);
    font-variant-numeric: tabular-nums; min-width: 46px;
  }
  .rail { display: flex; gap: 5px; flex: 1; align-items: flex-end; height: 22px; }
  .tick {
    flex: 1; height: 5px; padding: 0; border: 0; background: var(--g200);
    cursor: pointer; border-radius: 2px;
    transition: height 0.2s ease, background 0.2s ease;
  }
  .tick:hover { background: var(--carbon-soft); }
  .tick[aria-current="true"] { background: var(--blue); height: 14px; }

  /* svg primitives &mdash; analogy art */
  .art .sheet   { fill: var(--card); stroke: var(--g200); stroke-width: 1.5; }
  .art .line    { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .art .thin    { fill: none; stroke: var(--dim); stroke-width: 1.2; stroke-linecap: round; }
  .art .fold    { fill: none; stroke: var(--dim); stroke-width: 1.2; stroke-dasharray: 4 4; }
  .art .env     { fill: var(--manila); stroke: var(--manila-deep); stroke-width: 1.5; }
  .art .env-alt { fill: var(--manila); opacity: 0.55; stroke: var(--manila-deep); stroke-width: 1.5; }
  .art .key     { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
  .art .key-sm  { font-family: var(--font-mono); font-size: 10px; fill: var(--dim); }
  .art .hand    { font-family: var(--font-hand); font-size: 20px; fill: var(--manila-deep); }
  .art .tag     { font-family: var(--font-secondary); font-size: 11px; fill: var(--dim); }
  .art .sig     { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
  .art .sig-ghost { fill: none; stroke: var(--carbon-soft); stroke-width: 2.2; stroke-linecap: round; opacity: 0.95; }

  /* signpost 5 (the one animation): signature transferring through the carbon */
  .slide .sig-draw { stroke-dasharray: 320; stroke-dashoffset: 320; }
  .slide.active .sig-draw { animation: draw 1.5s 0.35s ease-out forwards; }
  .slide .transfer { opacity: 0; }
  .slide.active .transfer { animation: bleed 0.9s 1.5s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes bleed { from { opacity: 0; } to { opacity: 1; } }

  @media (prefers-reduced-motion: reduce) {
    .slide.active .art, .slide.active .copy > * { animation: none; }
    .slide .sig-draw { stroke-dashoffset: 0; }
    .slide.active .sig-draw { animation: none; }
    .slide .transfer, .slide.active .transfer { opacity: 1; animation: none; }
  }

  .hint { margin-top: 16px; font-size: 14px; color: var(--dim); max-width: 72ch; }

  /* ---------------- Use cases ---------------- */
  .card-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
    margin-top: clamp(28px, 4vw, 40px);
  }
  @media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
  .use-card {
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--g150);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(11, 16, 19, 0.05);
  }
  .use-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
  .use-card p { margin-top: 12px; color: var(--dim); font-size: 15px; line-height: 1.6; }

  /* ---------------- Ask-for-one block ---------------- */
  .ask > .wrap { display: flex; flex-direction: column; align-items: flex-start; }
  .ask blockquote {
    margin: 0;
    max-width: 62ch;
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .ask blockquote em { color: var(--blue-dark); font-style: normal; }
  .ask .hero-actions { justify-content: flex-start; margin-top: 26px; }

  /* ---------------- FAQ ---------------- */
  .faq-list { margin-top: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    padding: 4px 22px;
    background: var(--card);
    border: 1px solid var(--g150);
    border-radius: 14px;
  }
  .faq-item summary {
    padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+"; color: var(--dim); font-weight: 400; font-size: 22px; line-height: 1;
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after { content: "\2013"; }
  .faq-item summary:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 4px; border-radius: 6px; }
  .faq-item p { padding: 0 0 20px; color: var(--dim); font-size: 15.5px; line-height: 1.62; max-width: 68ch; }

  /* ---------------- Get the code ---------------- */
  .code-intro { margin-bottom: clamp(24px, 4vw, 36px); }
  .steps { display: flex; flex-direction: column; gap: 22px; }
  .code-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
  .code-num {
    display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; background: var(--ink);
    font-family: var(--font-secondary); font-weight: 600; font-size: 14px;
  }
  .code-step h3 { font-size: 17px; font-weight: 600; }
  .code-step p { margin-top: 4px; color: var(--dim); font-size: 15px; line-height: 1.55; }
  .code-step p a { color: var(--blue-dark); font-weight: 500; }
  .code-step p a:hover { text-decoration: underline; }


  .build-cards { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  @media (max-width: 620px) { .build-cards { grid-template-columns: 1fr; } }
  .build-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; background: var(--card);
    border: 1px solid var(--g150); border-radius: 12px;
    font-weight: 600; font-size: 15px;
    transition: border-color 0.15s ease, transform 0.05s ease;
  }
  .build-card:hover { border-color: var(--blue); }
  .build-card:active { transform: translateY(1px); }
  .build-card span[aria-hidden] { color: var(--dim); }

  .impl-card { margin-top: 14px; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--g150); border-radius: 14px; box-shadow: 0 12px 40px rgba(11, 16, 19, 0.05); }
  .impl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .impl-head h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .impl-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
  .impl-card > p { margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.6; }
  .code-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
  .code-links a { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
  .code-links a:hover { color: var(--blue-dark); }

  .code-outro { margin-top: 24px; color: var(--dim); font-size: 15px; }
  .code-outro a { color: var(--blue-dark); font-weight: 600; }
  .code-outro a:hover { text-decoration: underline; }

  /* ---------------- Footer ---------------- */
  .site-footer { border-top: 1px solid var(--g150); }
  .site-footer .wrap {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding-block: 40px; color: var(--dim); font-size: 14px;
  }
  .site-footer img { width: 22px; height: 22px; opacity: 0.9; }

  /* ---------------- Toast ---------------- */
  .toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
    padding: 11px 18px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(11, 16, 19, 0.25);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 60;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  .skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 40;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
    transition: top 0.15s ease;
  }
  .skip-link:focus { top: 12px; }

  /* --- mobile hardening: prevent horizontal overflow --- */
  .code-step { grid-template-columns: auto minmax(0, 1fr); }
  .code-step > div { min-width: 0; }

  /* --- carousel: slim nav moved between the illustration and the step text --- */
  .frame { grid-template-rows: auto 1fr; }
  .panel { grid-column: 1; grid-row: 1 / 3; }
  .frame > .controls { grid-column: 2; grid-row: 1; }
  .copy { grid-column: 2; grid-row: 2; }
  .controls { border-top: 0; border-bottom: 1px solid var(--g150); padding: 7px clamp(16px, 2.6vw, 24px); gap: 14px; }
  .rail { height: 16px; }
  .tick[aria-current="true"] { height: 12px; }
  .cbtn { padding: 6px 13px; }
  @media (max-width: 820px) {
    .frame { grid-template-rows: auto auto 1fr; }
    .panel { grid-column: 1; grid-row: 1; }
    .frame > .controls { grid-column: 1; grid-row: 2; }
    .copy { grid-column: 1; grid-row: 3; }
  }


  /* ---------------- Dramatis personae (roles) ---------------- */
  :root {
    --role-holder: var(--blue);
    --role-signer: var(--accent);
    --role-verifier: var(--green);
  }
  .cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(22px, 4vw, 34px); }
  @media (max-width: 760px) { .cast { grid-template-columns: 1fr; } }
  .role { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--g150); border-left: 3px solid var(--role-c); border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 16, 19, 0.04); }
  .role[data-role="holder"] { --role-c: var(--role-holder); }
  .role[data-role="signer"] { --role-c: var(--role-signer); }
  .role[data-role="verifier"] { --role-c: var(--role-verifier); }
  .role-ico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--role-c); background: color-mix(in srgb, var(--role-c) 12%, transparent); }
  .role-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .role-name { font-size: 16px; font-weight: 600; color: var(--role-c); }
  .role p { margin-top: 3px; color: var(--dim); font-size: 14px; line-height: 1.5; }

  /* role colour pulled through each carousel slide */
  .slide[data-role="holder"] { --role-c: var(--role-holder); }
  .slide[data-role="signer"] { --role-c: var(--role-signer); }
  .slide[data-role="verifier"] { --role-c: var(--role-verifier); }
  .step-mark { display: flex; align-items: center; gap: 10px; color: var(--role-c, var(--blue)); }
  .role-chip { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--role-c); background: color-mix(in srgb, var(--role-c) 12%, transparent); }
  .co-steps-intro { margin-top: clamp(28px, 5vw, 40px); }
