/* =============================================================================
 * home.css — the v4 design language (docs/mockups/home-v1/build-D.mjs), lifted
 * out of the mockup generator and made a real stylesheet.
 *
 * Direction A's palette, type and furniture; Direction B's gapless catalogue
 * grid (the "seamless" look the owner picked). Nothing here is generated from
 * store theme tokens — the site owns its own look (principle 2).
 *
 * Only the v2 pages (/, /vip/, /bulk/, /dealer/, /supplements/ and its product
 * pages, /item/<slug>) load this file. The legacy pages keep
 * tokens/base/layout/components.css untouched.
 * =========================================================================== */

:root{
  --ink-000:#08090a; --ink-050:#0b0d0e; --ink-100:#121518; --ink-200:#191d21; --ink-300:#20262b;
  --line:#2a3137; --line-soft:#1e2429;
  --fog:#8b959c; --fog-2:#b6bfc5; --chalk-dim:#d3d9dd; --chalk:#e9ecee;
  /* Direction B's tile ground: the pale plate under every product photograph,
     with only a hairline between tiles, IS the seamless look. */
  --plate:#E4E8EC; --plate-2:#EDF0F3;
  --sand:#d6c9ae; --ga-red:#ff0004;
  --sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --cond:"Barlow Condensed", "Arial Narrow", var(--sans);
  --mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* THE HEADER IS TWO NUMBERS NOW.
     `--head-bar` is the bar with the brand in it. `--head-sub` is the compact nav
     row that appears under it below 1080 (0 above that). `--head-h` is what the
     sticky header actually occupies — the two added up — and it is the token the
     search bar sticks under (`.cbar-host{top:var(--head-h)}`). Nothing else may
     restate any of these; a header that grows moves the number HERE. */
  --measure:1240px; --gut:clamp(18px, 4vw, 40px);
  --head-bar:68px; --head-sub:0px; --head-h:calc(var(--head-bar) + var(--head-sub));
  --ease:cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ink-000);color:var(--chalk);font-family:var(--sans);font-size:15.5px;line-height:1.62;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;font-synthesis-weight:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--cond);font-weight:500;margin:0;line-height:1.02;letter-spacing:.005em}
p{margin:0}
a{color:inherit}
:focus-visible{outline:2px solid var(--chalk);outline-offset:3px;border-radius:1px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--chalk);color:var(--ink-000);
  padding:12px 18px;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.skip-link:focus{left:0}
.wrap{width:100%;max-width:var(--measure);margin-inline:auto;padding-inline:var(--gut)}
.mono{font-family:var(--mono);font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:var(--fog)}
.eyebrow{display:flex;align-items:center;gap:12px}
.eyebrow::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,var(--line),transparent)}
.rule{height:1px;background:var(--line);border:0;margin:0}
[hidden]{display:none !important}

/* signed-in / signed-out inline switches (the SAME sentence, two states) */
.when-in{display:none}
body.mode-in .when-in{display:inline}
body.mode-in .when-out{display:none}
/* the same switch for a whole BLOCK — a paragraph, a panel, a band. A signed-in
   shopper is never told to create an account (owner review 2026-08-23), and the
   two halves of each pair are marked here rather than hidden by a controller, so
   a page whose script never ran shows the signed-OUT half and nothing else. */
.when-in-block,a.when-in-block{display:none}
body.mode-in .when-in-block{display:block}
body.mode-in a.when-in-block{display:flex}

/* ---------- impersonation ---------- */
.impersonation{background:var(--sand);color:var(--ink-000);font-family:var(--mono);font-size:12px;
  letter-spacing:.1em;text-transform:uppercase;padding:10px var(--gut);text-align:center}

/* ---------- header ---------- */
.site-head{position:sticky;top:0;z-index:80;background:rgba(8,9,10,.88);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft)}
/* --head-bar is the bar's own height and --head-h is the whole sticky header's
   (bar + the compact nav row below 1080), published as tokens because the search
   bar sticks directly under it (`.cbar-host{top:var(--head-h)}`). They are set in
   :root and in the two media queries at the foot of this file, and nowhere else —
   a header that grows moves the number there, not in a second copy here. */
.head-in{display:flex;align-items:center;gap:clamp(10px,3vw,34px);height:var(--head-bar)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:0 0 auto;min-height:44px}
.brand img{width:clamp(120px,15vw,168px);opacity:.94;height:auto}
.head-nav{display:flex;gap:24px;margin-left:8px}
.head-nav a{display:inline-flex;align-items:center;min-height:44px;font-family:var(--mono);font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fog);text-decoration:none}
.head-nav a:hover{color:var(--chalk)}

/* THE COMPACT NAV ROW — the same three links, one row down, under 1080.
   Hidden above it (the bar itself carries the nav there). `height` is the token
   the sticky header's total is computed from, so the two must stay equal. */
.head-sub{display:none;border-top:1px solid var(--line-soft);height:var(--head-sub)}
.head-sub-in{display:flex;align-items:center;gap:22px;height:100%;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.head-sub-in::-webkit-scrollbar{display:none}
.head-sub a{flex:0 0 auto;display:inline-flex;align-items:center;height:100%;white-space:nowrap;
  font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--fog);text-decoration:none;position:relative}
.head-sub a:hover{color:var(--chalk)}

/* THE ACTIVE SECTION — one 2px rule in the brand red under the current link.
   v2/ui.js (paintNav) sets aria-current during the chrome paint, so this is the
   only place the treatment is written and every page gets the same one. The
   ::after keeps the rule under the WORDS rather than at the bottom of a 44px
   touch target. */
.head-nav a{position:relative}
.head-nav a[aria-current],.head-sub a[aria-current]{color:var(--chalk)}
.head-nav a[aria-current]::after,.head-sub a[aria-current]::after{content:"";position:absolute;
  left:0;right:0;bottom:10px;height:2px;background:var(--ga-red)}
.head-sub a[aria-current]::after{bottom:8px}
/* The header's Account control is a button, not a nav link: it wears the same
   red rule as an inset edge. (account.css says the same thing for the account
   pages only; this rule is on every page, and they agree.) */
.site-head .btn[aria-current]{border-color:#586269;background:var(--ink-200);
  box-shadow:inset 0 -2px 0 var(--ga-red)}
.head-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.link-quiet{display:inline-flex;align-items:center;min-height:44px;font-family:var(--mono);font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fog-2);text-decoration:none;padding:0 10px;background:none;border:0;cursor:pointer}
.link-quiet:hover{color:var(--chalk)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-family:var(--mono);font-size:12px;
  letter-spacing:.14em;text-transform:uppercase;cursor:pointer;text-decoration:none;white-space:nowrap;
  border:1px solid var(--line);background:transparent;color:var(--chalk);padding:11px 18px;
  transition:background .22s var(--ease),color .22s var(--ease),border-color .22s var(--ease)}
