  :root{
    /* ---- palette · same hues, enriched with a few tonal steps ---- */
    --bg-deep:#050308;
    --bg-0:#080510;
    --bg-1:#0e0918;
    --bg-2:#160d24;
    --surface:rgba(28,18,42,0.55);
    --surface-2:rgba(40,26,60,0.45);
    --surface-inset:rgba(10,6,18,0.5);   /* recessed wells (insets, tracks) */
    --hair:rgba(200,170,255,0.12);
    --hair-strong:rgba(200,170,255,0.22);
    --hair-soft:rgba(200,170,255,0.06);  /* whisper-thin separators */
    --ink-bright:#fbf8ff;                /* max-contrast headings */
    --ink:#efe9f6;
    --ink-soft:#c4bcd4;
    --ink-mute:#948aa8;                  /* lifted for safer small-text contrast */
    --amethyst:#c5a3ff;
    --amethyst-deep:#8b5cf6;
    --gold:#e6c587;
    --rose:#f0a6c8;
    --focus:#ffce5c;          /* ORP focal letter — luminous amber, max contrast on dark */
    --focus-dim:#b9b1c9;       /* surrounding letters, softly dimmed so the focal letter leads */

    /* ---- spacing · 8pt scale ---- */
    --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;

    /* ---- type · modular scale + locked line-heights ---- */
    --fs-2xs:11px; --fs-xs:12px; --fs-sm:13.5px; --fs-base:15px; --fs-md:17px;
    --fs-lg:21px; --fs-xl:27px; --fs-2xl:34px;
    --lh-display:1.05; --lh-body:1.6; --lh-ui:1.4;

    /* ---- radius ---- */
    --r-lg:22px;
    --r-md:14px;
    --r-sm:10px;

    /* ---- elevation · layered scale + focus glows ---- */
    --e-1:0 2px 8px -2px rgba(0,0,0,0.5), 0 12px 32px -16px rgba(0,0,0,0.55);
    --e-2:0 4px 14px -4px rgba(0,0,0,0.55), 0 24px 60px -24px rgba(0,0,0,0.7);
    --e-3:0 8px 24px -8px rgba(0,0,0,0.6), 0 40px 90px -30px rgba(0,0,0,0.85);
    --glow-amethyst:0 22px 60px -24px rgba(139,92,246,0.5);
    --glow-gold:0 16px 40px -18px rgba(230,197,135,0.5);
    --shadow:var(--e-3);   /* legacy alias — now a richer, layered shadow */

    /* ---- motion · shared durations + easings ---- */
    --t-fast:140ms; --t:220ms; --t-slow:360ms;
    --ease-out:cubic-bezier(.22,.61,.36,1);
    --ease-in:cubic-bezier(.4,0,1,1);
    --ease-spring:cubic-bezier(.34,1.56,.64,1);
  }

  *{box-sizing:border-box;margin:0;padding:0;}
  html,body{height:100%;color-scheme:dark;}
  body{
    font-family:"Spline Sans",system-ui,sans-serif;
    color:var(--ink);
    background:
      radial-gradient(1200px 800px at 78% -10%, rgba(139,92,246,0.18), transparent 55%),
      radial-gradient(1000px 700px at 10% 110%, rgba(230,166,200,0.10), transparent 50%),
      linear-gradient(170deg, var(--bg-1), var(--bg-0) 60%, var(--bg-deep));
    background-attachment:fixed;
    min-height:100vh;
    min-height:100dvh;                 /* survive mobile browser-chrome resize */
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    font-optical-sizing:auto;          /* lets Fraunces find its optical weight */
    text-rendering:optimizeLegibility;
    -webkit-tap-highlight-color:transparent;  /* no grey flash on tap — we have our own press states */
  }
  /* couture text selection */
  ::selection{background:rgba(197,163,255,0.28);color:var(--ink-bright);}
  /* mobile interaction hygiene */
  button,a,[role="button"],.stage,.tbtn,.seg button,.btn,.settings-toggle{touch-action:manipulation;}
  .track{touch-action:none;}  /* horizontal scrub without the page scrolling under the finger */
  .stage,.dock,.reader-top{-webkit-user-select:none;user-select:none;}  /* no accidental text-select while tapping the player */
  .reader{overscroll-behavior:none;}  /* app-like: no pull-to-refresh while reading */
  /* touch devices: drop the sticky hover-lift, give a press response instead */
  @media (hover:none){
    .dropzone:hover,.tier:hover,.recent-item:hover,.support-pill:hover,.tbtn:hover{transform:none;}
    .dropzone:active{transform:scale(.99);}
    .tier:active{transform:scale(.96);}
    .btn:active{transform:scale(.96);}
    .recent-item:active{background:var(--surface-2);}
  }
  /* fine grain overlay for atmosphere */
  body::after{
    content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:0.035;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode:overlay;
  }

  .wrap{max-width:1080px;margin:0 auto;padding:0 24px;}

  /* ---------- Header ---------- */
  header.site{
    display:flex;align-items:center;justify-content:space-between;
    padding:max(30px, calc(env(safe-area-inset-top) + 12px)) 0 10px;
  }
  .brand{display:flex;align-items:center;gap:13px;}
  .brand .mark{
    width:40px;height:40px;border-radius:50%;flex:none;position:relative;
    background:radial-gradient(circle at 50% 50%, var(--amethyst) 0 22%, transparent 23%),
               conic-gradient(from 210deg, var(--amethyst-deep), var(--rose), var(--gold), var(--amethyst-deep));
    box-shadow:0 0 22px rgba(139,92,246,0.55), inset 0 0 0 1px rgba(255,255,255,0.18);
  }
  .brand h1{
    font-family:"Fraunces",serif;font-weight:500;font-size:24px;letter-spacing:0.3px;line-height:1;
  }
  .brand h1 em{font-style:italic;color:var(--gold);font-weight:400;}
  .brand small{display:block;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:var(--ink-mute);margin-top:5px;}
  .privacy-pill{
    font-size:12px;color:var(--ink-soft);border:1px solid var(--hair);
    padding:8px 15px;border-radius:999px;background:var(--surface);backdrop-filter:blur(10px);
    display:flex;align-items:center;gap:8px;white-space:nowrap;
  }
  .privacy-pill .dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px var(--gold);}
  .header-right{display:flex;align-items:center;gap:12px;}
  .support-pill{
    display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;letter-spacing:.2px;white-space:nowrap;
    color:#241a07;background:linear-gradient(135deg,var(--gold),#caa45f);border:none;
    padding:8px 16px;border-radius:999px;text-decoration:none;cursor:pointer;
    box-shadow:0 6px 18px -8px rgba(230,197,135,0.6);transition:filter var(--t) var(--ease-out), transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
  }
  .support-pill:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 10px 24px -8px rgba(230,197,135,0.7);}
  .support-pill svg{width:13px;height:13px;fill:#241a07;}
  .footer-support{color:var(--gold) !important;border-bottom-color:rgba(230,197,135,0.4) !important;}

  /* ---- Support / donation section ---- */
  .support-section{max-width:680px;margin:56px auto 0;text-align:center;}
  .support-eyebrow{font-size:11px;letter-spacing:2.6px;text-transform:uppercase;color:var(--ink-mute);margin-bottom:10px;}
  .support-copy{color:var(--ink-soft);font-size:14.5px;line-height:1.6;max-width:48ch;margin:0 auto 22px;}
  .tiers{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:stretch;}
  .tier{
    display:flex;flex-direction:column;align-items:center;gap:3px;min-width:112px;
    padding:18px 20px;border-radius:var(--r-md);text-decoration:none;
    background:var(--surface);border:1px solid var(--hair);color:var(--ink);box-shadow:var(--e-1);
    transition:border-color var(--t) var(--ease-out), transform var(--t) var(--ease-out), background var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
  }
  .tier:hover{border-color:var(--gold);transform:translateY(-3px);background:var(--surface-2);box-shadow:var(--e-1), 0 16px 32px -16px rgba(230,197,135,0.55);}
  .tier .emoji{font-size:24px;line-height:1;}
  .tier .tier-label{font-size:13px;color:var(--ink-soft);margin-top:5px;}
  .tier .tier-amt{font-family:"Fraunces",serif;font-size:19px;color:var(--gold);margin-top:1px;}
  .tier.custom{flex-direction:row;align-items:center;justify-content:center;min-width:auto;background:transparent;border:none;color:var(--ink-soft);font-size:13.5px;padding:14px 10px;}
  .tier.custom:hover{color:var(--gold);transform:none;background:transparent;box-shadow:none;}
  .support-note{margin-top:22px;font-size:12.5px;color:var(--ink-mute);letter-spacing:.3px;}
  .support-note .hh{color:var(--rose);}

  /* ---------- Landing ---------- */
  .hero{text-align:center;padding:48px 0 0;}
  .hero h2{
    font-family:"Fraunces",serif;font-weight:300;font-size:clamp(34px,6vw,62px);
    line-height:1.05;letter-spacing:-0.5px;max-width:14ch;margin:0 auto;
  }
  .hero h2 em{font-style:italic;color:var(--amethyst);}
  .hero p{
    max-width:52ch;margin:22px auto 0;color:var(--ink-soft);font-size:17px;line-height:1.6;
  }

  /* hero demo — a live, auto-playing focal stream so the product sells itself above the fold */
  .hero-demo{
    position:relative;max-width:520px;margin:32px auto 0;height:128px;
    border-radius:var(--r-md);border:1px solid var(--hair);
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(197,163,255,0.06), transparent 55%),
      radial-gradient(440px 170px at 50% 52%, rgba(36,23,54,0.74), rgba(11,7,19,0.55));
    box-shadow:var(--e-1), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 60px rgba(7,4,14,0.45);
    display:flex;align-items:center;justify-content:center;overflow:hidden;
  }
  .hero-demo::before{
    content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:min(60%,300px);height:80px;border-radius:50%;pointer-events:none;
    background:radial-gradient(closest-side, rgba(255,206,92,0.06), transparent 72%);
  }
  .hero-demo .hd-guide{position:absolute;left:50%;transform:translateX(-50%);width:1.5px;height:16px;opacity:.6;box-shadow:0 0 8px rgba(255,206,92,0.4);}
  .hero-demo .hd-guide.top{top:18px;background:linear-gradient(var(--focus),rgba(255,206,92,0));}
  .hero-demo .hd-guide.bot{bottom:18px;background:linear-gradient(rgba(255,206,92,0),var(--focus));}
  .hd-word{
    display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;width:100%;max-width:440px;
    font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-size:clamp(30px,7vw,46px);line-height:1;letter-spacing:.5px;
  }
  .hd-word .pre{text-align:right;color:var(--focus-dim);white-space:pre;}
  .hd-word .piv{text-align:center;color:var(--focus);font-weight:700;text-shadow:0 0 18px rgba(255,206,92,0.6),0 0 2px rgba(255,206,92,0.9);}
  .hd-word .post{text-align:left;color:var(--focus-dim);white-space:pre;}
  .hero .hero-cap{max-width:52ch;margin:14px auto 0;color:var(--ink-mute);font-size:13px;line-height:1.55;}
  .hero .hero-fine{max-width:50ch;margin:14px auto 0;color:var(--ink-mute);font-size:12.5px;line-height:1.6;}
  .hero .hero-fine b{color:var(--gold);font-weight:500;}
  .linklike{background:none;border:none;color:var(--gold);font:inherit;cursor:pointer;padding:0;border-bottom:1px solid rgba(230,197,135,0.4);}
  .linklike:hover{filter:brightness(1.1);}

  /* founder note — the one piece of proof, kept honest and first-person */
  .founder{max-width:600px;margin:56px auto 0;text-align:center;padding:0 12px;}
  .founder-quote{font-family:"Fraunces",serif;font-style:italic;font-weight:300;font-size:19px;line-height:1.55;color:var(--ink);}
  .founder-sig{margin-top:14px;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:var(--ink-mute);}

  .dropzone{
    margin:44px auto 0;max-width:680px;border-radius:var(--r-lg);
    border:1px dashed var(--hair-strong);background:var(--surface);backdrop-filter:blur(16px);
    box-shadow:var(--shadow);padding:48px 40px;text-align:center;cursor:pointer;
    transition:border-color var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), background var(--t-slow) var(--ease-out);position:relative;overflow:hidden;
  }
  .dropzone::before{
    content:"";position:absolute;inset:0;background:
      radial-gradient(420px 200px at 50% -40%, rgba(197,163,255,0.16), transparent 70%);
    pointer-events:none;
  }
  .dropzone:hover{transform:translateY(-3px);border-color:var(--amethyst);box-shadow:0 40px 90px -30px rgba(139,92,246,0.5);}
  /* drop zone answers back on drag-over with three signals: border + glow + copy shift */
  .dropzone.drag{
    border-color:var(--gold);border-style:solid;background:rgba(60,40,80,0.6);transform:scale(1.015);
    box-shadow:0 0 0 1px var(--gold), 0 30px 80px -24px rgba(230,197,135,0.45), 0 0 70px rgba(230,197,135,0.22);
  }
  .dz-drop{display:none;}
  .dropzone.drag .dz-rest{display:none;}
  .dropzone.drag .dz-drop{display:block;color:var(--gold);}
  .dropzone.drag .formats{opacity:0;}
  .dropzone.drag .dz-icon{border-color:var(--gold);animation:dzBob .7s ease-in-out infinite;}
  .dropzone.drag .dz-icon svg{stroke:var(--gold);}
  @keyframes dzBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
  .dz-icon{
    width:62px;height:62px;margin:0 auto 18px;border-radius:18px;display:grid;place-items:center;
    background:linear-gradient(150deg, rgba(139,92,246,0.35), rgba(230,166,200,0.18));
    border:1px solid var(--hair-strong);
  }
  .dz-icon svg{width:30px;height:30px;stroke:var(--amethyst);fill:none;stroke-width:1.6;}
  .dropzone h3{font-family:"Fraunces",serif;font-weight:400;font-size:23px;margin-bottom:8px;}
  .dropzone .formats{margin-top:6px;color:var(--ink-mute);font-size:13.5px;letter-spacing:.4px;}
  .dropzone .formats b{color:var(--gold);font-weight:500;}

  .or-row{display:flex;align-items:center;gap:18px;max-width:680px;margin:28px auto 0;color:var(--ink-mute);font-size:12px;letter-spacing:2px;text-transform:uppercase;}
  .or-row::before,.or-row::after{content:"";height:1px;flex:1;background:var(--hair);}

  .paste-shell{max-width:680px;margin:22px auto 0;}
  textarea#paste{
    width:100%;min-height:130px;resize:vertical;border-radius:var(--r-md);
    background:var(--surface);border:1px solid var(--hair);color:var(--ink);
    padding:16px 18px;font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-size:16px;line-height:1.6;
    backdrop-filter:blur(10px);transition:border-color var(--t) var(--ease-out);
  }
  textarea#paste:focus{outline:none;border-color:var(--amethyst);}
  textarea#paste::placeholder{color:var(--ink-mute);font-style:italic;}
  .paste-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:12px;}

  /* recent library */
  .recent{max-width:680px;margin:36px auto 0;}
  .recent h4{font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:var(--ink-mute);margin-bottom:12px;text-align:center;}
  .recent-list{display:flex;flex-direction:column;gap:9px;}
  .recent-item{
    display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:var(--r-sm);
    background:var(--surface);border:1px solid var(--hair);cursor:pointer;transition:border-color var(--t) var(--ease-out),transform var(--t) var(--ease-out),background var(--t) var(--ease-out);
  }
  .recent-item:hover{border-color:var(--amethyst);transform:translateX(3px);}
  .recent-item .ri-type{font-size:10px;font-weight:600;letter-spacing:1px;padding:4px 8px;border-radius:6px;background:rgba(139,92,246,0.2);color:var(--amethyst);text-transform:uppercase;flex:none;}
  .recent-item .ri-name{flex:1;font-size:14.5px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .recent-item .ri-prog{font-size:12.5px;color:var(--gold);font-variant-numeric:tabular-nums;flex:none;}
  .recent-item .ri-x{flex:none;color:var(--ink-mute);font-size:16px;padding:2px 6px;border-radius:6px;}
  .recent-item .ri-x:hover{color:var(--rose);background:rgba(240,166,200,0.12);}

  /* secondary by default — recedes (transparent, whisper border) until hovered */
  .backup{max-width:680px;margin:36px auto 0;padding:22px 24px;border:1px solid var(--hair-soft);border-radius:var(--r-sm);background:transparent;text-align:center;transition:border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);}
  .backup:hover{border-color:var(--hair);background:var(--surface);}
  .backup-head{font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:var(--ink-mute);margin-bottom:10px;}
  .backup-copy{color:var(--ink-soft);font-size:13.5px;line-height:1.6;max-width:52ch;margin:0 auto 16px;}
  .backup-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}

  /* buttons */
  .btn{
    font-family:inherit;font-size:14px;font-weight:500;letter-spacing:.3px;cursor:pointer;
    border-radius:999px;padding:11px 22px;border:1px solid var(--hair-strong);
    background:var(--surface-2);color:var(--ink);transition:all var(--t) var(--ease-out);backdrop-filter:blur(8px);
  }
  .btn:hover{border-color:var(--amethyst);color:#fff;}
  .btn.ghost{background:transparent;border-color:var(--hair);color:var(--ink-soft);}
  .btn.ghost:hover{color:var(--ink);border-color:var(--hair-strong);}
  .btn.gold{background:linear-gradient(135deg,var(--gold),#caa45f);color:#241a07;border:none;font-weight:600;}
  .btn.gold:hover{filter:brightness(1.07);}

  /* ---------- Parsing overlay ---------- */
  .parsing{position:fixed;inset:0;display:none;place-items:center;z-index:50;padding:24px;background:rgba(8,5,16,0.9);backdrop-filter:blur(10px);}
  .parsing.show{display:grid;}
  .parsing-card{
    text-align:center;max-width:380px;width:100%;
    background:var(--surface);border:1px solid var(--hair);border-radius:var(--r-lg);
    box-shadow:var(--e-3), inset 0 1px 0 rgba(255,255,255,0.05);padding:40px 36px;
    animation:doneIn .35s var(--ease-out) both;
  }
  .parsing-card .ring{
    width:74px;height:74px;border-radius:50%;margin:0 auto 22px;
    border:3px solid rgba(197,163,255,0.18);border-top-color:var(--amethyst);
    animation:spin 0.9s linear infinite;
  }
  @keyframes spin{to{transform:rotate(360deg);}}
  .parsing-card h3{font-family:"Fraunces",serif;font-weight:400;font-size:22px;}
  .parsing-card p{color:var(--ink-mute);margin-top:8px;font-size:14px;}
  .parse-bar{width:280px;height:4px;border-radius:4px;background:rgba(255,255,255,0.08);margin:20px auto 0;overflow:hidden;}
  .parse-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--amethyst-deep),var(--gold));transition:width .25s;}
  /* visual proof of the received file: type badge · name · size */
  .file-chip{
    display:inline-flex;align-items:center;gap:9px;margin:18px auto 0;max-width:300px;
    padding:8px 14px 8px 8px;border:1px solid var(--hair);border-radius:999px;background:var(--surface-2);
  }
  .file-chip .fc-badge{font-size:10px;font-weight:600;letter-spacing:1px;padding:4px 8px;border-radius:6px;background:rgba(139,92,246,0.22);color:var(--amethyst);flex:none;}
  .file-chip .fc-name{font-size:13px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .file-chip .fc-size{font-size:12px;color:var(--ink-mute);font-variant-numeric:tabular-nums;flex:none;}
  /* honest progress: live percent + estimated time remaining */
  .parse-meta{display:flex;justify-content:space-between;width:280px;margin:9px auto 0;}
  .parse-meta #parsePct{font-size:12.5px;color:var(--gold);font-variant-numeric:tabular-nums;}
  .parse-meta #parseEta{font-size:12.5px;color:var(--ink-mute);font-variant-numeric:tabular-nums;}

  /* ---------- Reader ---------- */
  .reader{display:none;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;}
  .reader.show{display:flex;}
  .reader > .wrap{min-height:0;}   /* let the stage column shrink so the dock never overlaps it */

  .reader-top{display:flex;align-items:center;justify-content:space-between;padding:max(22px, calc(env(safe-area-inset-top) + 8px)) 0 4px;gap:16px;}
  .doc-title{display:flex;flex-direction:column;min-width:0;}
  .doc-title .t{font-family:"Fraunces",serif;font-size:19px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46ch;}
  .doc-title .meta{font-size:12px;color:var(--ink-mute);letter-spacing:.4px;margin-top:3px;}

  /* the stage */
  /* stretch the stage to fill its space so it shrinks gracefully on short screens
     (with the dock expanded) instead of overflowing into the controls */
  .stage-shell{flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center;padding:20px 0;position:relative;}
  .stage{
    width:100%;max-width:880px;border-radius:var(--r-lg);position:relative;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(197,163,255,0.07), transparent 55%),
      radial-gradient(760px 320px at 50% 52%, rgba(36,23,54,0.78), rgba(11,7,19,0.62));
    border:1px solid var(--hair);
    box-shadow:var(--e-3), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.4), inset 0 0 90px rgba(7,4,14,0.55);
    padding:70px 30px;min-height:0;display:flex;align-items:center;justify-content:center;
    overflow:hidden;cursor:pointer;
  }
  /* faint warm halo resting at the focal point — the jewel detail behind the word */
  .stage::before{
    content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:min(56%,440px);height:128px;pointer-events:none;border-radius:50%;
    background:radial-gradient(closest-side, rgba(255,206,92,0.07), transparent 72%);
  }
  /* centred ribbon — current word's pivot snapped to centre & held still; neighbours dim for context.
     The static clip wrapper carries the edge-fade mask so neighbours dissolve into the background
     instead of hard-clipping; the ribbon inside is what moves. */
  .stage .ribbon-clip{
    position:absolute;inset:0;overflow:hidden;pointer-events:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 20%,#000 80%,transparent 100%);
            mask-image:linear-gradient(90deg,transparent 0,#000 20%,#000 80%,transparent 100%);
  }
  .stage .ribbon{
    position:absolute;top:50%;left:0;white-space:nowrap;
    transform:translate(0,-50%);will-change:transform;
    font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-weight:400;
    font-size:min(var(--read-size,62px),13vw);line-height:1;letter-spacing:.5px;
  }
  .stage .ribbon .rw{display:inline-block;padding:0 .42em;color:var(--ink);opacity:.34;}  /* no transition — instant word swap in every mode */
  .stage .ribbon.playing .rw{opacity:.14;}          /* dim further while reading — less pull on the eye */
  .stage .ribbon .rw.on{opacity:1 !important;}
  .stage .ribbon .rw.pivot .rpiv{color:var(--focus);font-weight:700;text-shadow:0 0 18px rgba(255,206,92,0.65),0 0 2px rgba(255,206,92,0.9);}
  .stage .ribbon.no-ctx .rw:not(.on){opacity:0 !important;}   /* context toggle off => only the current word shows */
  /* focus guide ticks */
  .stage .guide{position:absolute;left:50%;transform:translateX(-50%);width:1.5px;opacity:.7;box-shadow:0 0 8px rgba(255,206,92,0.4);}
  .stage .guide.top{top:46px;height:24px;background:linear-gradient(var(--focus),rgba(255,206,92,0));}
  .stage .guide.bot{bottom:46px;height:24px;background:linear-gradient(rgba(255,206,92,0),var(--focus));}
  .stage .baseline{position:absolute;left:10%;right:10%;top:50%;height:1px;opacity:.7;background:linear-gradient(90deg,transparent,var(--hair-strong) 50%,transparent);}

  .word{
    font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-weight:400;
    font-size:min(var(--read-size,62px), 13vw);line-height:1;
    display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;
    width:100%;max-width:760px;letter-spacing:.5px;
  }
  .word .pre{text-align:right;color:var(--focus-dim);white-space:pre;}
  .word .piv{
    text-align:center;color:var(--focus);font-weight:700;padding:0 0.02em;white-space:pre;
    text-shadow:0 0 18px rgba(255,206,92,0.65), 0 0 2px rgba(255,206,92,0.9);
  }
  .word .post{text-align:left;color:var(--focus-dim);white-space:pre;}
  .word.plain{grid-template-columns:1fr;}
  .word.plain .all{text-align:center;color:var(--ink);}
  .word .piv.off{color:var(--ink);text-shadow:none;}

  .stage .resting{color:var(--ink-soft);font-family:"Fraunces",serif;font-style:italic;font-weight:300;font-size:26px;letter-spacing:.2px;text-align:center;animation:restBreathe 4s ease-in-out infinite;}
  @keyframes restBreathe{0%,100%{opacity:.72}50%{opacity:1}}

  /* transport + controls dock */
  .dock{
    border-top:1px solid var(--hair);background:rgba(10,6,20,0.74);backdrop-filter:blur(18px) saturate(1.1);
    box-shadow:0 -1px 0 rgba(255,255,255,0.04), 0 -24px 60px -30px rgba(0,0,0,0.8);
    padding:16px 0 calc(26px + env(safe-area-inset-bottom));z-index:10;flex-shrink:0;
  }
  .scrub{display:flex;align-items:center;gap:14px;margin-bottom:16px;}
  .scrub .time{font-size:12px;color:var(--ink-mute);font-variant-numeric:tabular-nums;flex:none;width:74px;}
  .scrub .time.r{text-align:right;}
  .track{flex:1;height:7px;border-radius:7px;background:rgba(255,255,255,0.07);position:relative;cursor:pointer;}
  .track .fill{position:absolute;inset:0 auto 0 0;width:0;border-radius:7px;background:linear-gradient(90deg,var(--amethyst-deep),var(--amethyst));}
  .track .knob{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(197,163,255,0.3),0 2px 8px rgba(0,0,0,.5);}

  .transport{display:flex;align-items:center;justify-content:center;gap:22px;margin-bottom:18px;}
  .tbtn{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;cursor:pointer;border:1px solid var(--hair);background:var(--surface-2);color:var(--ink-soft);transition:all var(--t) var(--ease-out);appearance:none;-webkit-appearance:none;padding:0;font:inherit;}
  .tbtn:hover{color:#fff;border-color:var(--amethyst);transform:translateY(-2px);}
  .tbtn:active{transform:translateY(0) scale(.93);}
  .tbtn svg{width:20px;height:20px;fill:currentColor;}
  .tbtn.play{width:70px;height:70px;background:linear-gradient(140deg,var(--amethyst),var(--amethyst-deep));border:none;color:#fff;box-shadow:0 12px 34px -8px rgba(139,92,246,0.7), inset 0 1px 0 rgba(255,255,255,0.25);}
  .tbtn.play:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 18px 46px -10px rgba(139,92,246,0.8), inset 0 1px 0 rgba(255,255,255,0.3);}
  .tbtn.play:active{transform:translateY(0) scale(.97);}
  .tbtn.play svg{width:28px;height:28px;}

  .controls{display:flex;flex-wrap:wrap;gap:14px 26px;align-items:center;justify-content:center;}
  .ctrl{display:flex;flex-direction:column;gap:7px;}
  .ctrl label{font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;color:var(--ink-mute);white-space:nowrap;}
  .seg{display:flex;border:1px solid var(--hair);border-radius:999px;overflow:hidden;background:var(--surface-inset);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}
  .seg button{font-family:inherit;font-size:13px;color:var(--ink-soft);background:none;border:none;padding:8px 14px;cursor:pointer;transition:all var(--t-fast) var(--ease-out);}
  .seg button.active{background:linear-gradient(135deg,var(--amethyst-deep),var(--amethyst));color:#fff;box-shadow:0 2px 10px -2px rgba(139,92,246,0.5), inset 0 1px 0 rgba(255,255,255,0.2);}
  .seg button:not(.active):hover{color:var(--ink);}

  .slider-ctrl{min-width:180px;}
  .slider-row{display:flex;align-items:center;gap:10px;}
  input[type=range]{-webkit-appearance:none;appearance:none;height:5px;border-radius:5px;background:rgba(255,255,255,0.12);width:140px;outline:none;}
  input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--gold);cursor:pointer;box-shadow:0 0 0 4px rgba(230,197,135,0.22);}
  input[type=range]::-moz-range-thumb{width:16px;height:16px;border:none;border-radius:50%;background:var(--gold);cursor:pointer;}
  .val{font-size:13px;color:var(--gold);font-variant-numeric:tabular-nums;min-width:62px;}

  select.nav-sel{
    font-family:inherit;font-size:13px;color:var(--ink);background:var(--surface-2);
    border:1px solid var(--hair);border-radius:999px;padding:8px 14px;cursor:pointer;max-width:220px;
  }
  select.nav-sel:focus{outline:none;border-color:var(--amethyst);}

  /* progressive disclosure: "Reading settings" toggle + collapsible secondary controls */
  .settings-toggle{
    display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:12.5px;color:var(--ink-soft);
    background:var(--surface-2);border:1px solid var(--hair);border-radius:999px;padding:9px 16px;cursor:pointer;
    transition:color var(--t) var(--ease-out), border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
  }
  .settings-toggle:hover{color:var(--ink);border-color:var(--hair-strong);}
  .settings-toggle[aria-expanded="true"]{color:var(--ink);border-color:var(--hair-strong);background:var(--surface);}
  .settings-toggle .st-ic,.settings-toggle .st-chev{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
  .settings-toggle .st-ic{width:15px;height:15px;}
  .settings-toggle .st-chev{width:13px;height:13px;opacity:.8;transition:transform var(--t) var(--ease-out);}
  .settings-toggle[aria-expanded="true"] .st-chev{transform:rotate(180deg);}

  .more-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--t-slow) var(--ease-out);}
  .more-wrap.open{grid-template-rows:1fr;}
  .controls.more{overflow:hidden;min-height:0;padding-top:22px;border-top:1px solid var(--hair-soft);}

  .kbd-hint{text-align:center;color:var(--ink-mute);font-size:11.5px;letter-spacing:.4px;margin-top:14px;}
  .kbd-hint kbd{font-family:"Spline Sans";background:rgba(255,255,255,0.06);border:1px solid var(--hair);border-radius:6px;padding:2px 7px;font-size:11px;color:var(--ink-soft);margin:0 2px;}

  footer.site{text-align:center;color:var(--ink-mute);font-size:12.5px;padding:40px 0 32px;letter-spacing:.3px;}
  footer.site a{color:var(--ink-soft);text-decoration:none;border-bottom:1px solid var(--hair);}

  .hidden{display:none !important;}

  @media (max-width:680px){
    .wrap{padding:0 16px;}
    header.site{padding:max(20px, calc(env(safe-area-inset-top) + 10px)) 0 6px;}
    .privacy-pill{display:none;}
    .brand h1{font-size:21px;}
    .hero{padding:32px 0 0;}
    .hero p{font-size:15.5px;}
    .hero-demo{height:104px;margin-top:26px;}
    .hero-demo .hd-guide.top{top:14px;} .hero-demo .hd-guide.bot{bottom:14px;}
    .founder{margin-top:46px;}
    .founder-quote{font-size:17px;}
    .about-card{padding:32px 22px;}
    .dropzone{padding:34px 22px;}
    .or-row,.paste-shell,.recent{max-width:none;}
    /* ≥44px touch targets on phones, without the labels wrapping to two lines */
    .btn{padding:14px 16px;white-space:nowrap;}
    .support-pill{padding:11px 16px;}
    footer.site a{display:inline-block;padding:7px 2px;}
    .recent-item .ri-x{padding:11px;margin:-7px -4px;}

    /* reader */
    .reader-top{padding:max(16px, calc(env(safe-area-inset-top) + 8px)) 0 2px;}
    .doc-title .t{max-width:52vw;font-size:16px;}
    .stage{padding:46px 14px;min-height:0;}
    .stage .guide.top{top:40px;} .stage .guide.bot{bottom:40px;}
    /* tighter words + a sooner edge-fade so neighbours stay subtle hints on a narrow screen */
    .stage .ribbon{font-size:min(var(--read-size,62px),12vw);}
    .stage .ribbon .rw{padding:0 .3em;}
    .stage .ribbon-clip{
      -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);
              mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);
    }

    .transport{gap:18px;margin-bottom:14px;}
    .dock{padding:12px 0 calc(14px + env(safe-area-inset-bottom));}
    .scrub{gap:10px;margin-bottom:12px;}
    .scrub .time{width:50px;font-size:11px;}

    .controls{gap:16px 16px;}
    .seg button{padding:13px 16px;}              /* ~44px touch targets */
    .ctrl.slider-ctrl{order:-1;flex-basis:100%;align-items:center;}
    .ctrl.slider-ctrl .slider-row{width:100%;justify-content:center;}
    input[type=range]{width:min(72vw,280px);}
    select.nav-sel{max-width:150px;padding:11px 14px;}
    .kbd-hint{display:none;}                       /* no hardware keyboard on touch */
  }

  /* medium-short viewports (e.g. phones with browser toolbars shown): trim the
     stage so it stays readable as it shrinks with the dock expanded */
  @media (max-height:700px){
    .stage{padding:30px 18px;}
    .stage-shell{padding:10px 0;}
  }

  /* ---------- short viewport · landscape phones + short portrait ---------- */
  /* Triggers on any short viewport (height ≤ 600px) — landscape phones, and portrait
     phones whose usable height is reduced by browser toolbars (e.g. iPhone SE). Compresses
     the reader so the stage + the expanded dock fit without overlapping or scrolling. */
  @media (max-height:600px){
    .reader-top{padding:calc(env(safe-area-inset-top) + 8px) 0 2px;}
    .stage-shell{padding:6px 0;}
    .stage{min-height:0;padding:24px 22px;}
    .stage .guide.top{top:16px;} .stage .guide.bot{bottom:16px;}
    .stage .ribbon{font-size:min(var(--read-size,62px),12vw,30vh);}
    .stage .resting{font-size:21px;}

    /* if the expanded dock is taller than the screen (tiny landscape phones), cap it and
       let it scroll internally instead of overlapping the stage */
    .dock{padding:10px 0 calc(8px + env(safe-area-inset-bottom));max-height:68vh;overflow-y:auto;}
    .scrub{margin-bottom:9px;}
    .transport{gap:16px;margin-bottom:9px;}
    .tbtn{width:42px;height:42px;}
    .tbtn svg{width:18px;height:18px;}
    .tbtn.play{width:54px;height:54px;}
    .tbtn.play svg{width:23px;height:23px;}
    .controls{gap:10px 22px;}
    .controls.more{padding-top:14px;}
    .kbd-hint{display:none;}

    /* modals stay usable on a short screen */
    .done-card{padding:24px 22px;}
    .done-orb{width:54px;height:54px;margin-bottom:12px;}
    .done-stats{margin:16px 0;}
    .about-card{padding:26px 22px;}
  }

  /* ---------- accessibility ---------- */
  /* visible keyboard focus on every interactive control */
  a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
  [role="button"]:focus-visible, [role="slider"]:focus-visible, .recent-item:focus-visible{
    outline:2px solid var(--amethyst);
    outline-offset:3px;
    border-radius:8px;
  }
  /* respect users who prefer reduced motion (the word stepping is JS, not animation, so reading still works) */
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
      animation-duration:.001ms !important; animation-iteration-count:1 !important;
      transition-duration:.001ms !important; scroll-behavior:auto !important;
    }
    .dropzone:hover, .tier:hover, .support-pill:hover, .tbtn:hover, .recent-item:hover{ transform:none !important; }
    .parsing .ring{ animation:none !important; border-top-color:var(--amethyst); }
  }

  /* ---------- countdown before streaming ---------- */
  .word.countdown{grid-template-columns:1fr;}
  .word.countdown .cd{
    grid-column:1;text-align:center;color:var(--focus);font-weight:700;
    font-variant-numeric:tabular-nums;text-shadow:0 0 26px rgba(255,206,92,0.6);
    animation:cdPop .3s ease-out;
  }
  @keyframes cdPop{from{opacity:.2;transform:scale(.8)}to{opacity:1;transform:scale(1)}}

  /* ---------- session complete ---------- */
  .done{position:fixed;inset:0;display:none;place-items:center;z-index:60;padding:24px;overflow-y:auto;
    background:rgba(8,5,16,0.9);backdrop-filter:blur(10px);}
  .done.show{display:grid;}
  .done-card{
    position:relative;text-align:center;max-width:440px;width:100%;background:var(--surface);
    border:1px solid var(--hair);border-radius:var(--r-lg);box-shadow:var(--e-3), inset 0 1px 0 rgba(255,255,255,0.05);
    padding:46px 36px;animation:doneIn .4s var(--ease-out) both;
  }
  /* soft bloom behind the orb — the celebratory glow */
  .done-card::before{
    content:"";position:absolute;left:50%;top:6px;transform:translateX(-50%);
    width:300px;height:180px;pointer-events:none;border-radius:50%;
    background:radial-gradient(closest-side, rgba(139,92,246,0.20), transparent 72%);
  }
  .done-orb{
    position:relative;width:78px;height:78px;border-radius:50%;margin:0 auto 20px;
    background:radial-gradient(circle at 50% 50%, #c5a3ff 0 22%, transparent 23%),
      conic-gradient(from 210deg, #8b5cf6, #f0a6c8, #e6c587, #8b5cf6);
    box-shadow:0 0 36px rgba(139,92,246,0.55), 0 0 16px rgba(230,197,135,0.3), inset 0 0 0 1.5px rgba(255,255,255,0.2);
    animation:orbSpin 14s linear infinite;
  }
  @keyframes orbSpin{to{transform:rotate(360deg)}}
  .done-card h3{position:relative;font-family:"Fraunces",serif;font-weight:400;font-size:30px;}
  .done-sub{color:var(--ink-soft);font-size:14.5px;margin-top:6px;max-width:34ch;margin-inline:auto;}
  .done-stats{display:flex;gap:12px;justify-content:center;margin:26px 0 28px;}
  .done-stats>div{flex:1;background:var(--surface-2);border:1px solid var(--hair);border-radius:var(--r-md);padding:16px 8px;box-shadow:var(--e-1);animation:statIn .45s var(--ease-out) both;}
  .done-stats>div:nth-child(1){animation-delay:.12s;}
  .done-stats>div:nth-child(2){animation-delay:.20s;}
  .done-stats>div:nth-child(3){animation-delay:.28s;}
  .done-stats b{display:block;font-family:"Fraunces",serif;font-size:26px;color:var(--gold);font-variant-numeric:tabular-nums;}
  .done-stats span{display:block;font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:var(--ink-mute);margin-top:6px;}
  .done-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
  /* Quiet tip ask at the moment of finished value — fine-print register, never shouty. */
  .done-support{color:var(--ink-mute);font-size:12.5px;margin-top:22px;}
  .done-support a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(230,197,135,0.4);transition:filter var(--t-fast) var(--ease-out);}
  .done-support a:hover{filter:brightness(1.15);}
  .done-support .hh{color:var(--rose);}
  @keyframes doneIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
  @keyframes statIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

  /* ---------- How it works modal ---------- */
  .about{position:fixed;inset:0;display:none;place-items:center;z-index:60;padding:24px;
    background:rgba(8,5,16,0.9);backdrop-filter:blur(10px);overflow-y:auto;}
  .about.show{display:grid;}
  .about-card{
    position:relative;text-align:left;max-width:560px;width:100%;background:var(--surface);
    border:1px solid var(--hair);border-radius:var(--r-lg);box-shadow:var(--shadow);
    padding:40px 38px;animation:doneIn .35s ease-out;
  }
  .about-x{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;
    border:1px solid var(--hair);background:var(--surface-2);color:var(--ink-soft);cursor:pointer;font-size:14px;line-height:1;}
  .about-x:hover{color:#fff;border-color:var(--amethyst);}
  .about-card h3{font-family:"Fraunces",serif;font-weight:400;font-size:27px;margin-bottom:14px;}
  .about-lead{color:var(--ink-soft);font-size:15px;line-height:1.65;}
  .about-grid{display:flex;flex-direction:column;gap:12px;margin:22px 0;}
  .about-item{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--hair);border-radius:var(--r-sm);background:var(--surface-2);box-shadow:var(--e-1);}
  .about-item .ai-k{font-family:"Fraunces",serif;font-size:16px;color:var(--ink);}
  .about-item .ai-v{font-size:13.5px;color:var(--ink-soft);line-height:1.5;}
  .about-item .ai-v em{color:var(--ink-mute);font-style:normal;letter-spacing:1.4px;font-size:11px;text-transform:uppercase;}
  .about-note{color:var(--ink-mute);font-size:13px;line-height:1.6;}
  .about-actions{margin-top:22px;display:flex;justify-content:flex-end;}

  /* ---------- toasts ---------- */
  .toasts{
    position:fixed;left:0;right:0;top:calc(18px + env(safe-area-inset-top));z-index:200;
    display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;padding:0 16px;
  }
  .toast{
    pointer-events:auto;display:flex;align-items:center;gap:12px;max-width:min(92vw,460px);
    background:rgba(20,13,30,0.92);backdrop-filter:blur(14px);border:1px solid var(--hair-strong);
    border-radius:999px;padding:12px 14px 12px 20px;box-shadow:var(--e-2);color:var(--ink);font-size:14px;
    animation:toastIn .25s var(--ease-out);
  }
  .toast.err{border-color:rgba(240,166,200,0.5);}
  .toast .tmsg{flex:1;line-height:1.4;}
  .toast .taction{flex:none;background:none;border:none;color:var(--gold);font:inherit;font-weight:600;cursor:pointer;padding:5px 10px;border-radius:8px;}
  .toast .taction:hover{background:rgba(230,197,135,0.14);}
  .toast.hide{animation:toastOut .24s ease-in forwards;}
  @keyframes toastIn{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
  @keyframes toastOut{to{opacity:0;transform:translateY(-14px)}}

  /* ---------- Phase 2: non-linear block presentation ---------- */
  /* Overlays sit inside .stage-shell (position:relative), covering the stage. */
  .block-card, .page-view, .figindex{
    position:absolute;inset:14px;z-index:30;display:flex;flex-direction:column;
    background:var(--surface);backdrop-filter:blur(16px);
    border:1px solid var(--hair-strong);border-radius:var(--r-lg);box-shadow:var(--e-3);
    padding:18px 20px;animation:doneIn .28s var(--ease-out);overflow:hidden;
  }
  .bc-head, .pv-head, .fi-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex:none;}
  .bc-kind{font-family:"Fraunces",serif;font-size:18px;color:var(--amethyst);}
  .bc-unit{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--ink-mute);}
  .bc-dismiss{margin-left:auto;font:inherit;font-size:12px;color:var(--ink-mute);
    background:none;border:1px solid var(--hair);border-radius:999px;padding:6px 12px;cursor:pointer;}
  .bc-dismiss:hover{color:var(--ink);border-color:var(--hair-strong);}
  .bc-body, .pv-scroll{flex:1;min-height:0;overflow:auto;border-radius:var(--r-md);
    background:var(--surface-inset);padding:14px;}
  .bc-body img, .pv-scroll img{max-width:100%;max-height:48vh;height:auto;display:block;margin:0 auto;border-radius:var(--r-sm);}
  .pv-scroll img{max-height:none;}
  .bc-body table, .pv-scroll table{border-collapse:collapse;width:100%;font-size:14px;color:var(--ink);background:var(--surface-inset);}
  .bc-body th, .bc-body td, .pv-scroll th, .pv-scroll td{border:1px solid var(--hair-soft);padding:7px 10px;text-align:left;}
  .bc-body figure, .pv-scroll figure{margin:0;}
  .bc-body figcaption, .pv-scroll figcaption{color:var(--ink-mute);font-size:12.5px;margin-top:8px;text-align:center;}
  .bc-body blockquote, .pv-scroll blockquote{margin:0;padding-left:14px;border-left:2px solid var(--amethyst-deep);color:var(--ink-soft);font-style:italic;}
  .bc-body pre, .pv-scroll pre{white-space:pre-wrap;font-size:13px;color:var(--ink-soft);overflow-x:auto;}
  .bc-empty{color:var(--ink-mute);text-align:center;padding:30px 0;}
  .bc-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex:none;}
  .pv-head span, .fi-head h3{font-family:"Fraunces",serif;font-weight:400;font-size:18px;}
  .pv-head .btn{margin-left:auto;}
  .fi-x{margin-left:auto;width:32px;height:32px;border-radius:50%;border:1px solid var(--hair);
    background:var(--surface-2);color:var(--ink-soft);cursor:pointer;font-size:13px;}
  .fi-x:hover{color:#fff;border-color:var(--amethyst);}
  .fi-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px;}
  .fi-group{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--ink-mute);margin:10px 2px 4px;}
  .fi-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;
    background:var(--surface-2);border:1px solid var(--hair);border-radius:var(--r-sm);padding:11px 14px;cursor:pointer;color:var(--ink);}
  .fi-item:hover{border-color:var(--amethyst);}
  .fi-glyph{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--amethyst);min-width:64px;}
  .fi-cap{color:var(--ink-soft);}
  .fi-empty{color:var(--ink-mute);text-align:center;padding:24px 0;}
  /* dock additions */
  .figindex-toggle{font:inherit;font-size:13px;color:var(--ink-soft);background:var(--surface);
    border:1px solid var(--hair);border-radius:999px;padding:8px 16px;cursor:pointer;}
  .figindex-toggle:hover{color:var(--ink);border-color:var(--amethyst);}
  #blockModeCtrl .linklike{margin-top:8px;font-size:12.5px;}
  .bmg{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
  .bmg-row{display:flex;align-items:center;gap:10px;}
  .bmg-kind{min-width:78px;font-size:12.5px;color:var(--ink-soft);}
  .bmg-seg button{padding:6px 10px;font-size:12px;}
  @media (prefers-reduced-motion: reduce){
    .block-card, .page-view, .figindex{animation:none !important;}
  }

  /* ---------- Phase 3: highlights & review ---------- */
  .tbtn.mark.on{color:var(--gold);}
  .tbtn.mark.on svg{filter:drop-shadow(0 0 8px rgba(230,197,135,0.6));}
  .review{position:fixed;inset:0;display:none;place-items:center;z-index:60;padding:24px;overflow-y:auto;
    background:rgba(8,5,16,0.9);backdrop-filter:blur(10px);}
  .review.show{display:grid;}
  .review-card{position:relative;text-align:left;max-width:560px;width:100%;background:var(--surface);
    border:1px solid var(--hair);border-radius:var(--r-lg);box-shadow:var(--e-3);
    padding:30px 32px;animation:doneIn .35s var(--ease-out);max-height:84vh;display:flex;flex-direction:column;}
  .rv-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
  .rv-head h3{font-family:"Fraunces",serif;font-weight:400;font-size:24px;}
  .rv-x{margin-left:auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--hair);
    background:var(--surface-2);color:var(--ink-soft);cursor:pointer;font-size:14px;}
  .rv-x:hover{color:#fff;border-color:var(--amethyst);}
  .rv-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;}
  .rv-group{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--ink-mute);margin:12px 2px 2px;}
  .rv-item{background:var(--surface-2);border:1px solid var(--hair);border-radius:var(--r-md);padding:14px 16px;box-shadow:var(--e-1);}
  .rv-quote{margin:0 0 10px;padding-left:12px;border-left:2px solid var(--amethyst-deep);
    color:var(--ink);font-size:14.5px;line-height:1.55;font-style:italic;}
  .rv-acts{display:flex;gap:8px;}
  .rv-act{font:inherit;font-size:12.5px;color:var(--ink-soft);background:none;border:1px solid var(--hair);
    border-radius:999px;padding:5px 12px;cursor:pointer;}
  .rv-act:hover{color:var(--ink);border-color:var(--amethyst);}
  .rv-empty{color:var(--ink-mute);text-align:center;padding:30px 0;}
  .rv-foot{margin-top:16px;display:flex;justify-content:flex-end;flex:none;}
  @media (prefers-reduced-motion: reduce){ .review-card{animation:none !important;} }
