@import url("/assets/css/cart-glow.css");   /* the Look up button wears the cart buttons' moving ring (the owner, 30 Nov 2026): that sheet reused, not copied */
/* The home film (DSN-28, push 5): one pinned stage while the section scrolls by. The vial is a rendered frame sequence on a
   transparent background, lit for this page's own colours (--bg, #f7f8fa light and #0c0c10 dark), drawn on a canvas by
   home-story.js; every word, number, trace, formula, row and the lookup is page HTML/SVG. Its own sheet, linked by the
   section only: the home bundle is at its budget. The stage is pinned from the first paint, so nothing shifts when the
   module mounts; each state moves the vial with transform, opacity and filter only (no layout shift while scrolling).
   If the module never mounts (site.js's safety net) or scripts are off, the four states stand stacked without the vial. */
.hs {
  --pn:#fff;--ink:#17171c;--mu:#5d5e6a;--ln:#dddee3;--ac:#65419a;--as:#65419a;--cd:#17171c;--ch:#fff;--chb:#e3e1ea;--cs:rgba(40,24,72,.25);
  position:relative;background:var(--bg);color:var(--ink);font:400 1rem/1.6 var(--font-body);
}
[data-theme="dark"] .hs {--pn:#17171d;--ink:#f1eff6;--mu:#a3a2b2;--ln:#2d2c36;--as:#b7a2da;--cd:#fff;--ch:#17171d;--chb:#2b2a34;--cs:rgba(0,0,0,.8);color-scheme:dark;}
.hs .tt-kicker,.hs .tt-h {margin:0;}
.hs h3.tt-h {font-size:clamp(28px,3.1vw,44px) !important;}   /* the states' titles are h3 (one h2 for the section) at the h2 size */
.fs__pin {position:relative;}
.fs__copy {display:grid;gap:12px;max-width:560px;padding:56px 22px 0;margin:0 auto;}
.hs__note {margin:0 auto;padding:24px 22px 40px;font:400 .72rem/1.45 var(--font-body);color:var(--mu);max-width:560px;}
.fs__vial {display:none;}

/* the pinned stage (scripts on, not stacked) */
.js .hs:not(.is-stacked) {height:520vh;}
.js .hs:not(.is-stacked) .fs__pin {position:sticky;top:0;height:100vh;height:100svh;min-height:600px;overflow:hidden;}
.fs__vial {--x:0px;--y:0px;--s:1;}
.js .hs:not(.is-stacked) .fs__vial {display:block;position:absolute;left:50%;bottom:2svh;height:60svh;aspect-ratio:3/4;margin:0;
  transform:translate(calc(-50% + var(--x)),var(--y)) scale(var(--s));transform-origin:50% 100%;transition:transform .7s cubic-bezier(.3,.7,.2,1),opacity .7s,filter .7s;}
.fs__cv {display:block;width:100%;height:100%;}
.js .hs:not(.is-stacked) .fs__copy {position:absolute;left:0;right:0;top:0;z-index:1;max-width:none;padding-top:calc(var(--header-h,60px) + 28px);
  opacity:0;visibility:hidden;transition:opacity .45s,visibility 0s .45s;}
.js .hs:not(.is-stacked) .hs__note {position:absolute;left:0;right:0;bottom:0;z-index:1;max-width:none;padding:0 22px 14px;}
.hs[data-state="vial"] .fs__s[data-s="vial"],.hs[data-state="lot"] .fs__s[data-s="lot"],.hs[data-state="lab"] .fs__s[data-s="lab"],
.hs[data-state="coa"] .fs__s[data-s="coa"] {opacity:1;visibility:visible;transition:opacity .45s .15s,visibility 0s;}
.hs[data-state="lot"] .fs__vial {--s:.97;--y:-1svh;}
.hs[data-state="lab"] .fs__vial {--s:.73;--x:28vw;}
.hs[data-state="coa"] .fs__vial {--s:.87;--y:-30svh;opacity:.16;filter:blur(5px);}

/* the page elements */
.fs__lot {display:grid;gap:6px;justify-items:start;margin-top:6px;}
.fs__lot small,.fs__read small,.hs__card small {font:500 .72rem/1.3 var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--mu);}
.hs__code {font:600 1.5rem/1 var(--font-mono);letter-spacing:.03em;white-space:nowrap;color:var(--cd);padding:10px 16px;border:1.5px solid var(--ac);border-radius:999px;}
.fs__lab {display:grid;gap:6px;margin-top:4px;}
.fs__read {display:grid;gap:2px;min-height:4.6rem;}
.fs__read b {font:600 3.4rem/1 var(--font-display);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums;}
.fs__trace {width:100%;height:auto;overflow:visible;}
.fs__trace .ax {stroke:var(--ln);stroke-width:1.5;}
.fs__trace .tr {fill:none;stroke:var(--as);stroke-width:2.4;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:var(--draw,0);}
.fs__trace text {font:500 13px var(--font-mono);fill:var(--mu);text-anchor:middle;}
.fs__trace text.r {text-anchor:end;} .fs__trace text.pk {text-anchor:start;fill:var(--ink);}
.fs__fine {margin:0;font:400 .75rem/1.4 var(--font-body);color:var(--mu);}
.fs__mol {width:56%;height:auto;justify-self:center;margin:2px 0 4px;}
.fs__mol .b {stroke:var(--as);stroke-width:2.2;stroke-linecap:round;}
.fs__mol .ar {stroke-dasharray:5 4;}
.fs__mol .cu {stroke:#c0703a;stroke-width:2;stroke-dasharray:4 4;}
.fs__mol .lc {fill:var(--bg);}
.fs__mol .cuc {fill:#c0703a;}
.fs__mol text {font:600 17px var(--font-display);fill:var(--ink);text-anchor:middle;dominant-baseline:central;}
.fs__mol .cut {fill:#fff;font-size:14px;}
.fs__rows {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;list-style:none;}
.hs__card {display:grid;gap:2px;padding:8px 12px;border-radius:14px;background:var(--ch);border:1px solid var(--chb);box-shadow:0 12px 26px -14px var(--cs);}
.hs__card:first-child {grid-column:1/-1;border-color:var(--ac);}
.hs__card b {font:600 .86rem/1.25 var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hs__lookup {display:flex;gap:10px;flex-wrap:wrap;margin:2px 0 0;}
.hs__lookup input {flex:1 1 170px;min-width:0;font:500 1rem/1 var(--font-mono);padding:12px 16px;border:1px solid var(--ln);border-radius:12px;background:var(--pn);color:var(--ink);}
.hs__lookup input:focus-visible {outline:2px solid var(--as);outline-offset:2px;}
.hs__mgb {font:600 1rem/1 var(--font-body);min-height:44px;padding:12px 22px;border:0;border-radius:999px;background:#65419a;box-shadow:0 10px 26px -12px rgba(101,65,154,.9);color:#fff;cursor:pointer;}
.hs__mgb:focus-visible {outline:2px solid var(--as);outline-offset:3px;}
.hs.is-stacked .fs__read,html:not(.js) .hs .fs__read {display:none;}

@media (min-width:900px) {
  .js .hs:not(.is-stacked) .fs__copy {left:max(6vw,calc(50% - 620px));right:auto;top:50%;width:480px;padding:0;gap:16px;transform:translateY(-50%);}
  .js .hs:not(.is-stacked) .fs__s[data-s="coa"] {width:560px;}
  .js .hs:not(.is-stacked) .fs__vial {left:auto;right:max(6vw,calc(50% - 640px));bottom:4vh;height:84vh;transform:translate(var(--x),var(--y)) scale(var(--s));}
  .hs[data-state="lot"] .fs__vial {--s:.88;--y:-2vh;}
  .hs[data-state="lab"] .fs__vial {--s:.83;--x:2vw;}
  .hs[data-state="coa"] .fs__vial {--s:.95;--y:-2vh;opacity:.2;}
  .js .hs:not(.is-stacked) .fs__mol {position:absolute;left:calc(100% + 8vw);top:50%;width:440px;transform:translateY(-50%);}
  .js .hs:not(.is-stacked) .hs__note {left:max(6vw,calc(50% - 620px));right:auto;padding:0 0 22px;}
}
@media (prefers-reduced-motion:reduce) {
  .hs .fs__vial,.hs .fs__copy {transition:none !important;}
}
