/* ============================================================
   case.css — shared design system for all case study pages
   (the published library: edit here once, every case updates)
   Per-page accent tokens + motifs live inline in each page.
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ivory);color-scheme:light}
body{background:var(--ivory);color:var(--navy-soft);font-family:var(--grotesk);
    -webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
.topbar{position:fixed;top:0;left:0;right:0;z-index:40;display:flex;align-items:center;
    justify-content:space-between;padding:1.1rem clamp(1.1rem,4vw,3rem);
    mix-blend-mode:difference;color:#fff}
.topbar a{text-decoration:none}
.back{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
    display:inline-flex;align-items:center;gap:.5em;transition:gap .2s}
.back:hover{gap:.85em}
.wordmark{font-family:var(--display);font-weight:700;font-size:.82rem;letter-spacing:.02em}
.wordmark img{height:30px;width:auto;display:block}
.hero{position:relative;min-height:78vh;display:flex;flex-direction:column;justify-content:flex-end;
    background:var(--abyss);color:var(--ivory);overflow:hidden;padding:clamp(2rem,7vw,5rem) clamp(1.1rem,4vw,3rem) clamp(2.4rem,5vw,3.4rem)}
#heroCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero__glow{position:absolute;inset:0;pointer-events:none;
    background:radial-gradient(60% 70% at 78% 18%,rgba(255,77,0,.34),transparent 60%),
               radial-gradient(50% 60% at 12% 92%,rgba(111,123,255,.26),transparent 62%)}
.hero__orb{position:absolute;top:clamp(2.5rem,10vw,5rem);right:clamp(1.1rem,5vw,4rem);
    width:clamp(96px,15vw,168px);height:clamp(96px,15vw,168px);opacity:.95;pointer-events:none;
    filter:drop-shadow(0 0 26px rgba(255,77,0,.5))}
.hero__inner{position:relative;z-index:2;max-width:1180px;margin:0 auto;width:100%}
.eyebrow{font-family:var(--mono);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
    color:var(--peri);margin-bottom:1.2rem;display:flex;align-items:center;gap:.7em;flex-wrap:wrap}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);
    box-shadow:0 0 12px var(--accent);animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.hero h1{font-family:var(--display);font-weight:800;line-height:.98;letter-spacing:-.01em;
    font-size:clamp(2.3rem,6.6vw,5.1rem);max-width:16ch;margin-bottom:1.1rem}
.hero .lede{font-family:var(--serif);font-style:italic;font-size:clamp(1.05rem,2.3vw,1.5rem);
    line-height:1.45;max-width:40ch;color:rgba(255,243,240,.92)}
.hero__stats{display:flex;gap:clamp(1.6rem,5vw,3.4rem);margin-top:2.2rem;flex-wrap:wrap}
.stat .n{font-family:var(--display);font-weight:700;font-size:clamp(1.5rem,3.4vw,2.3rem);
    color:var(--ivory);line-height:1}
.stat .l{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;
    color:var(--peri);margin-top:.5em}
.thread-band{height:18px;width:100%;flex:none;background-color:var(--abyss);
    background-repeat:repeat-x;background-position:center;background-size:54px 18px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16'%3E%3Cg shape-rendering='crispEdges'%3E%3Cpath d='M0 8h4v4H0zM4 4h4v4H4zM8 0h4v4H8zM12 4h4v4h-4zM16 8h4v4h-4zM20 4h4v4h-4zM24 0h4v4h-4zM28 4h4v4h-4zM32 8h4v4h-4zM36 4h4v4h-4zM40 0h4v4h-4zM44 4h4v4h-4z' fill='%23080B83'/%3E%3Cpath d='M8 8h4v4H8zM24 8h4v4h-4zM40 8h4v4h-4z' fill='%23FF4D00'/%3E%3Cpath d='M0 0h4v4H0zM16 0h4v4h-4zM32 0h4v4h-4z' fill='%23F487B6'/%3E%3C/g%3E%3C/svg%3E")}
.thread-band.bot{transform:scaleY(-1)}
.heroshot{background:#0b0d2e;margin:0}
.heroshot figcaption{max-width:1180px;margin:0 auto;padding:1.1rem clamp(1.1rem,4vw,3rem) 1.9rem;
    font-family:var(--serif);font-style:italic;color:rgba(255,243,240,.72);font-size:.95rem}
.meta{background:var(--navy);color:var(--ivory)}
.meta__in{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);
    gap:1px;background:rgba(255,243,240,.16)}
.meta__cell{background:var(--navy);padding:1.3rem clamp(1.1rem,3vw,2rem)}
.meta__k{font-family:var(--mono);font-size:.62rem;letter-spacing:.13em;text-transform:uppercase;
    color:var(--peri);margin-bottom:.5em}
.meta__v{font-family:var(--grotesk);font-weight:600;font-size:.98rem;line-height:1.3}
.col{max-width:760px;margin:0 auto;padding:clamp(3rem,7vw,5.5rem) clamp(1.1rem,5vw,2rem)}
.sec{margin-bottom:clamp(2.6rem,6vw,4rem)}
.sec:last-child{margin-bottom:0}
.kicker{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
    color:var(--accent-ink);margin-bottom:1rem;display:flex;align-items:center;gap:.6em}
h2{font-family:var(--display);font-weight:700;font-size:clamp(1.5rem,3.6vw,2.2rem);
    line-height:1.06;letter-spacing:-.01em;color:var(--navy);margin-bottom:1.1rem}
h3.sub{font-family:var(--grotesk);font-weight:700;font-size:1.16rem;color:var(--navy);
    margin:2rem 0 .7rem}
p{font-size:clamp(1.02rem,1.7vw,1.14rem);line-height:1.65;color:var(--navy-soft);
    margin-bottom:1.05rem;max-width:66ch}
p.serif{font-family:var(--serif);font-style:italic;color:var(--ink)}
strong{color:var(--navy);font-weight:600}
.pull{font-family:var(--serif);font-size:clamp(1.3rem,3vw,1.85rem);line-height:1.32;
    color:var(--navy);border-left:4px solid var(--accent);padding-left:1.1rem;margin:1.8rem 0;max-width:30ch}
.quote{font-family:var(--serif);font-style:italic;font-size:clamp(1.15rem,2.6vw,1.55rem);
    line-height:1.4;color:var(--navy);background:rgba(244,135,182,.14);
    border-radius:14px;padding:1.4rem 1.5rem;margin:1.4rem 0;max-width:48ch}
.rolelist,.bullets{list-style:none;margin:.4rem 0 1.2rem;padding:0;max-width:62ch}
.rolelist li,.bullets li{padding:.55em 0 .55em 1.6em;position:relative;
    border-bottom:1px solid var(--line);font-size:1.04rem;line-height:1.5;color:var(--navy-soft)}
.rolelist li::before{content:"→";position:absolute;left:0;color:var(--accent);font-family:var(--mono)}
.bullets li::before{content:"";position:absolute;left:.15em;top:1.15em;width:7px;height:7px;
    background:var(--accent);transform:rotate(45deg)}
.tbl{width:100%;border-collapse:collapse;margin:1.4rem 0;font-family:var(--grotesk);font-size:.96rem}
.tbl th{font-family:var(--mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;
    text-align:left;color:var(--accent-ink);padding:.75em .9em;border-bottom:2px solid var(--line-strong)}
.tbl td{padding:.75em .9em;border-bottom:1px solid var(--line);vertical-align:top;
    color:var(--navy-soft);line-height:1.45}
.tbl td:first-child{font-weight:600;color:var(--navy);white-space:nowrap}
@media(max-width:600px){.tbl td:first-child{white-space:normal}}
figure{margin:1.8rem 0}
.shot{position:relative;width:100%;aspect-ratio:16/10;border-radius:12px;overflow:hidden;
    background:
      repeating-linear-gradient(45deg,rgba(8,11,131,.04) 0 10px,transparent 10px 20px),
      linear-gradient(135deg,#fbe9e3,#f6dcd3);
    border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.shot::after{content:attr(data-cap);font-family:var(--mono);font-size:.74rem;letter-spacing:.04em;
    color:#b08a7c;text-transform:uppercase}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.shot.tall{aspect-ratio:4/3}
.shot.small{aspect-ratio:16/8}
.badge{position:absolute;top:10px;left:10px;font-family:var(--mono);font-size:.56rem;
    letter-spacing:.12em;text-transform:uppercase;padding:.35em .65em;border-radius:5px;z-index:2}
.badge.have{background:rgba(8,11,131,.13);color:var(--navy)}
.badge.build{background:rgba(255,77,0,.18);color:#9a3400}
.badge.crown{background:var(--yellow);color:var(--navy);font-weight:500}
.badge.cond{background:rgba(8,11,131,.09);color:var(--ink)}
figcaption{font-family:var(--serif);font-style:italic;color:var(--ink);font-size:.95rem;
    margin-top:.7rem;line-height:1.45;max-width:60ch}
.two-up{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.8rem 0}
.two-up figure{margin:0}
@media(max-width:620px){.two-up{grid-template-columns:1fr}}
.crown-wrap{border:2px solid var(--yellow);border-radius:16px;padding:.7rem;
    background:rgba(253,225,45,.07);margin:1.8rem 0}
.crown-wrap figure{margin:0}
.crown-wrap .shot{background:
      repeating-linear-gradient(45deg,rgba(8,11,131,.05) 0 10px,transparent 10px 20px),
      linear-gradient(135deg,#fff6d6,#f8e9c8)}
.crown-wrap .shot::after{color:#9c8a3a}
.note{border-left:3px solid var(--navy);background:rgba(8,11,131,.05);padding:1.15em 1.35em;
    border-radius:0 12px 12px 0;font-size:1rem;line-height:1.6;color:var(--navy-soft);
    margin:1.6rem 0}
.note b{color:var(--navy)}
.lesson{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}
.lesson:last-child{border-bottom:0}
.lesson .num{font-family:var(--display);font-weight:800;font-size:1.1rem;color:var(--accent);
    margin-bottom:.3rem}
.lesson h3{font-family:var(--grotesk);font-weight:700;color:var(--navy);font-size:1.18rem;margin-bottom:.45rem}
.outcome{background:var(--navy);color:var(--ivory);border-radius:18px;
    padding:clamp(1.8rem,4vw,2.6rem);margin:1.8rem 0;position:relative;overflow:hidden}
.outcome .pull{color:var(--ivory);border-left-color:var(--accent);max-width:34ch}
.outcome p{color:rgba(255,243,240,.86)}
.livecta{display:inline-flex;align-items:center;gap:.6em;font-family:var(--mono);font-size:.82rem;
    font-weight:500;letter-spacing:.05em;text-transform:uppercase;color:var(--ivory);background:var(--accent);
    padding:.95em 1.6em;border-radius:100px;text-decoration:none;transition:transform .18s,gap .2s;margin-top:.6rem}
.livecta:hover{transform:translateY(-2px);gap:.95em}
.pager{border-top:1px solid rgba(255,243,240,.16);background-color:#6f7bff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Crect x='41.44' y='1.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='9.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='17.44' y='17.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='17.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='65.44' y='17.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='25.44' y='25.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='25.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='57.44' y='25.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='33.44' y='33.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='33.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='49.44' y='33.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='1.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='9.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='17.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='25.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='33.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='49.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='57.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='65.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='73.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='81.44' y='41.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='33.44' y='49.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='49.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='49.44' y='49.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='25.44' y='57.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='57.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='57.44' y='57.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='17.44' y='65.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='65.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='65.44' y='65.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='73.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3Crect x='41.44' y='81.44' width='5.12' height='5.12' fill='%23040519' fill-opacity='0.18'/%3E%3C/svg%3E");background-size:88px 88px;background-repeat:repeat}
.pager a{display:flex;align-items:center;justify-content:space-between;gap:1rem;
    max-width:1180px;margin:0 auto;padding:clamp(2rem,5vw,3rem) clamp(1.1rem,4vw,3rem);
    text-decoration:none;transition:background .2s}
.pager a:hover{background:rgba(255,243,240,.10)}
.pager .lab{font-family:var(--mono);font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;
    color:rgba(255,243,240,.85);margin-bottom:.5rem}
.pager .ttl{font-family:var(--display);font-weight:700;font-size:clamp(1.3rem,3vw,1.9rem);color:var(--ivory)}
.pager .arrow{font-size:1.6rem;color:var(--accent)}
footer{background:var(--abyss);color:rgba(255,243,240,.7);text-align:center;
    padding:2.4rem 1rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.05em}
footer a{color:var(--peri);text-decoration:none}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
    .reveal{opacity:1;transform:none;transition:none}
    .eyebrow .dot{animation:none}
    html{scroll-behavior:auto}
  }
@media(max-width:720px){
    .meta__in{grid-template-columns:repeat(2,1fr)}
  }
@media (prefers-color-scheme: dark){
    html,body{background:var(--ivory)!important;color:var(--navy-soft)!important}
    h2,.pull,h3.sub,.meta__v,.tbl td:first-child{color:var(--navy)!important}
    p,.tbl td,.rolelist li,.bullets li{color:var(--navy-soft)!important}
    p.serif,figcaption,.note{color:var(--ink)!important}
    .hero .lede{color:rgba(255,243,240,.92)!important}
    .heroshot figcaption{color:rgba(255,243,240,.72)!important}
    .meta__v{color:var(--ivory)!important}
    .outcome p{color:rgba(255,243,240,.86)!important}
    .outcome .pull{color:var(--ivory)!important}
  }
.ba{--p:50;position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;cursor:ew-resize;box-shadow:0 18px 50px -18px rgba(8,11,131,.45);touch-action:pan-y;-webkit-user-select:none;user-select:none;background:#0b0b1a;margin:0}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;max-width:none}
.ba-before{clip-path:inset(0 calc((100 - var(--p)) * 1%) 0 0)}
.ba-divider{position:absolute;top:0;bottom:0;left:calc(var(--p) * 1%);width:3px;background:var(--accent);transform:translateX(-50%);box-shadow:0 0 0 1px rgba(255,255,255,.35);pointer-events:none}
.ba-knob{position:absolute;top:50%;left:calc(var(--p) * 1%);width:46px;height:46px;border-radius:50%;background:var(--accent);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(8,11,131,.4),0 0 0 4px rgba(255,255,255,.85);cursor:ew-resize;outline:none}
.ba-knob:focus-visible{box-shadow:0 4px 14px rgba(8,11,131,.4),0 0 0 4px #fff,0 0 0 7px #080B83}
.ba-tag{position:absolute;top:14px;font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:12px;letter-spacing:.16em;text-transform:uppercase;padding:6px 11px;border-radius:6px;background:rgba(255,243,240,.92);color:#080B83;pointer-events:none}
.ba-tag-b{left:14px}
.ba-tag-a{right:14px}
.ba-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#fff;background:rgba(8,11,131,.72);padding:7px 13px;border-radius:20px;pointer-events:none;transition:opacity .4s;white-space:nowrap}
.shot{cursor:zoom-in}
.heroshot .shot{cursor:default}
.zoom-ov{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;background:color-mix(in srgb, var(--accent) 72%, transparent);color:#FFF3F0;opacity:0;transition:opacity .22s ease;pointer-events:none;font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:12px;letter-spacing:.18em;text-transform:uppercase}
.zoom-badge{position:absolute;right:10px;bottom:10px;z-index:3;width:30px;height:30px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(8,11,131,.35);pointer-events:none;opacity:.9;transition:opacity .22s ease}
@media (hover:hover){.shot:hover .zoom-ov{opacity:1}.shot:hover .zoom-badge{opacity:0}}
#lb{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:5vh 4vw;background:rgba(4,5,26,.93);opacity:0;transition:opacity .2s ease;cursor:zoom-out}
#lb.open{display:flex;opacity:1}
#lb img{max-width:92vw;max-height:80vh;object-fit:contain;border-radius:8px;box-shadow:0 30px 80px -20px rgba(0,0,0,.7);transform:scale(.98);transition:transform .2s ease;cursor:default}
#lb.open img{transform:scale(1)}
.lb-cap{color:#FFF3F0;font-family:'Source Serif 4',Georgia,serif;font-size:14px;line-height:1.5;max-width:720px;text-align:center;opacity:.9;cursor:default}
.lb-close{position:fixed;top:18px;right:18px;width:46px;height:46px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.lb-close:focus-visible{outline:3px solid #fff;outline-offset:2px}
.outcome{overflow:visible}
.ol-motifs{position:absolute;top:0;bottom:0;right:100%;width:50px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-evenly;align-items:flex-end;pointer-events:none;padding:1.4rem 0}
.ol-motifs i{width:50px;height:100px;flex:none;background:var(--case-motif) left center/100px 100px no-repeat}
.ol-motifs i{transform:translateX(50px);transition:transform .6s steps(5,end)}
.ol-motifs i:nth-child(2){transition-delay:.35s}
.ol-motifs i:nth-child(3){transition-delay:.7s}
.outcome.reveal{opacity:1;transform:none;transition:none}
.outcome.in .ol-motifs i{transform:translateX(0)}
@media(prefers-reduced-motion:reduce){.ol-motifs i{transform:none;transition:none}}
@media(max-width:820px){.ol-motifs{display:none}}
/* ===== chapter rail (desktop scrollspy nav) ===== */
.sec[id]{scroll-margin-top:clamp(72px,8vh,96px)} /* jump clears the fixed topbar */
.railnav{position:fixed;left:clamp(1.2rem,3vw,2.6rem);top:50%;transform:translateY(-50%);
  z-index:30;display:flex;flex-direction:column;gap:clamp(.7rem,1.3vw,1.1rem);
  opacity:0;pointer-events:none;transition:opacity .3s}
