/* THE CITIZENSHIP PROBLEM
   Acts 0 through IX are strictly achromatic.
   --accent is defined ONLY inside .reveal-act (Act X and after). */

:root{
  --paper:      #F7F4ED;
  --paper-deep: #EFEBE1;
  --ink:        #16150F;
  --ink-soft:   #4A4740;
  --ink-faint:  #918C7E;  /* large numerals and rules only: 3.06:1, AA large */
  --ink-meta:   #6B6759;  /* small labels and captions: 5.15:1, AA */
  --rule:       #D8D2C4;

  --font-display: 'Boska', 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-protocol: 'Cabinet Grotesk', 'Satoshi', ui-sans-serif, system-ui, sans-serif;

  --prose: 62ch;
  --wide: 78ch;
  --gap-act: clamp(120px, 14vh, 220px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size:18px;
  line-height:1.72;
  font-synthesis-weight:none;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* very subtle paper temperature drift, below conscious notice */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: var(--paper-drift, #F7F4ED);
  transition: background 1200ms linear;
}

p{ margin:0 0 1.35em; }
h1,h2,h3{ margin:0; font-weight:400; }
ol,ul,dl,dd{ margin:0; padding:0; }
li{ list-style:none; }

a{ color:inherit; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; border-radius:2px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--paper); color:var(--ink); padding:.6rem 1rem;
  font-family:var(--font-ui); font-size:13px; border:1px solid var(--ink);
}
.skip:focus{ left:12px; top:12px; }

/* ---------- NAV + PROGRESS RAIL ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px clamp(16px,3vw,34px) 30px;
  opacity:0; pointer-events:none;
  transition: opacity 600ms var(--ease);
  --nav-veil: 247,244,237;
  background:linear-gradient(to bottom,
    rgba(var(--nav-veil),1) 0%,
    rgba(var(--nav-veil),1) 58%,
    rgba(var(--nav-veil),.86) 76%,
    rgba(var(--nav-veil),0) 100%);
}
/* Act VI sits on a slightly deeper paper. The veil follows it so no seam appears. */
.nav.on-deep{ --nav-veil: 239,235,225; }
.nav.visible{ opacity:1; pointer-events:auto; }
.nav-left{ display:flex; align-items:center; gap:10px; color:var(--ink); }
.nav-mark{ display:inline-flex; color:var(--ink-meta); }
.nav-label{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ink-soft);
}
.rail ol{ display:flex; align-items:center; gap:clamp(8px,1.1vw,16px); }
.rail li{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.14em;
  color:var(--ink-meta); opacity:1;
  transition: opacity 400ms var(--ease), color 900ms var(--ease);
  position:relative; padding-bottom:6px;
}
.rail li::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform 500ms var(--ease);
}
.rail li.done{ color:var(--ink-meta); }
.rail li.current{ color:var(--ink); font-weight:700; }
.rail li.current::after,.rail li.done::after{ transform:scaleX(1); }

/* ---------- SHARED LAYOUT ---------- */
.act{
  position:relative;
  padding: var(--gap-act) clamp(20px,5vw,64px);
  max-width:1180px; margin:0 auto;
}
.prose{
  max-width: var(--prose);
  margin-inline:auto;
}
.prose p{ max-width:var(--prose); }

.act-head{
  max-width:var(--prose); margin:0 auto clamp(36px,5vh,64px); position:relative;
}
.act-num{
  font-family:var(--font-ui); font-weight:500;
  font-size:clamp(24px,2vw,28px); letter-spacing:.14em;
  color:var(--ink-faint); margin:0 0 14px;
}
.act-title{
  font-family:var(--font-display);
  font-size:clamp(30px,4.4vw,40px);
  line-height:1.1; letter-spacing:-0.01em;
}

@media (min-width:1000px){
  .act-num{
    position:absolute; left:-104px; top:.35em; margin:0;
    width:80px; text-align:right;
  }
}

.pull{
  margin: clamp(64px,9vh,120px) auto;
  max-width: var(--wide);
  font-family:var(--font-display);
  font-size:clamp(24px,3.2vw,30px);
  line-height:1.3; letter-spacing:-0.01em;
  color:var(--ink);
  border:0; padding:0;
}