.btn:hover{border-color:#586269;background:var(--ink-200)}
.btn--solid{background:var(--chalk);color:var(--ink-000);border-color:var(--chalk);font-weight:500}
.btn--solid:hover{background:#fff;color:var(--ink-000);border-color:#fff}
.btn-cart{display:inline-flex;align-items:center;gap:9px}
.btn-cart svg{width:15px;height:16px;stroke:currentColor;fill:none;stroke-width:1.3}
.cart-count{min-width:22px;height:22px;padding:0 5px;display:inline-grid;place-items:center;background:var(--ink-300);
  color:var(--chalk);font-size:12px;letter-spacing:.04em}
.cart-count[data-n="0"]{color:var(--fog);background:transparent;border:1px solid var(--line)}
.head-signedout{display:flex;align-items:center;gap:8px}
.head-signedin{display:none;align-items:center;gap:10px}
body.mode-in .head-signedout{display:none}
body.mode-in .head-signedin{display:flex}

/* ---------- hero ---------- */
.hero{position:relative;display:flex;align-items:flex-end;overflow:hidden;border-bottom:1px solid var(--line-soft);
  min-height:clamp(430px,58vh,616px)}
.hero-photo{position:absolute;top:0;right:0;bottom:0;left:max(40%, 100% - 900px);overflow:hidden}
.hero-frame{position:absolute;inset:0;animation:settle 9s var(--ease) both}
@keyframes settle{from{transform:scale(1.035)}to{transform:none}}
/* The owner's lab-side render (2026-08-23): the whole frame is usable — bench, people in Grey Area
   apparel, the HTLT shelves — so no crop math; cover the box and weight the framing toward the bench. */
.hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 46%;
  max-width:none;transform:none;filter:brightness(1.08) contrast(1.02) saturate(.96)}
.hero-fade{position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg, var(--ink-000) 0%, rgba(8,9,10,.88) 10%, rgba(8,9,10,.34) 30%, rgba(8,9,10,0) 52%),
    linear-gradient(180deg, rgba(8,9,10,.5) 0%, rgba(8,9,10,0) 20%, rgba(8,9,10,0) 68%, rgba(8,9,10,.55) 100%)}
.hero-in{position:relative;width:100%;max-width:var(--measure);margin-inline:auto;
  padding:clamp(46px,7vh,74px) var(--gut) clamp(38px,6vh,60px)}
.hero-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(16px,2.2vw,26px);align-items:end}
.hero-spine{align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:14px;padding-bottom:6px}
.hero-spine i{display:block;width:3px;flex:1;background:linear-gradient(180deg,transparent,var(--ga-red) 34%,var(--ga-red))}
.hero-spine span{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--mono);font-size:12px;
  letter-spacing:.24em;text-transform:uppercase;color:var(--fog-2)}
.hero-type{max-width:min(620px,46vw)}
.hero-line{overflow:hidden}
.hero-line span{display:block;font-family:var(--cond);font-weight:600;text-transform:uppercase;
  font-size:clamp(52px,6.6vw,104px);line-height:.86;letter-spacing:-.006em;
  animation:riseIn .95s var(--ease) both}
.hero-line:nth-child(1) span{animation-delay:.10s}
.hero-line:nth-child(2) span{animation-delay:.19s}
.hero-line:nth-child(3) span{animation-delay:.28s}
.hero-line--out span{color:transparent;-webkit-text-stroke:1.4px rgba(233,236,238,.9);font-weight:300;
  padding-left:.055em;margin-left:-.055em}
@keyframes riseIn{from{transform:translateY(104%)}to{transform:translateY(0)}}
.hero-sub{margin-top:clamp(16px,2.4vh,24px);font-size:clamp(15.5px,1.3vw,18px);color:var(--fog-2);max-width:32ch;
  animation:fadeUp 1s var(--ease) .46s both;text-shadow:0 1px 14px rgba(8,9,10,.8)}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:clamp(18px,2.6vh,26px);
  animation:fadeUp 1s var(--ease) .56s both}
.hero-jump{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-family:var(--mono);font-size:12px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--fog);text-decoration:none}
.hero-jump:hover{color:var(--chalk)}
body.mode-in .hero{display:none}