.railnav.in-view{opacity:1;pointer-events:auto}
.railnav::before{content:"";position:absolute;left:3.5px;top:4px;bottom:4px;width:2px;
  background:rgba(10,11,34,.15)}                 /* the thread */
.railnav a{position:relative;display:flex;align-items:center;gap:.65rem;text-decoration:none;line-height:1}
.rn-dot{position:relative;z-index:1;width:9px;height:9px;flex:none;border-radius:50%;
  background:var(--ivory);box-shadow:inset 0 0 0 2px rgba(10,11,34,.3);
  transition:transform .2s,background .2s,box-shadow .2s}
.rn-lbl{font-family:var(--mono);font-size:.64rem;letter-spacing:.05em;text-transform:uppercase;
  color:var(--ink);opacity:.5;white-space:nowrap;transition:opacity .2s,color .2s}
.railnav a:hover .rn-dot,.railnav a.is-active .rn-dot{background:var(--accent);
  box-shadow:inset 0 0 0 2px var(--accent);transform:scale(1.3)}
.railnav a:hover .rn-lbl,.railnav a.is-active .rn-lbl{opacity:1;color:var(--accent)}
@media(max-width:1100px){ /* crowding guard — this breakpoint is the knob */
  .rn-lbl{position:absolute;left:calc(100% + .5rem);top:50%;transform:translateY(-50%);
    opacity:0;pointer-events:none;padding:.2rem .45rem;border-radius:5px;
    background:var(--navy);color:var(--ivory);box-shadow:0 3px 10px rgba(0,0,0,.25)}
  .railnav a:hover .rn-lbl{opacity:1;color:var(--ivory)}}
@media(max-width:820px){.railnav{display:none}} /* mobile off, per v1 */
@media(prefers-reduced-motion:reduce){.railnav,.rn-dot,.rn-lbl{transition:none}}