.beat{
  min-height:56vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: clamp(40px,8vh,90px) 0;
}
.beat-tall{ min-height:74vh; }
/* a beat with pinned line breaks needs room for its longest pinned segment,
   otherwise the measure re-wraps inside the break and orphans a word */
.beat.beat-wide p{ max-width:30ch; }
.beat p{
  font-family:var(--font-display);
  font-size:clamp(24px,3.4vw,34px);
  line-height:1.28; letter-spacing:-0.01em;
  max-width:22ch; margin:0 auto;
}

/* ---------- ACT 0 HERO ---------- */
.hero{
  min-height:100svh; display:flex; align-items:center;
  padding: 12vh clamp(20px,5vw,64px) 10vh;
  max-width:1180px; margin:0 auto;
}
.hero-inner{ width:100%; }
.eyebrow{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--ink-soft); margin:0 0 clamp(28px,5vh,52px);
}
.hero-title{
  font-family:var(--font-display);
  font-size:clamp(34px,8.6vw,104px);
  line-height:0.98; letter-spacing:-0.025em;
  display:flex; flex-direction:column;
  margin:0 0 clamp(32px,5vh,56px);
}
.hero-title .line{ display:block; }
.hero-sub{
  font-family:var(--font-body);
  font-size:clamp(18px,2vw,22px);
  color:var(--ink-soft); max-width:46ch; margin:0 0 clamp(48px,10vh,110px);
}
.scroll-cue{
  display:flex; flex-direction:column; gap:12px;
  font-family:var(--font-ui); font-size:11px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--ink-meta);
}
.cue-line{
  width:1px; height:52px; background:var(--rule); position:relative; overflow:hidden;
}
.cue-line::after{
  content:""; position:absolute; left:0; top:0; width:1px; height:18px;
  background:var(--ink-faint); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue{ 0%{ transform:translateY(-20px);} 60%{transform:translateY(52px);} 100%{transform:translateY(52px);} }

/* ---------- ACT II REFUSALS ---------- */
.refusals{ max-width:var(--wide); margin:clamp(48px,8vh,90px) auto 0; }
.refusal{
  min-height:52vh;
  display:flex; flex-direction:column; justify-content:center;
  border-top:1px solid var(--rule);
  padding: clamp(28px,5vh,56px) 0;
}
.refusal:first-child{ border-top:0; }
.refusal .q{
  font-family:var(--font-display);
  font-size:clamp(22px,3vw,30px); line-height:1.25; margin:0 0 .55em;
  opacity:0; transform:translateY(24px);
  transition:opacity 700ms var(--ease), transform 700ms var(--ease);
}
.refusal.q-in .q{ opacity:1; transform:none; }
.refusal .a{
  margin:0; display:inline-flex; flex-direction:column; align-items:flex-start;
  align-self:flex-start;
}
.a-word{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(30px,4.6vw,54px); line-height:1;
  color:var(--ink);
  opacity:0; transform:scale(1.28);
  transition:opacity 180ms linear, transform 420ms cubic-bezier(.2,1.5,.35,1);
}
.strike{
  display:block; height:1px; width:0; background:var(--ink); margin-top:10px;
  transition:width 520ms var(--ease) 120ms;
}
.refusal.a-in .a-word{ opacity:1; transform:scale(1); }
.refusal.a-in .strike{ width:100%; }

/* ---------- ACT III TIMELINE ---------- */
.timeline{ max-width:var(--wide); margin:clamp(48px,7vh,96px) auto; }
.timeline li{
  display:flex; gap:clamp(20px,4vw,54px); align-items:baseline;
  padding: clamp(24px,3.5vh,38px) 0;
  border-top:1px solid var(--rule);
}
.timeline li:last-child{ border-bottom:1px solid var(--rule); }
.tl-year{
  font-family:var(--font-ui); font-weight:500;
  font-size:clamp(26px,3.4vw,40px); letter-spacing:-0.01em;
  color:var(--ink-faint); flex:0 0 auto; min-width:4.4ch;
}
.tl-body{ display:block; }
.tl-title{
  display:block; font-family:var(--font-display); font-weight:500;
  font-size:clamp(20px,2.4vw,26px); line-height:1.2; margin-bottom:.25em;
}
.tl-desc{ display:block; color:var(--ink-soft); font-size:17px; }


/* ---------- ACT IV PAPERS ---------- */
.papers{ max-width:var(--wide); margin:clamp(48px,7vh,90px) auto; display:flex; flex-direction:column; gap:clamp(18px,3vh,28px); }
.paper{
  border:1px solid var(--rule);
  padding: clamp(26px,4vw,44px);
  background:transparent;
}
.paper-num{
  display:block; font-family:var(--font-ui); font-size:11px;
  letter-spacing:.22em; color:var(--ink-meta); margin-bottom:clamp(18px,3vh,30px);
}
.paper-title{
  font-family:var(--font-display); font-weight:500; font-size:clamp(22px,2.6vw,28px);
  line-height:1.2; margin-bottom:.5em;
}
.paper-body{ margin:0; max-width:56ch; color:var(--ink-soft); }

/* ---------- ACT V TREE ---------- */
.tree-figure{ margin:clamp(56px,9vh,120px) auto; max-width:940px; }
.tree-holder{ width:100%; }
#tree{ width:100%; height:auto; display:block; }
#tree .edge{ stroke:var(--ink-faint); stroke-width:1; fill:none; }
#tree .node{ fill:var(--ink); }
.tree-figure figcaption{
  margin-top:clamp(18px,3vh,30px); text-align:center;
  font-family:var(--font-ui); font-size:12px; letter-spacing:.1em;
  color:var(--ink-meta); text-transform:uppercase;
}

/* ---------- ACT VI FORK ---------- */
.act-vi{ background:var(--paper-deep); max-width:none; }
.act-vi > *{ max-width:1180px; margin-inline:auto; }
.act-vi .act-head{ max-width:var(--prose); }
.act-vi .prose{ max-width:var(--prose); }
.fork{ position:relative; margin:clamp(56px,9vh,110px) auto 0; max-width:1040px; }
.fork-svg{ width:100%; height:clamp(140px,22vh,240px); display:block; overflow:visible; }
.fork-svg path{ stroke:var(--ink-faint); stroke-width:1; fill:none; }
.fork-cols{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,6vw,96px); }
.fork-col{ padding-top:clamp(10px,2vh,24px); border-top:1px solid var(--rule); }
.fork-label{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--ink-meta); margin:0 0 1.1em;
}
.fork-title{ font-family:var(--font-display); font-weight:500; font-size:clamp(24px,3vw,32px); line-height:1.15; margin-bottom:.6em; }
.fork-body{ margin:0; max-width:42ch; color:var(--ink-soft); }