/* ---------- signed-in band ---------- */
.band{display:none;border-bottom:1px solid var(--line-soft);
  background:radial-gradient(120% 160% at 12% 0%, #14181c 0%, var(--ink-000) 62%)}
body.mode-in .band{display:block}
.band-in{padding-block:clamp(26px,4vw,44px)}
.band-top{display:flex;flex-wrap:wrap;align-items:flex-end;gap:18px 30px;justify-content:space-between}
.band-hello{font-family:var(--cond);font-size:clamp(30px,4vw,46px);font-weight:500}
.band-note{color:var(--fog);font-size:14.8px;max-width:40ch}
.doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:var(--line);
  border:1px solid var(--line);margin-top:26px}
.door{display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-height:116px;padding:16px 18px;
  background:var(--ink-050);border:0;text-align:left;cursor:pointer;color:var(--chalk);font:inherit;
  text-decoration:none;transition:background .22s var(--ease)}
.door:hover{background:var(--ink-200)}
.door b{font-family:var(--cond);font-weight:500;font-size:28px;letter-spacing:.01em;line-height:1}
.door-go{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--fog-2)}
.door-go svg{width:22px;height:10px;stroke:currentColor;fill:none;stroke-width:1.2}
.door--tool{background:linear-gradient(160deg,#171b1f,#101316)}
.band-sale{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;padding:14px 0;margin-top:26px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band-sale .mono{color:var(--sand);flex:0 0 auto}
.band-sale p{color:var(--fog-2);font-size:14.6px}
.band-sale b{color:var(--chalk);font-weight:500}

/* ---------- access panel ---------- */
.access{margin-top:clamp(30px,4vw,44px)}
.access-card{position:relative;background:linear-gradient(180deg,#14181b,#0e1113);border:1px solid var(--line);
  padding:clamp(22px,3vw,34px);display:grid;grid-template-columns:1fr auto 1fr;gap:clamp(20px,3vw,44px);align-items:start}
.access-card::before{content:"";position:absolute;inset:-1px auto auto -1px;width:96px;height:2px;background:var(--ga-red)}
.access-sep{width:1px;align-self:stretch;background:var(--line)}
.access h2{font-size:clamp(26px,3vw,34px);margin-bottom:8px}
.access p{color:var(--fog-2);max-width:46ch;margin-bottom:18px;font-size:14.8px}
body.mode-in .access,body.mode-in .rejoin{display:none}

/* ---------- sections ---------- */
.sec{padding-block:clamp(52px,7vw,92px)}
/* The home page's three in-page jumps land UNDER a sticky header, so each one
   needs the header's height as scroll margin — the same derivation the checkout
   sections and the account page's "How to pay" already use. It is `--head-h`,
   not `--head-bar`: below 1080 the compact nav row is part of what the header
   occupies, and without this the shelf heading sits behind it. */
#lab,#shelf,#how,#contact{scroll-margin-top:calc(var(--head-h) + 8px)}
.sec-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 30px;margin-bottom:24px}
.sec-head h2,.sec-head h1{font-size:clamp(30px,4.4vw,46px);text-transform:uppercase;letter-spacing:.01em}
.sec-head p{color:var(--fog);font-size:14.8px;max-width:46ch}

/* sale ladder strip */
.ladder{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;padding:14px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);margin-bottom:clamp(24px,3.4vw,36px)}
.ladder .mono{color:var(--sand);flex:0 0 auto}
.ladder p{color:var(--fog-2);font-size:14.8px}
.ladder b{color:var(--chalk);font-weight:500}

/* shared product furniture */
.pick{width:100%;min-height:42px;background:var(--ink-050);color:var(--chalk);border:1px solid var(--line);
  font-family:var(--mono);font-size:12px;letter-spacing:.08em;padding:0 34px 0 11px;cursor:pointer;border-radius:0;
  appearance:none;-webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--fog-2) 50%),linear-gradient(135deg,var(--fog-2) 50%,transparent 50%);
  background-position:calc(100% - 18px) 19px,calc(100% - 12px) 19px;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.pick:hover{border-color:#586269}
.price{font-size:16.5px;font-weight:500;letter-spacing:.01em}
.btn-add{display:inline-flex;align-items:center;justify-content:center;min-height:44px;position:relative;
  font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--chalk);background:transparent;border:1px solid var(--line);padding:11px 17px;cursor:pointer;
  transition:color .2s var(--ease),background .2s var(--ease),border-color .2s var(--ease)}
.btn-add:hover:not([disabled]){background:var(--chalk);color:var(--ink-000);border-color:var(--chalk)}
.btn-add[disabled]{opacity:.45;cursor:default;color:var(--fog-2)}
.btn-add.is-in{border-color:#4c565d;color:var(--sand)}

/* the note band that closes the signed-in grid */
.note-line{font-family:var(--cond);font-size:30px;line-height:1.02;color:var(--chalk)}
.note-sub{color:var(--fog);font-size:14px;line-height:1.5}

/* ---------- the search & sort bar ----------------------------------------
   A slim strip above a product grid, sticky directly under the header. It is
   deliberately NOT the legacy store toolbar of dropdowns: one field, one row of
   quiet chips and one segmented control, all in the v4 micro-type. The chips
   are square like every other control on this site — a rounded pill would be
   the only radius in the whole design language.

   `position:sticky` keeps it in the flow, so pinning it cannot move the grid
   underneath by a pixel. The sticky box is the HOST (`.cbar-host`, the element
   the page put in its markup), never the bar itself: a sticky element travels
   only inside its own parent's box, and a host sized to the bar is a parent
   with nowhere to travel. The host's parent is the section, which is why the
   signed-in home page puts the bar above the FIRST grid — it stays pinned
   across that grid while both are filtered. */
.cbar-host{position:sticky;top:var(--head-h);z-index:60;background:var(--ink-000);
  margin-bottom:clamp(18px,2.4vw,26px)}
.cbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  display:grid;gap:0}
/* ONE BAND, NOT THREE BOXES (owner, 2026-08-24: "black behind the buttons … could
   look more seamless"). The controls used to be separately bordered panels floating
   in 10-12px gaps, so the page ground showed through between them as a patchwork.
   They now share one surface and are divided by the same 1px seam the tile grid
   uses — search | sort on the first line, the chips as a second line of the same
   band. Nothing floats; the only filled shape is the chip that is actually on. */
.cbar-in{display:flex;align-items:stretch;gap:0;min-width:0}
.cbar-find{position:relative;display:flex;align-items:center;flex:1 1 240px;min-width:0;
  border:0;background:transparent;transition:background .2s var(--ease)}
/* focus and "a filter is running" are shown by the SURFACE, not by an outline —
   an outlined box inside a seamless band is the patchwork all over again. */
.cbar-find:focus-within{background:var(--ink-050)}
.cbar.is-on .cbar-find{background:var(--ink-050)}
.cbar.is-on .cbar-ico{stroke:var(--chalk-dim)}
.cbar-ico{width:15px;height:15px;flex:0 0 auto;stroke:var(--fog);fill:none;stroke-width:1.4;
  margin:0 10px 0 16px;transition:stroke .2s var(--ease)}
.cbar-find:focus-within .cbar-ico{stroke:var(--chalk-dim)}
.cbar-input{flex:1;min-width:0;min-height:46px;background:none;border:0;color:var(--chalk);
  font-family:var(--sans);font-size:15px;padding:10px 10px 10px 0;border-radius:0;outline:none}
.cbar-input::placeholder{color:var(--fog);opacity:1}
.cbar-input::-webkit-search-cancel-button,.cbar-input::-webkit-search-decoration{
  -webkit-appearance:none;appearance:none}
.cbar-x{flex:0 0 auto;width:44px;min-height:44px;background:none;border:0;color:var(--fog);
  font-family:var(--sans);font-size:21px;line-height:1;cursor:pointer;padding:0}
.cbar-x:hover{color:var(--chalk)}
/* the segmented sort: same band, seams only — its own scroll if it cannot fit,
   because the page must never scroll sideways because of it */
.cbar-sort{display:flex;flex:0 0 auto;max-width:100%;overflow-x:auto;scrollbar-width:none;
  border:0;background:transparent}
.cbar-sort::-webkit-scrollbar{display:none}
.cbar-seg{flex:0 0 auto;min-height:46px;padding:10px 14px;background:none;border:0;cursor:pointer;
  font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--fog);
  white-space:nowrap;border-left:1px solid var(--line);
  transition:color .2s var(--ease),background .2s var(--ease)}
