/* The harvesting conveyor. One section, used on the home page (#harvest in home.html) and on its own at
   /preview/conveyor.html; conveyor.js draws the scene. Every class and id is prefixed hv so nothing here
   meets the home page's own names (.track, .sticky, .dot and the rest are already taken there). */
.hv{
  --hv-ink:#111A20; --hv-mute:#5B6875; --hv-soft:#66727E; --hv-hair:rgba(17,26,32,.09); --hv-navy:#1D3A52; --hv-green:#2F7259; --hv-rust:#B0492B;
  --hv-display:"Source Serif 4",Georgia,serif; --hv-sans:"Archivo",system-ui,sans-serif;
  color:var(--hv-ink);
}
.hv *{box-sizing:border-box}
/* the home page's h2.head, restated so the standalone page matches it */
.hv .hv-h{margin:0; max-width:none; font-family:var(--hv-display); font-variation-settings:"opsz" 96,"wght" 600;
  font-size:clamp(1.8rem,3.5vw,3rem); line-height:1.05; letter-spacing:-.008em}
.hv-sub{margin:14px 0 0; max-width:52ch; font-size:clamp(1rem,1.3vw,1.14rem); line-height:1.5; color:#3A4651}

.hv-stage{position:relative; margin:clamp(20px,4vh,40px) calc(-1 * clamp(0px,2vw,24px)) 0}
#hvScene{display:block; width:100%; height:auto; overflow:visible}
/* labels and figures share the calculator's standard: the sans at regular weight, sentence case, no monospace */
.hv-lab text,#hvMkt{font-family:var(--hv-sans); font-size:12.5px; fill:var(--hv-soft)}
.hv-lab .hv-g{fill:var(--hv-green)}
.hv-lab .hv-narrow{display:none}
#hvMkt{font-variation-settings:"wght" 500; fill:var(--hv-green); transition:fill .3s ease}
#hvMkt.hv-down{fill:var(--hv-rust)}
.hv-chip{font-family:var(--hv-sans); font-size:11px; font-variant-numeric:lining-nums tabular-nums; fill:var(--hv-soft)}
.hv-chip.hv-dn{fill:var(--hv-rust)}
#hvSpark{fill:none; stroke:var(--hv-green); stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; transition:stroke .3s ease}
#hvSparkHead{fill:var(--hv-green); transition:fill .3s ease}
#hvSpark.hv-down{stroke:var(--hv-rust)} #hvSparkHead.hv-down{fill:var(--hv-rust)}

/* the running total */
.hv-tally{position:absolute; top:6px; right:clamp(0px,2vw,24px); width:min(34%,380px); display:grid; gap:10px}
.hv-k{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--hv-ink)}
.hv-dot{width:6px; height:6px; border-radius:50%; background:var(--hv-green)}
.hv-v{font-family:var(--hv-sans); font-variation-settings:"wght" 420; font-variant-numeric:lining-nums tabular-nums;
  font-size:clamp(1.7rem,2.9vw,2.2rem); letter-spacing:-.022em; color:var(--hv-ink)}
.hv-od{display:flex; height:1.2em; line-height:1.2em; overflow:hidden}
.hv-od .hv-c{display:block; height:1.2em}
.hv-od .hv-d{display:block; transition:transform .38s cubic-bezier(.2,.8,.2,1)}
.hv-od .hv-d span{display:block; height:1.2em}
.hv-track{position:relative; height:4px; margin-top:2px; border-radius:2px; background:rgba(17,26,32,.07); overflow:hidden}
.hv-track b{position:absolute; left:0; top:0; bottom:0; width:0; background:var(--hv-green); transition:width .8s cubic-bezier(.2,.8,.2,1)}

/* closed by default so the scene keeps the page; the text stays in the document for readers and crawlers */
.hv-fine{margin:22px 0 0; padding-top:12px; border-top:1px solid var(--hv-hair); color:var(--hv-soft)}
.hv-fine summary{display:inline-flex; align-items:center; gap:8px; cursor:pointer; list-style:none; padding:6px 0; font-size:13px}
.hv-fine summary::-webkit-details-marker{display:none}
.hv-fine summary::after{content:""; width:5px; height:5px; border-right:1.2px solid currentColor; border-bottom:1.2px solid currentColor;
  transform:rotate(-45deg); transition:transform .2s ease}
.hv-fine[open] summary::after{transform:rotate(45deg) translate(-1px,-1px)}
.hv-fine summary:hover{color:var(--hv-ink)}
.hv-fine summary:focus-visible{outline:2px solid var(--hv-navy); outline-offset:4px; border-radius:3px}
.hv-fine p{margin:8px 0 0; max-width:92ch; font-size:12px; line-height:1.55}

@media (max-width:640px){
  /* a phone gets a steeper view of the scene (set in conveyor.js) and the three anchor labels, drawn larger */
  .hv-lab .hv-wide{display:none}
  .hv-lab .hv-narrow{display:inline}
  .hv-lab.hv-below{transform:translateY(24px)}
  .hv-lab text,#hvMkt{font-size:25px}
  .hv-chip,#hvSpark,#hvSparkHead{display:none}
}
@media (max-width:900px){
  .hv-tally{position:static; width:auto; margin:18px clamp(0px,2vw,24px) 0; padding-top:18px; border-top:1px solid var(--hv-hair)}
}
@media (prefers-reduced-motion:reduce){
  .hv-od .hv-d,.hv-track b{transition:none}
}