/* ---------- ACT VII THREE CONDITIONS ---------- */
/* one restrained ink diagram: a stem branching into three parts.
   deliberately not an interactive moment. */
.conditions{
  --cond-gap: clamp(20px,4vw,56px);
  --cond-stem: clamp(26px,4vh,44px);
  --cond-drop: clamp(26px,3.6vh,40px);
  margin:clamp(56px,9vh,110px) auto; max-width:var(--wide);
}
/* The stem, crown and drops all hang off the list itself, so the diagram
   can never drift out of alignment with the columns it describes. */
.cond-list{
  position:relative;
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:var(--cond-gap);
  padding-top:calc(var(--cond-stem) + var(--cond-drop));
}
/* stem, descending on the axis of the middle column */
.cond-list::before{
  content:""; position:absolute; top:0; height:var(--cond-stem);
  left:calc(33.3333% + (var(--cond-gap) / 3));
  width:1px; background:var(--ink-faint);
}
/* crown, from the first column axis to the third */
.cond-list::after{
  content:""; position:absolute; top:var(--cond-stem); height:1px;
  left:0; width:calc(66.6667% + (var(--cond-gap) * 2 / 3));
  background:var(--ink-faint);
}
/* three drops, landing on the left edge of each column */
.cond-list li{ position:relative; }
.cond-list li::before{
  content:""; position:absolute; left:0; width:1px;
  top:calc(-1 * var(--cond-drop)); height:var(--cond-drop);
  background:var(--ink-faint);
}
.cond-num{
  display:block; font-family:var(--font-ui); font-size:11px;
  letter-spacing:.22em; color:var(--ink-meta); margin-bottom:clamp(12px,2vh,20px);
}
.cond-title{
  font-family:var(--font-display); font-weight:500;
  font-size:clamp(20px,2.3vw,25px); line-height:1.18; margin-bottom:.5em;
}
.cond-body{ margin:0; max-width:32ch; color:var(--ink-soft); font-size:17px; }