.cbar-seg:hover{color:var(--chalk)}
.cbar-seg.is-on{background:var(--ink-300);color:var(--chalk);box-shadow:inset 0 -2px 0 var(--ga-red)}
/* the chips are the band's second line, divided by the same seam */
.cbar-foot{display:flex;align-items:stretch;gap:0;min-width:0;border-top:1px solid var(--line)}
.cbar-chips{display:flex;align-items:stretch;gap:0;flex:1 1 auto;min-width:0;
  overflow-x:auto;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 20px),transparent);
  mask-image:linear-gradient(90deg,#000 calc(100% - 20px),transparent)}
.cbar-chips::-webkit-scrollbar{display:none}
.cbar-chip{flex:0 0 auto;min-height:44px;padding:10px 16px;border:0;
  border-right:1px solid var(--line);
  background:transparent;color:var(--fog-2);font-family:var(--mono);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;cursor:pointer;white-space:nowrap;border-radius:0;
  transition:color .2s var(--ease),background .2s var(--ease)}
.cbar-chip:last-child{border-right:0}
.cbar-chip:hover{color:var(--chalk);background:var(--ink-050)}
/* the active filter is a lit SEGMENT of the band, not a white block sitting on it:
   the same family as the sort's own on-state, one step brighter, with the red rule
   the rest of the site uses to mean "this is the current one". */
.cbar-chip.is-on{background:var(--ink-300);color:var(--chalk);box-shadow:inset 0 -2px 0 var(--ga-red)}
/* Narrow: the band keeps its seams but stacks — search on its own line above the
   sort, because side by side the field is squeezed to nothing by four labels. */
@media (max-width:700px){
  .cbar-in{display:grid;grid-template-columns:1fr}
  .cbar-find{border-bottom:1px solid var(--line)}
  .cbar-sort{justify-content:flex-start}
  .cbar-seg:first-child{border-left:0}
}
/* the quiet count. Its height is reserved whether or not it says anything, so
   the grid does not step down the page the first time somebody types. */
.cbar-count{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;padding-left:14px;
  min-height:44px;color:#79838a;font-size:11px;
  letter-spacing:.12em;font-variant-numeric:tabular-nums}

/* -- the save heart -----------------------------------------------------------
   Over the photo's top-left corner on every tile (the wide tile's photo is its
   left column, so top-left works for both shapes). Outline = not saved,
   filled ink = saved. It exists only in signed-in DOM (ui.js draws it only
   when the page passes `wish`), so the public shelf ships nothing. */
.tile-heart{position:absolute;top:6px;left:6px;z-index:3;width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;background:none;border:0;
  cursor:pointer;padding:0}
.tile-heart svg{width:21px;height:21px;fill:none;stroke:#4a5258;stroke-width:1.8;
  transition:stroke .2s var(--ease),fill .2s var(--ease),transform .15s var(--ease)}
.tile-heart:hover svg{stroke:#161a1d;transform:scale(1.08)}
.tile-heart[aria-pressed="true"] svg{fill:#161a1d;stroke:#161a1d}
/* the PDP's labelled sibling of the same control */
.pdp-save{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 16px;
  background:none;border:1px solid var(--line);color:var(--fog-2);cursor:pointer;
  font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  transition:color .2s var(--ease),border-color .2s var(--ease)}
.pdp-save svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.pdp-save:hover{color:var(--chalk);border-color:#586269}
.pdp-save[aria-pressed="true"]{color:var(--chalk)}
.pdp-save[aria-pressed="true"] svg{fill:var(--chalk);stroke:var(--chalk)}
/* the header's icon doors beside the cart: the heart, and the calculator for
   grant holders. One size, one stroke — they read as one family. */
.btn-wish{display:inline-flex;align-items:center;justify-content:center;width:46px;padding:10px 0}
.btn-wish svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}

/* what a filtered grid shows when nothing matched */
.grid-none{border:1px solid var(--line);background:var(--ink-050);
  padding:clamp(22px,3vw,34px);display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px}
.grid-none-line{font-family:var(--cond);font-size:clamp(22px,2.6vw,30px);line-height:1.06;
  text-transform:uppercase;color:var(--chalk-dim);overflow-wrap:anywhere;min-width:0}
.grid-none .btn{flex:0 0 auto;margin-left:auto}
.grid-none-quiet{color:var(--fog);padding:16px 0 2px}

@media (max-width:620px){
  .cbar-find{flex:1 1 100%}
  .cbar-sort{width:100%}
  .cbar-seg{flex:1 1 auto;padding:10px 8px;letter-spacing:.06em}
  .grid-none .btn{margin-left:0;width:100%}
}

/* ---------- catalogue grid ----------------------------------------------
   B's grid: gapless, one hairline seam, edge to edge, pale plate under every
   photograph. The head above it is A's (.sec-head + .ladder). */
.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);
  border:1px solid var(--line)}
.cat-grid:empty{display:none}
.tile{position:relative;background:var(--ink-100);display:flex;flex-direction:column;min-width:0;
  transition:background .25s var(--ease)}
.tile:hover{background:var(--ink-200)}
/* THE FRAME (owner, 2026-08-24, permanent): every photograph in this catalog is
   SQUARE — 800x800 singles, 1200x1200 stack composites — so every tile shows it
   the same way: a square white frame, the photo contained inside a fixed 18px
   cushion. Nothing is ever cropped, nothing is guessed per image, and a new photo
   only needs to be square-ish to look identical to the rest. The photo stays out
   of flow (position:absolute) so its pixel size can never influence layout — the
   lesson of the KLOW composite. */
.tile-shot{position:relative;background:#fff;aspect-ratio:1/1;display:flex;
  align-items:center;justify-content:center;min-width:0;
  padding:18px;overflow:hidden;isolation:isolate;transition:background .25s var(--ease)}
.tile-shot img{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;
  padding:18px;object-fit:contain;mix-blend-mode:multiply;display:none;
  transition:transform .5s var(--ease)}
.tile-shot img.is-on{display:block}
.tile:hover .tile-shot{background:#f4f5f7}
.tile:hover .tile-shot img{transform:scale(1.035)}
.tile-copy{padding:16px clamp(14px,1.6vw,20px) 18px;display:flex;flex-direction:column;gap:9px;flex:1}
.tile-kind{color:var(--fog)}
/* NEVER split a word mid-character (owner, 2026-08-24: "BACTERIOSTATI / C").
   `anywhere` breaks at the first character that does not fit even when a space is
   available; `break-word` wraps at word boundaries and only splits a word that
   cannot fit a line on its own — the behaviour that is right for every name,
   however long, without anyone tuning a size per product. */
.tile-name{font-size:22px;font-weight:500;line-height:1.04;text-transform:uppercase;color:var(--chalk-dim);
  overflow-wrap:break-word;text-wrap:balance;transition:color .2s var(--ease)}
.tile:hover .tile-name{color:var(--chalk)}
.tile-blurb{color:var(--fog-2);font-size:14.8px;max-width:44ch}
.tile-count{color:#79838a;font-size:11px}
.tile-foot{margin-top:auto;padding-top:14px;display:flex;flex-direction:column;gap:12px}
.tile-nums{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  border-top:1px solid var(--line-soft);padding-top:10px}
.tile-nums .price{font-family:var(--mono);font-size:16px;font-weight:500;color:var(--chalk);
  font-variant-numeric:tabular-nums}
.tile-nums .was{font-family:var(--mono);font-size:12px;color:var(--fog);text-decoration:line-through;margin-left:8px}
.tile-nums .size{text-align:right;white-space:nowrap}
.tile .btn-add{width:100%}
.pickwrap{position:relative}
.tile-flag{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--sand)}
.tile-flag[data-stock="out"]{color:#9aa2a8}
.tile--out .tile-shot{filter:grayscale(1);opacity:.5}
.tile--out .tile-name{color:var(--fog)}

/* the photo placeholder: a plate with the monogram, never an empty box */
.tile-shot--none{background:linear-gradient(168deg,#e8eaee,#d6dade);flex-direction:column;gap:10px}
.tile-shot--none img{position:static;inset:auto;width:44%;height:auto;padding:0;mix-blend-mode:normal;opacity:.26;display:block}
.tile-shot--none span{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#6d757c}
.tile:hover .tile-shot--none img{transform:none}

.tile-wide{grid-column:1/-1;flex-direction:row;align-items:stretch}
/* min-width:0 is LOAD-BEARING. A flex item's automatic minimum size is its
   content's min-content width, and for a replaced element that is the image's own
   intrinsic width — so a big source photo (a bundle's four-vial composite, 4000px
   wide) blew straight past `flex-basis:42%` and squeezed the copy column into a
   sliver that set the product name one letter per line. The basis is the width;
   the picture is cropped to it. */
.tile-shot-wide{min-width:0;aspect-ratio:1/1;min-height:0;
  border-right:1px solid var(--line)}
/* NO container-type here. `container-type:inline-size` implies `contain:inline-size`,
   which stops this column sizing to its contents — the price row and the Add button
   then spill out of the tile (owner saw exactly that). The display name keeps its
   original scale; the mid-word split it was blamed for is fixed by `break-word` on
   .tile-name above, which is the actual cause. */
.tile-wide .tile-copy{padding:clamp(22px,3vw,40px);justify-content:center;gap:13px;flex:1 1 58%;min-width:0}
.tile-name-wide{font-size:clamp(32px,3.8vw,50px);line-height:.98;color:var(--chalk)}
/* wrap rather than overflow: a narrow copy column puts the button under the price
   instead of pushing it through the tile's edge */
.tile-wide .tile-foot{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:16px 24px;margin-top:22px;padding-top:0}
.tile-wide .tile-nums{flex:1 1 160px;min-width:0;border-top:1px solid var(--line)}
.tile-wide .tile-nums .price{font-size:19px}
.tile-wide .btn-add{width:auto;min-width:min(180px,100%);flex:0 1 auto}
.tile-wide .pickwrap{max-width:320px}

/* placeholders / notes live in the same grid: same seams, dark ground */
.tile-shot--empty{background:linear-gradient(168deg,#1c2126,#101315)}
.tile:hover .tile-shot--empty{background:linear-gradient(168deg,#20262c,#101315)}
.tile-shot--empty img{width:44%;height:auto;mix-blend-mode:normal;opacity:.45;display:block}
.tile:hover .tile-shot--empty img{transform:none}
/* closes a short final row so the seam colour never fills a whole empty cell */
.tile--filler{background:var(--ink-100)}
.tile--filler:hover{background:var(--ink-100)}
.tile--note{grid-column:1/-1;background:var(--ink-050)}
.tile--note:hover{background:var(--ink-050)}
.tile--note .note-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(20px,3vw,52px);padding:clamp(20px,2.6vw,30px) clamp(14px,1.6vw,20px)}
.tile--note .note-in>div{display:grid;gap:8px;align-content:start}
.tile--note .note-in>div+div{border-left:1px solid var(--line);padding-left:clamp(20px,3vw,52px)}

/* ---------- the locked shelf / notice panel ----------------------------
   Not an error and not an empty grid: a quiet, on-brand panel that says what
   to do next. Used for the anonymous browse-gate, for a catalogue the SDK
   could not reach, and for a portal a viewer may not see. */
.panel-quiet{border:1px solid var(--line);background:linear-gradient(180deg,#14181b,#0e1113);
  padding:clamp(26px,4vw,44px);display:grid;gap:14px;justify-items:start;position:relative}
.panel-quiet::before{content:"";position:absolute;inset:-1px auto auto -1px;width:96px;height:2px;background:var(--ga-red)}
.panel-quiet h3{font-size:clamp(26px,3.2vw,36px);text-transform:uppercase}
.panel-quiet p{color:var(--fog-2);max-width:52ch;font-size:15px}
.panel-quiet .cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.panel-loading{color:var(--fog);font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  padding:32px 0}

/* the research-use statement under a signed-in grid (copy file, `ruo-statement`) */
.ruo-note{margin-top:clamp(22px,3vw,34px);border-top:1px solid var(--line);padding-top:16px}
.ruo-note .note-sub{max-width:92ch}

/* ---------- the product page (/supplements/<slug>, /item/<slug>) ----------
   Same furniture as a tile, at page scale: the pale plate under the photograph,
   the mono picker, the same Add button. One renderer draws both templates
   (v2/ui.js productPage). */
.pdp{display:grid;gap:clamp(22px,3vw,34px)}
.pdp-back{display:inline-flex;align-items:center;gap:9px;min-height:44px;color:var(--fog);text-decoration:none;width:fit-content}
.pdp-back:hover{color:var(--chalk)}
/* THE STRUCTURAL CRUMB, top-left of every page below home. Same element, same
   class, same arrow as the product page's and the account pages' — one pattern,
   written once in v2/ui.js (paintCrumb) and inserted at the top of the page's
   first visible section, which is exactly where the account pages already put
   theirs by hand. `[data-crumb]` is only the marker that says "ui.js put this
   one here", so a second paint replaces rather than repeats it. */
[data-crumb]{margin-bottom:4px}

/* THE PORTAL CHIP ROW — the viewer's OWN portals, on a portal page.
   Drawn by v2/portal.js from the groups the server returned for this viewer and
   never present in the served markup (principle 3: a portal's name is signed-in
   content). Its current treatment is the account sub-nav's, which is the same
   idea one level down. */
.pnav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:clamp(18px,2.4vw,26px)}
.pnav-a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;
  border:1px solid var(--line);background:none;color:var(--fog);
  font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  text-decoration:none;transition:border-color .22s var(--ease),color .22s var(--ease),background .22s var(--ease)}
.pnav-a:hover{border-color:#586269;color:var(--chalk)}
.pnav-a[aria-current]{background:var(--ink-200);color:var(--chalk);border-color:#586269;
  box-shadow:inset 0 -2px 0 var(--ga-red)}
.pdp-top{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:1px;
  background:var(--line);border:1px solid var(--line)}
.pdp-media{background:var(--ink-100);display:flex;flex-direction:column}
.pdp-shot{flex:1;aspect-ratio:1/1}
.pdp-shot img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pdp-shot.tile-shot--none img{mix-blend-mode:normal}
.pdp-thumbs{display:flex;flex-wrap:wrap;gap:1px;background:var(--ink-100);border-top:1px solid var(--line)}
.pdp-thumb{width:74px;height:74px;padding:6px;border:0;background:var(--plate);cursor:pointer;
  display:grid;place-items:center;position:relative}
.pdp-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pdp-thumb.is-on::after{content:"";position:absolute;inset:auto 0 0 0;height:2px;background:var(--ga-red)}
.pdp-thumb:hover{background:var(--plate-2)}
.pdp-copy{background:var(--ink-100);padding:clamp(20px,2.6vw,34px);display:flex;flex-direction:column;gap:12px;
  justify-content:center}
.pdp-name{font-size:clamp(30px,4vw,48px);line-height:1.0;text-transform:uppercase;color:var(--chalk)}
.pdp-pick{display:grid;gap:6px;max-width:340px;margin-top:4px}
.pdp-picklabel{color:var(--fog)}
.pdp-nums{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap;
  border-top:1px solid var(--line-soft);padding-top:12px;margin-top:4px}
.pdp-nums .price{font-family:var(--mono);font-size:22px;color:var(--chalk);font-variant-numeric:tabular-nums}
.pdp-nums .was{font-family:var(--mono);font-size:13px;color:var(--fog);text-decoration:line-through;margin-left:10px}
/* The quantity ladder, one quiet line under the price. `text-transform:none`
   because these are prices, not a label: .mono would shout "$42.75 EACH". */
.pdp-tiers{margin-top:-4px;color:var(--sand);font-size:12px;letter-spacing:.06em;
  text-transform:none;line-height:1.6;font-variant-numeric:tabular-nums}
.pdp-buy{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:4px}
.pdp-qty{margin-top:0}
.pdp-qty button[disabled]{opacity:.4;cursor:default}
.pdp-add{flex:1;min-width:180px}
.pdp-fine{margin-top:2px}
.pdp-body{display:grid;gap:0}
.pdp-desc{border-top:1px solid var(--line);padding-top:clamp(18px,2.4vw,26px)}
/* the OWNER's description, rendered as-is through the site's sanitiser */
.prose-pdp{color:var(--fog-2);font-size:15.2px;line-height:1.68;max-width:78ch;overflow-wrap:anywhere}
.prose-pdp>*+*{margin-top:14px}
.prose-pdp h1,.prose-pdp h2,.prose-pdp h3,.prose-pdp h4{font-family:var(--cond);color:var(--chalk);
  text-transform:uppercase;line-height:1.06;margin-top:26px}
.prose-pdp h1,.prose-pdp h2{font-size:clamp(22px,2.6vw,30px)}
.prose-pdp h3,.prose-pdp h4{font-size:20px}
.prose-pdp strong,.prose-pdp b{color:var(--chalk-dim);font-weight:500}
.prose-pdp ul,.prose-pdp ol{padding-left:22px;display:grid;gap:6px}
.prose-pdp li{margin:0}
.prose-pdp a{color:var(--chalk)}
.prose-pdp img{margin-top:14px}
.prose-pdp table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.prose-pdp td,.prose-pdp th{border:1px solid var(--line);padding:8px 10px;text-align:left;font-size:14px}
.pdp-body .ruo-note{margin-top:clamp(22px,3vw,30px)}
/* the four other families under the page */
.pdp-related{padding-top:clamp(40px,5vw,60px)}
.pdp-related .sec-head{margin-bottom:20px}
.pdp-related .sec-head h2{font-size:clamp(24px,3vw,34px)}
/* four families, one row — the shelf's 3-up rhythm would leave this strip a
   whole empty row, and the grid is gapless, so an empty cell is a hole. */
.pdp-related .cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1080px){.pdp-related .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the tile's link surfaces: photo + name only, so Add never navigates */
.tile-shot-a{display:block;text-decoration:none;min-width:0}
/* The picture's flex child is this ANCHOR, not `.tile-shot` inside it, so the wide
   tile's 42% has to live here. When it did not, the anchor sized to its content:
   a huge source image dragged it to 81% of the tile, and once the image went
   out of flow it collapsed to its padding. Sized here, neither can happen. */
.tile-wide > .tile-shot-a{flex:0 0 42%;min-width:0;display:flex}
.tile-wide > .tile-shot-a > .tile-shot{flex:1 1 auto;width:100%;height:100%}
.tile-name-a{color:inherit;text-decoration:none}
.tile-name-a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- how ordering works ---------- */
.flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.flow-i{background:var(--ink-050);padding:clamp(20px,2.4vw,28px)}
.flow-i .mono{color:var(--sand)}
.flow-i h3{font-size:25px;margin:12px 0 8px}
.flow-i p{color:var(--fog);font-size:14.6px;max-width:40ch}

/* ---------- about + contact ---------- */
.two{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(28px,5vw,72px);align-items:start}
.about p{color:var(--fog-2);max-width:52ch;margin-top:14px}
.form{max-width:560px;display:grid;gap:12px;margin-top:18px}
.field{display:grid;gap:6px}
.field label{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--fog)}
.field input,.field textarea{background:var(--ink-100);border:1px solid var(--line);color:var(--chalk);
  font-family:var(--sans);font-size:15px;padding:12px 13px;width:100%;border-radius:0;min-height:46px}
.field textarea{min-height:104px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#7d868c}
.field input:focus,.field textarea:focus{outline:2px solid var(--chalk);outline-offset:2px;border-color:transparent}
.reach{display:grid;gap:2px;margin-top:20px}
.reach a{display:inline-flex;align-items:center;min-height:42px;color:var(--chalk);text-decoration:none;
  border-bottom:1px solid var(--line);width:fit-content;font-size:16px}
.reach a:hover{border-color:var(--fog-2)}

/* ---------- rejoin ---------- */
.rejoin{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:radial-gradient(90% 220% at 22% 50%, #14181b 0%, var(--ink-000) 70%)}
.rejoin-in{padding-block:clamp(40px,6vw,64px);display:flex;flex-wrap:wrap;align-items:center;
  justify-content:space-between;gap:20px 34px}
.rejoin h2{font-size:clamp(28px,4vw,42px);text-transform:uppercase}
.rejoin p{color:var(--fog);margin-top:8px;max-width:44ch;font-size:14.8px}
.rejoin .cta{display:flex;gap:10px;flex-wrap:wrap}

/* ---------- footer ---------- */
.site-foot{padding-block:34px 42px;border-top:1px solid var(--line-soft);background:var(--ink-050)}
.foot-in{display:flex;flex-wrap:wrap;gap:14px 34px;align-items:center;justify-content:space-between}
.foot-links{display:flex;flex-wrap:wrap;gap:2px 22px}
.foot-links a{display:inline-flex;align-items:center;min-height:42px;font-family:var(--mono);font-size:12px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--fog);text-decoration:none}
.foot-links a:hover{color:var(--chalk)}
/* the calculator link's host: `contents` so an empty host adds no gap */
.foot-links [data-foot-tool]{display:contents}
.foot-legal{font-family:var(--mono);font-size:12px;letter-spacing:.11em;text-transform:uppercase;color:#9aa3a9}
.foot-ruo{margin-top:14px;color:var(--fog);font-size:13px;line-height:1.5;max-width:80ch}
/* The colophon, bottom right, with the connectivity dot before it. Three
   states, NO RED — the line says who runs the store, not that something is
   wrong. The state itself is derived passively in v2/data.js. */
.foot-bottom{display:flex;justify-content:flex-end;margin-top:18px}
.foot-status{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:12px;
  letter-spacing:.11em;text-transform:uppercase;color:#9aa3a9}
.net-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:#5f9e6b;
  box-shadow:0 0 0 3px rgba(95,158,107,.14)}
[data-net="retry"] .net-dot{background:var(--sand);box-shadow:0 0 0 3px rgba(214,201,174,.16)}
[data-net="down"] .net-dot{background:#6b767d;box-shadow:0 0 0 3px rgba(107,118,125,.14);
  animation:netPulse 1.9s ease-in-out infinite}
@keyframes netPulse{0%,100%{opacity:.34}50%{opacity:1}}

/* ---------- cart drawer ---------- */
.scrim{position:fixed;inset:0;background:rgba(4,5,6,.62);backdrop-filter:blur(2px);opacity:0;visibility:hidden;
  transition:opacity .34s var(--ease),visibility .34s;z-index:130}
body.cart-open .scrim{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,92vw);z-index:140;display:flex;flex-direction:column;
  background:linear-gradient(180deg,#171a1d 0%, #131619 42%, #101316 100%);
  border-left:1px solid var(--line);transform:translateX(101%);
  transition:transform .38s var(--ease);box-shadow:-30px 0 60px rgba(0,0,0,.5)}
body.cart-open .drawer{transform:none}
.drawer::before{content:"";position:absolute;top:0;left:-1px;width:2px;height:78px;background:var(--ga-red)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 16px;
  border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:30px;text-transform:uppercase}
.drawer-head .mono{margin-top:2px;color:var(--fog)}
.icon-btn{background:transparent;border:1px solid var(--line);color:var(--fog-2);width:44px;height:44px;cursor:pointer;
  display:grid;place-items:center;font-size:16px;font-family:var(--sans);line-height:1;flex:0 0 auto}
.icon-btn:hover{color:var(--chalk);border-color:#586269}
/* ---------- the drawer's two columns ----------
   Below 1024 the drawer is one column: the lines scroll and the money sits
   under them as a bar at the drawer's bottom edge, so the Total and Check out
   are reachable in the middle of a long cart instead of only at the end of it.
   At 1024 and up the drawer widens and splits — lines LEFT (that column scrolls
   on its own), money RIGHT in a rail that keeps the total and the button
   against the bottom however far the rows above them run. */
.drawer-in{flex:1;min-height:0;display:flex;flex-direction:column}
.drawer-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:4px 20px 16px}
.drawer-rail{flex:0 0 auto;min-height:0;display:flex;flex-direction:column;
  border-top:1px solid var(--line);background:rgba(9,11,12,.75)}
/* `align-content:start` matters: as a flex child filling the rail, this grid
   would otherwise stretch its rows and the rung box and the totals would grow
   to fill the column with air between them. */
.drawer-rail-scroll{display:grid;align-content:start;gap:14px;padding:16px 20px 0;max-height:36vh;overflow-y:auto}
.drawer-pin{display:grid;gap:12px;padding:14px 20px 20px}
.totals--pin .tot{font-size:17px}
.empty{padding:44px 0;display:grid;gap:10px}
.empty h3{font-size:26px;color:var(--fog-2)}
.empty p{color:var(--fog);font-size:14.6px;max-width:32ch}
.line{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:14px;padding:16px 0;
  border-bottom:1px solid var(--line-soft);animation:lineIn .4s var(--ease) both}
@keyframes lineIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.line-tile{position:relative;width:74px;height:74px;background:#fff;overflow:hidden}
.line-tile::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(118% 92% at 50% 10%, rgba(255,255,255,0) 0%, rgba(122,111,94,.10) 52%, rgba(46,41,33,.34) 100%)}
.line-tile img{width:100%;height:100%;object-fit:contain}
.line-name{font-family:var(--cond);font-size:20px;line-height:1.08;font-weight:500}
.line-sub{margin-top:3px}
/* a line the server excluded from the totals: struck through, with its reason,
   never a normal priced row the sum below it disagrees with */
.line--gone .line-tile{filter:grayscale(1);opacity:.45}
.line--gone .line-name{color:var(--fog)}
.line--gone .line-right .price{text-decoration:line-through;color:var(--fog)}
.line-gone{margin-top:4px;color:var(--sand);font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);margin-top:10px}
/* 44px, like every other control on this site: these two are now on a full page
   (/cart) and not only in the drawer, and a minus/plus pair is the easiest thing
   on a phone to hit by one. */
.qty button{width:44px;height:44px;background:transparent;border:0;color:var(--fog-2);cursor:pointer;font-size:15px;
  font-family:var(--sans);line-height:1}
.qty button:hover{color:var(--chalk);background:var(--ink-200)}
.qty span{min-width:30px;text-align:center;font-family:var(--mono);font-size:13px}
/* The quantity tier the SERVER applied: the listing's own price struck, the
   quoted one beside it, and the reason named — an unexplained struck figure
   reads as a sale the store is not running. */
.line-money{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.line-was{font-family:var(--mono);font-size:12px;color:var(--fog);text-decoration:line-through}
.line-tier{margin-top:4px;color:var(--sand);font-size:11px;letter-spacing:.1em}
.line-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:8px}
.line-remove{display:inline-flex;align-items:center;min-height:44px;background:none;border:0;color:#9aa2a8;
  font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;padding:2px}
.line-remove:hover{color:var(--chalk)}
.rung{display:grid;gap:8px;background:rgba(214,201,174,.06);border:1px solid rgba(214,201,174,.18);padding:12px 14px}
.rung:empty{display:none}
.rung p{font-size:14px;color:var(--sand)}
.rung-track{height:3px;background:var(--ink-300);position:relative;overflow:hidden}
.rung-track i{position:absolute;inset:0 auto 0 0;width:0;background:var(--sand);transition:width .45s var(--ease)}
.totals{display:grid;gap:6px}
.tot{display:flex;justify-content:space-between;align-items:baseline;font-size:15.5px;gap:14px}
.tot span:last-child{font-weight:500;white-space:nowrap}
.tot--muted{color:var(--fog);font-size:14px}
.drawer-cta{display:grid;gap:8px}
.drawer-cta .btn--solid{width:100%;padding:15px}
.drawer-cta .btn-keep{width:100%;border-color:transparent;color:var(--fog-2)}
.drawer-cta .btn-keep:hover{color:var(--chalk);background:transparent;border-color:var(--line)}
/* "View full cart" — the third choice in this stack and it looks like it: the
   quiet link treatment, centred, no border. */
.drawer-full{justify-content:center;width:100%}
.fine{color:#9aa2a8;font-size:13px;line-height:1.55}
.drawer-err{color:#f3b8ba;font-size:13.5px;line-height:1.5}

/* ---------- reveal (scroll-in) ----------
   Armed by v2/ui.js the instant before it starts observing, never by `.has-js`:
   a page whose scripts fail to load must stay READABLE, not fade to nothing. */
.reveal-on [data-reveal]{opacity:0;transform:translateY(14px)}
.reveal-on [data-reveal].is-in{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease)}

/* ---------- responsive ---------- */
/* The two-column drawer. 740px is wide enough for a 74px thumbnail, a real
   product name and a stepper on the left with a 300px money rail beside it; any
   narrower and the left column starts wrapping names that already fit today. */
@media (min-width:1024px){
  .drawer{width:min(740px,94vw)}
  /* Equal columns (owner, 2026-08-24): the lines and the money each take half the
     drawer. `min-width:0` on both so a long product name shrinks its own column
     instead of pushing the rail narrower than its half. */
  .drawer-in{flex-direction:row;align-items:stretch}
  .drawer-body{border-right:1px solid var(--line);flex:1 1 50%;min-width:0}
  .drawer-rail{flex:1 1 50%;width:auto;min-width:0;border-top:0;overflow-y:auto}
  .drawer-rail-scroll{max-height:none;overflow:visible;flex:1 1 auto;padding-bottom:4px}
  /* the total and the button hold the bottom of the rail however long it runs */
  .drawer-pin{position:sticky;bottom:0;padding-top:16px;
    background:linear-gradient(180deg, rgba(15,18,21,0) 0%, rgba(15,18,21,.95) 20%, rgba(15,18,21,.99) 100%)}
  /* An EMPTY cart keeps exactly the drawer it has today: one column, one width.
     A 740px drawer with an empty list and a rail of nothing beside it is a
     layout answering a question the shopper has not asked yet. */
  .drawer.is-empty{width:min(440px,92vw)}
  .drawer.is-empty .drawer-in{flex-direction:column}
  .drawer.is-empty .drawer-body{border-right:0}
  .drawer.is-empty .drawer-rail{flex:0 0 auto;width:auto;border-top:1px solid var(--line)}
  .drawer.is-empty .drawer-pin{position:static;background:none}
}
@media (max-width:1080px){
  /* The bar has no room for the nav beside the brand and the three controls on
     the right — so the nav MOVES, it does not disappear. `.head-nav{display:none}`
     alone is what left every phone and small tablet with a header that could only
     go home, sign in or open the cart. */
  .head-nav{display:none}
  .head-sub{display:block}
  :root{--head-sub:42px}
  .two{grid-template-columns:1fr}
}
@media (max-width:900px){
  .flow{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile-wide > .tile-shot-a{flex-basis:46%}
  .tile-wide .btn-add{min-width:146px}
  .tile-wide .tile-foot{gap:16px}
}
@media (max-width:860px){
  .access-card{grid-template-columns:1fr;gap:24px}
  .access-sep{width:auto;height:1px}
  .hero{display:flex;flex-direction:column;min-height:0}
  .hero-in{order:1;padding-top:clamp(30px,5vh,44px);padding-bottom:clamp(26px,4vh,34px)}
  .hero-grid{grid-template-columns:1fr}
  .hero-spine{flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:0 0 14px}
  .hero-spine i{width:auto;height:2px;flex:0 0 34px;background:var(--ga-red)}
  .hero-spine span{writing-mode:horizontal-tb;transform:none}
  .hero-type{max-width:none}
  .hero-sub{max-width:36ch;text-shadow:none}
  .hero-photo{order:2;position:relative;left:auto;width:100%;aspect-ratio:16/9.6;border-top:1px solid var(--line-soft)}
  .hero-fade{background:linear-gradient(180deg, rgba(8,9,10,.42) 0%, rgba(8,9,10,0) 26%, rgba(8,9,10,0) 74%, rgba(8,9,10,.42) 100%)}
  :root{--head-bar:60px}
}
@media (max-width:860px){
  .pdp-top{grid-template-columns:1fr}
  .pdp-shot{aspect-ratio:4/3}
}
@media (max-width:620px){
  .sec-head h2,.sec-head h1{font-size:30px}
  .pdp-name{font-size:28px}
  .pdp-add{width:100%;flex:1 0 100%;min-width:0}
  .pdp-thumb{width:60px;height:60px}
  .pdp-pick{max-width:none}
  .doors{grid-template-columns:repeat(2,minmax(0,1fr))}
  .door{min-height:0;gap:12px;padding:14px 15px}
  .door b{font-size:24px}
  .tile-copy{padding:13px 12px 15px;gap:8px}
  .tile-name{font-size:19px}
  .tile-nums{flex-direction:column;align-items:flex-start;gap:3px}
  .tile-nums .size{text-align:left}
  .tile-wide{flex-direction:column}
  .tile-wide > .tile-shot-a{flex:none;width:100%}
  .tile-shot-wide{width:100%;aspect-ratio:1/1;min-height:0;border-right:0;
    border-bottom:1px solid var(--line)}
  .tile-wide .tile-foot{flex-direction:column;align-items:stretch;gap:14px;margin-top:16px}
  .tile-wide .btn-add{width:100%;min-width:0}
  .tile-wide .pickwrap{max-width:none}
  .tile--note .note-in{grid-template-columns:1fr;gap:24px}
  .tile--note .note-in>div+div{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:24px}
}
@media (max-width:560px){
  .head-in{gap:4px}
  .brand img{width:70px}
  .cart-label{display:none}
  .head-signedout{gap:0}
  .head-right{gap:4px}
  .head-in .btn,.link-quiet,.head-nav a{white-space:nowrap;flex:0 0 auto}
  .head-in .btn{padding:10px 9px;letter-spacing:.03em}
  .btn-cart{padding:10px 8px;gap:6px}
  .link-quiet{padding:0 6px;letter-spacing:.03em}
  .hero-cta{gap:8px}
  .hero-cta .btn{flex:1 1 auto}
  .hero-photo{aspect-ratio:16/8.8}
  .hero-in{padding-bottom:22px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-delay:0ms !important;transition-duration:.001ms !important}
  .hero-frame{animation:none}
  /* An infinite keyframe at .001ms is not "off", it is a strobe. The dot keeps
     its colour and stops moving. */
  [data-net="down"] .net-dot{animation:none !important;opacity:1}
  .reveal-on [data-reveal]{opacity:1;transform:none}
}