/* ---------- ACT VIII RESTRAINT BLOCK ---------- */
/* ---------- ACT IX REQUIREMENTS ---------- */
.reqs{ max-width:var(--wide); margin:clamp(48px,7vh,90px) auto; }
.reqs li{
  display:flex; gap:clamp(18px,3vw,40px); align-items:baseline;
  padding:clamp(20px,3vh,32px) 0; border-top:1px solid var(--rule);
}
.reqs li:last-child{ border-bottom:1px solid var(--rule); }
.req-num{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.2em;
  color:var(--ink-meta); flex:0 0 auto;
}
.req-text{ max-width:56ch; }

.buildup{ margin:clamp(60px,10vh,140px) auto 0; max-width:var(--wide); }
.buildup p{
  min-height:52vh; display:flex; align-items:center;
  font-family:var(--font-display);
  font-size:clamp(22px,2.9vw,30px); line-height:1.3; max-width:26ch;
  margin:0 auto;
}
.void{ height:clamp(180px,42vh,460px); }

/* ---------- ACT X: COLOR AND CABINET GROTESK ARRIVE ---------- */
.reveal-act{
  /* Official Virtuals Protocol brand teal, taken from the brand kit logo gradient
     (#236D66 deep, #44BCC3 bright). #44BCC3 is decoration only, never text. */
  --accent: #236D66;
  --accent-deep: #1A544F;
  --accent-bright: #44BCC3;
}
#act-x{ padding-top:clamp(60px,10vh,140px); }
.turn{
  min-height:66vh; display:flex; align-items:center; justify-content:center;
  text-align:center;
}
.turn-line{
  font-family:var(--font-display);
  font-size:clamp(42px,7vw,88px); line-height:1; letter-spacing:-0.025em;
  margin:0; color:var(--ink);
}
.turn-line.in{ color:var(--accent); transition:color 900ms var(--ease); }

.mark-block{ text-align:center; margin:clamp(20px,5vh,70px) auto clamp(48px,8vh,100px); }
.mark{ display:block; }
/* Official lockup, used exactly as supplied: no recolour, no stroke, no distortion.
   height:auto preserves the 1735x756 ratio at every width. */
.mark img{
  display:block; margin:0 auto;
  width:clamp(238px,31vw,400px); height:auto;
}
/* Name is carried by the lockup artwork; kept in the DOM for assistive tech. */
.vh{
  position:absolute; width:1px; height:1px; padding:0;
  margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.reveal-pos{
  font-family:var(--font-protocol); font-weight:500;
  font-size:clamp(17px,2vw,21px); letter-spacing:0;
  color:var(--accent-deep);
  margin:clamp(26px,3.6vh,40px) 0 0;
}

.mapping{
  max-width:var(--wide); margin:clamp(50px,8vh,100px) auto 0;
  border-top:1px solid var(--rule);
}
.map-row{
  display:grid; grid-template-columns:minmax(180px,.85fr) 1.6fr;
  gap:clamp(20px,4vw,56px);
  padding:clamp(24px,3.5vh,36px) 0; border-bottom:1px solid var(--rule);
}
.map-row dt{
  font-family:var(--font-protocol); font-weight:700;
  font-size:15px; letter-spacing:.01em; line-height:1.35;
  color:var(--accent-deep);
}
.map-row dd{ margin:0; max-width:52ch; color:var(--ink-soft); }

/* ---------- ACT X-B ---------- */
/* the measure token is 62ch of the BODY serif, so it must live on a
   body-font block, never on a display-serif heading */
.austere-head{ margin-bottom:clamp(32px,5vh,52px); }
.tests{ max-width:var(--prose); margin:clamp(36px,5vh,60px) auto; counter-reset:t; }
.tests li{
  counter-increment:t; position:relative; padding:0 0 clamp(22px,3vh,30px) 3.2ch;
  margin-bottom:clamp(22px,3vh,30px); border-bottom:1px solid var(--rule);
  color:var(--ink-soft);
}
.tests li:last-child{ border-bottom:0; }
.tests li::before{
  content:counter(t,decimal-leading-zero);
  position:absolute; left:0; top:.35em;
  font-family:var(--font-ui); font-size:11px; letter-spacing:.16em; color:var(--ink-meta);
}
.test-close{ color:var(--ink); }

/* ---------- CLOSE ---------- */
.close{
  --accent: #236D66;
  --accent-deep: #1A544F;
  padding: clamp(120px,18vh,240px) clamp(20px,5vw,64px) clamp(100px,14vh,200px);
  max-width:1180px; margin:0 auto; text-align:center;
}
.final{
  font-family:var(--font-display);
  font-size:clamp(30px,5vw,58px); line-height:1.12; letter-spacing:-0.02em;
  max-width:20ch; margin:0 auto clamp(70px,14vh,180px);
}
.cta-wrap{ margin:0; }
.cta{
  display:inline-block; text-decoration:none;
  font-family:var(--font-protocol); font-weight:500; font-size:15px;
  letter-spacing:.02em;
  color:var(--accent-deep);
  border:1px solid var(--accent);
  padding:14px 28px; border-radius:2px;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.cta:hover{ background:var(--accent); color:var(--paper); }

.foot{
  border-top:1px solid var(--rule);
  padding: clamp(36px,6vh,64px) clamp(20px,5vw,64px) clamp(48px,8vh,90px);
  max-width:1180px; margin:0 auto;
}
.foot-name{
  font-family:var(--font-protocol); font-weight:700; font-size:14px;
  letter-spacing:.02em; margin:0 0 .5em; color:var(--ink);
}
.foot-meta{
  font-family:var(--font-ui); font-size:12px; letter-spacing:.06em;
  color:var(--ink-meta); margin:0;
}

/* rail picks up accent only once Act X is reached, and drops it instantly
   if the reader scrolls back above the reveal, so no accent can ever linger
   over Acts 0 through IX */
.rail:not(.at-reveal) li{ transition: opacity 400ms var(--ease), color 0s; }
.rail.at-reveal li.current{ color:#236D66; }
.rail.at-reveal li.done{ color:#236D66; opacity:.6; }

/* ---------- SCROLL REVEALS ---------- */
.r{ opacity:0; transform:translateY(24px); transition:opacity 700ms var(--ease), transform 700ms var(--ease); }
.hero-el{ opacity:0; transform:translateY(24px); }
.hero-ready .hero-el{
  animation: rise 900ms var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes rise{ to{ opacity:1; transform:none; } }
.r.in{ opacity:1; transform:none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:760px){
  body{ font-size:17px; }
  .act{ padding-left:20px; padding-right:20px; }
  .beat p{ max-width:18ch; }
  .fork-cols{ grid-template-columns:1fr; gap:clamp(32px,7vh,56px); }
  .fork-body{ max-width:none; }
  .fork-svg{ height:120px; }
  .timeline li{ flex-direction:column; gap:6px; }
  .reqs li{ flex-direction:column; gap:8px; }
  .cond-list::before,
  .cond-list::after,
  .cond-list li::before{ display:none; }
  .cond-list{
    padding-top:0;
    grid-template-columns:1fr; gap:0;
    border-left:1px solid var(--rule); padding-left:clamp(18px,5vw,28px);
  }
  .cond-list li{ padding:clamp(22px,3.5vh,30px) 0; }
  .cond-list li:first-child{ padding-top:0; }
  .cond-list li:last-child{ padding-bottom:0; }
  .cond-body{ max-width:none; }
  .map-row{ grid-template-columns:1fr; gap:10px; }
  .refusal{ min-height:46vh; }
  .nav-label{ display:none; }
  .rail li{ font-size:10px; letter-spacing:.1em; }
  .rail ol{ gap:8px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .r,.hero-el{ opacity:1 !important; transform:none !important; }
  .refusal .q,.a-word{ opacity:1 !important; transform:none !important; }
  .strike{ width:100% !important; }
  .cue-line::after{ display:none; }
  .turn-line{ color:var(--accent); }
}

/* ---------- ACT VIII THE CROSSING ---------- */
/* the one interactive moment in Act VIII. two ink curves, scroll-painted,
   with a scrub the reader drags across the crossing point. strictly
   achromatic: no --accent may appear before Act X. */
.crossing{
  margin:clamp(56px,9vh,110px) auto;
  max-width:min(980px, 100% - 2 * clamp(20px,6vw,64px));
}
.crossing-legend{
  display:flex; flex-wrap:wrap; gap:clamp(16px,3vw,34px);
  margin:0 0 clamp(16px,2.6vh,26px);
}
.crossing-legend p{
  margin:0; display:flex; align-items:center; gap:9px;
  font-family:var(--font-ui); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink-meta);
}
.ck{ width:22px; height:0; border-top:1px solid var(--ink-faint); flex:none; }
.ck-m{ border-top-style:solid; border-top-color:var(--ink); }
.ck-h{ border-top-style:dashed; }

.crossing-plot{ position:relative; }
.crossing-svg{ width:100%; height:auto; display:block; overflow:visible; }
.crossing-svg .grid{ stroke:var(--rule); stroke-width:1; fill:none; }
.crossing-svg .curve{ fill:none; stroke-width:1.25; stroke-linecap:round; }
.crossing-svg .c-machine{ stroke:var(--ink); }
.crossing-svg .c-human{ stroke:var(--ink-faint); stroke-dasharray:5 5; }
.crossing-svg .xmark{ stroke:var(--ink-faint); stroke-width:1; fill:none; }
.crossing-svg .scrub-line{ stroke:var(--ink-soft); stroke-width:1; }
.crossing-svg .dot{ fill:var(--ink); }
.crossing-svg .dot-h{ fill:var(--paper); stroke:var(--ink-soft); stroke-width:1; }
.crossing-svg .axis{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; fill:var(--ink-meta);
}

/* the scrub sits over the plot. a real range input, so it is
   keyboard operable for free. */
.crossing-scrub{
  position:absolute; left:0; top:0; width:100%; height:100%;
  margin:0; padding:0; background:transparent; -webkit-appearance:none; appearance:none;
  cursor:ew-resize; touch-action:pan-y;
}
.crossing-scrub:focus{ outline:none; }
.crossing-scrub:focus-visible{ outline:2px solid var(--ink-soft); outline-offset:6px; }
.crossing-scrub::-webkit-slider-runnable-track{ background:transparent; border:none; height:100%; }
.crossing-scrub::-moz-range-track{ background:transparent; border:none; height:100%; }
.crossing-scrub::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:34px; height:100%; background:transparent; border:none; cursor:ew-resize;
}
.crossing-scrub::-moz-range-thumb{
  width:34px; height:100%; background:transparent; border:none; border-radius:0; cursor:ew-resize;
}

.crossing-read{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,5vw,64px);
  margin-top:clamp(20px,3.4vh,34px);
}
.cr-cell{ padding-top:clamp(9px,1.6vh,16px); border-top:1px solid var(--rule); }
.cr-key{
  margin:0 0 .5em; font-family:var(--font-ui); font-size:11px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--ink-meta);
}
.cr-val{
  margin:0; font-family:var(--font-display); font-weight:500;
  font-size:clamp(21px,2.7vw,30px); line-height:1.2; color:var(--ink);
  transition:opacity 260ms var(--ease);
}
.cr-val.swap{ opacity:0; }

.crossing-cap{
  display:flex; flex-wrap:wrap; align-items:baseline;
  justify-content:space-between; gap:12px 28px;
  margin-top:clamp(18px,3vh,30px);
}
.crossing-hint{
  font-family:var(--font-ui); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink-meta);
  transition:opacity 500ms var(--ease);
}
.crossing-hint.spent{ opacity:0; }
.crossing-const{
  font-family:var(--font-body); font-size:clamp(15px,1.5vw,17px);
  font-style:italic; color:var(--ink-soft);
}

@media (max-width:760px){
  .crossing-read{ grid-template-columns:1fr; gap:20px; }
  .crossing-cap{ flex-direction:column; align-items:flex-start; }
  .crossing-legend{ gap:10px 20px; }
}
@media (prefers-reduced-motion:reduce){
  .cr-val{ transition:none; }
  .crossing-hint{ transition:none; }
}
