/* ============================================================ 60 m — THE PRODUCTS
   The client's "island — it's like a black section". Two SKUs as full
   editorial bands, not two matching cards in a grid. */
.td-canopy__head { max-width: 62ch; }
.td-canopy__head .td-body { margin-top: var(--st-6); }

.td-range {
  display: grid; gap: clamp(48px, 7vw, 104px);
  margin-top: clamp(56px, 7vw, 104px);
}
.td-sku__inner {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--td-line-dim);
}
.td-sku--jm .td-sku__inner { direction: rtl; }
.td-sku--jm .td-sku__inner > * { direction: ltr; }

.td-sku__media img {
  margin-inline: auto;
  height: clamp(260px, 34vw, 460px);
  width: auto;
}
/* Joint + Muscle has no photography yet. The well carries the emblem in
   the SKU's own coral rather than a stand-in shot of the other bottle —
   and it carries no frame, because an empty bordered rectangle reads as a
   broken image where a mark standing in open water reads as a mark. */
.td-sku__media--pending {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--st-6);
  min-height: clamp(220px, 26vw, 340px);
}
.td-sku__media--pending .td-squiggle { color: var(--td-coral); }
.td-sku__media--pending figcaption {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--td-coral);                                   /* 7.60:1 */
}

.td-sku__name {
  font-family: var(--st-font-ui);
  font-weight: var(--st-fw-med);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.028em;
  color: var(--st-on-dark);
}
.td-sku__desc {
  margin-top: var(--st-6);
  font-size: var(--st-size-body-lg);
  line-height: 1.6;
  color: var(--st-on-dark-body);                            /* 8.94:1 */
  max-width: 52ch;
}
.td-sku__marks {
  display: flex; flex-wrap: wrap; gap: var(--st-2) var(--st-6);
  margin-top: var(--st-6);
  font-size: .8rem;
  color: var(--st-on-dark);
}
.td-sku__marks li { display: flex; align-items: center; gap: var(--st-3); }
.td-sku__marks li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; flex: none;
  background: var(--st-glow);
}
.td-sku--jm .td-sku__marks li::before { background: var(--td-coral); }

.td-sku__spec {
  margin-top: var(--st-6);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--st-glow);                                    /* 10.26:1 */
}
.td-sku--jm .td-sku__spec { color: var(--td-coral); }

.td-sku__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-6);
  margin-top: var(--st-8);
}

.td-range__note {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--st-6);
  border-top: 1px solid var(--td-line-dim);
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--st-on-dark-body);
}

/* ============================================================ 200 m — WHAT'S INSIDE
   The replacement for the wall of words. Two displays, one control.
   Nothing is ever hidden: choosing a theme MARKS, it does not filter. */
.td-column__head { max-width: 62ch; }
.td-column__head .td-body { margin-top: var(--st-6); }

.td-inside { margin-top: clamp(44px, 5vw, 72px); }

/* the theme control is one instrument, not six scattered pills. It
   scrolls inside itself on narrow screens rather than wrapping into a
   broken second row — the page itself never scrolls sideways.

   The selected chip used to be a solid mint block. At this size that
   block was the loudest object in a section whose whole argument is
   restraint, and it read as a button waiting to be pressed rather than
   as a state. It is now a lit chip: mint type on a mint wash inside a
   mint hairline, which is the same language the marked ledger rows and
   the liquid in the glass already speak. */

/* hairlines separate two quiet neighbours and get out of the way as soon
   as either side lights up — a divider against a lit chip is a seam */

.td-inside__status {
  margin-top: var(--st-6);
  font-size: .74rem; letter-spacing: .06em;
  color: var(--st-glow);                                    /* 10.26:1 */
  min-height: 2.4em;
}

/* the two halves of the label's own ingredient panel, side by side under
   the dose — seven and seven, which is how the bottle states it */
.td-inside__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}

.td-ledger__h {
  font-size: .72rem; font-weight: var(--st-fw-med);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--st-glow);
  padding-bottom: var(--st-3);
  border-bottom: 1px solid var(--td-line-dark);
}

/* the ledger: the label panel, set as the label panel it is */
.td-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) minmax(0, auto);
  align-items: baseline; gap: var(--st-4);
  padding-block: 11px;
  border-bottom: 1px solid var(--td-line-dim);
  transition: background-color var(--st-dur-base) var(--st-ease);
}
/* the leader dot — the brand's specimen-callout device, doing the job
   the chips used to do */
.td-row__mark {
  position: relative; top: -2px;
  width: 16px; height: 1px;
  background: var(--td-line-dim);
  transition: background-color var(--st-dur-base) var(--st-ease),
              box-shadow var(--st-dur-base) var(--st-ease);
}
.td-row__latin {
  font-size: .84rem; letter-spacing: .01em;
  color: var(--st-on-dark);
}
.td-row__common {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--st-on-dark-body);
  text-align: right;
}
.td-row.is-marked { background: rgba(140, 230, 216, .09); }
.td-row.is-marked .td-row__mark {
  background: var(--st-glow);
  box-shadow: 13px 0 0 -2px var(--st-glow);
}
.td-row.is-marked .td-row__common { color: var(--st-glow); }

/* ============================================================ THE DOSE
   The 93 drawn as the dose itself: the product's own dropper, lying at
   true scale, its glass graduated into the six groups the label counts.

   ------------------------------------------------------------------
   WHERE THE NUMBERS IN THE MARKUP CAME FROM

   img/dropper-dose.png is the client's photograph of a real dropper
   holding one dose, its black background removed, at 2147 x 349. Every
   SVG coordinate in ingredients.html lives in that pixel space. The clip
   polygon is the liquid's own outline, measured off its colour: from the
   meniscus at x 1540 to the tip at x 2141. The six bands divide that run
   by 40 / 20 / 11 / 9 / 6 / 3, which is proportion against each other and
   nothing else. If the photograph is ever replaced or re-cropped,
   re-measure the liquid and move these together.
   ------------------------------------------------------------------

   The glass is decorative to assistive tech on purpose: it is a drawing
   of the key immediately below it, and the key carries every number in
   readable text and is the actual control. ---- */
.td-dose {
  margin-top: clamp(40px, 5vw, 64px);

  /* Six bands, six colours, because the dose is one continuous column and
     opacity alone could not separate it. They separate by HUE across the
     mint-to-open-water arc rather than by lightness: a darkening ramp lost
     the last three groups into the glass the moment the fill went
     transparent. Every one is inside the palette the brand already owns.

     Keep this comment closed exactly once. A stray terminator between it
     and the declarations below leaves --td-b1 undefined, which makes
     `fill: var(--td-b1)` invalid at computed-value time — and that
     resolves to the initial value, BLACK, on the largest band. */
  /* The six groups, re-pitched for a pale field. They were near-white mints
     and cyans, lit onto black with a screen blend; on daylight that is
     invisible, so they are now deep cyans and blues laid down with multiply.
     Same hue run, same order, same separation by HUE rather than lightness —
     which is what let a colour-blind reader tell them apart, and still does.
     Nothing here is green: the run stays 185-215 degrees, cyan into blue. */
  /* IN THE GLASS. These are lit THROUGH the dropper's black glass with a
     screen blend, so they have to be LIGHT — a screen composites toward white,
     and a dark colour screened over black stays black.

     Light, though, is not the same as near-white, and the first version of
     this run was: #E8FAF4 down to #4E9EDC, values picked when the page around
     them was black and anything pale read as brightly coloured. Screened at
     full lens strength on a daylight page they blow straight out, and the
     largest band — 40+, nearly half the tube — rendered as a plain white slab
     with the other five barely separable beside it. Six groups drawn as one
     white block is worse than not drawing them.

     So every stop keeps its hue but carries real chroma now. Same run, same
     order, still 185-215 degrees cyan into blue with nothing green in it, and
     the six stay legible as six.

     They were briefly deep cyans laid down with multiply, on the reasoning
     that the section had moved onto a pale field. That reasoning missed where
     the liquid actually IS: it is clipped to the bore of a photograph of BLACK
     GLASS, not laid on the page. multiply can only darken, and multiply
     against black is black, so all six bands rendered invisible and the theme
     filter appeared to do nothing at all. What colour the page behind the
     dropper happens to be never entered into it. */
  /* THE LIQUID IS THE PRODUCT'S OWN COLOUR NOW. It ran cyan into blue for as
     long as this panel sat in open water, which made the dropper read as a
     tube of seawater rather than as a bottle of Cleanse + Renew. The founder
     asked for the real thing on a cream field, so the ramp was resampled off
     the bottle photography: the amber glass runs #3C1400 to #5A320A, and
     these six are that hue opened up far enough to stay separable when they
     are screened through black glass. Light at the bulb, deepening toward
     the tip, so the run reads as one liquid with graduations in it. */
  --td-b1: #F2C888;   /* 40+  trace minerals         */
  --td-b2: #E6B36A;   /*  20  additional amino acids */
  --td-b3: #D89A4E;   /*  11  vitamins               */
  --td-b4: #C8823A;   /*   9  essential amino acids  */
  --td-b5: #B36B2B;   /*   6  digestive enzymes      */
  --td-b6: #9A5520;   /*   3  bio elements           */

  /* ON THE PAGE. The key's swatches are solid marks on pale water, not
     screened through anything, so they need the opposite end of the same six
     hues. Same order, same separation by hue rather than lightness, so the
     mark beside a row still reads as the band it points at. */
  --td-sw1: #B4762A;
  --td-sw2: #A96B24;
  --td-sw3: #9C5F1E;
  --td-sw4: #8E5219;
  --td-sw5: #7F4514;
  --td-sw6: #6E380F;

}

.td-dose__stage {
  position: relative;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(46px, 5vw, 66px);      /* the callout lives up here */
}

.td-dose__glass {
  position: relative;
  aspect-ratio: 2147 / 349;
}
.td-dose__photo {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 20px 38px rgba(6, 15, 26, .58));
}
.td-dose__pipette { display: block; width: 100%; height: 100%; }

/* the liquid is LIT THROUGH the glass, not painted on top of it.
   Screen against the photograph is the whole reason a chosen band reads
   as part of the dose rather than stickered on. */
.td-dose__liquid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* THE LIQUID IS THE PHOTOGRAPH. Nothing is tinted until you ask.

   The bands used to be painted across the whole run at rest, which put six
   washes over a photograph of the actual product and left the tube looking
   graded rather than filled. The real dropper already holds the real liquid,
   so at rest the drawing is just that liquid with graduations cut into it,
   and the six counts underneath name the lengths. Colour is the answer to a
   question: choose a group or a theme and only that stretch lights. */
.td-dose__band {
  opacity: 0;
  transition: opacity var(--st-dur-base) var(--st-ease);
}
/* the last three bands are 9, 6 and 3 parts of 89 — slivers. A small area
   reads weaker than a large one at identical opacity, so they carry a
   little more of it and all six land at the same apparent strength.

   The whole ramp was raised from .25/.31/.36/.41. At those values the six
   screened to almost the same tone against the black glass, and the graphic
   that exists to show six proportions read as one grey tube with faint
   seams in it. Separation is the entire point of the drawing, so the floor
   went up until the six are legible as six across the room. */
/* the slivers still need a touch more than the wide ones to read at the
   same strength once they are lit */
.td-dose.is-lensed .td-dose__band:nth-of-type(4).is-lit { opacity: .60; }
.td-dose.is-lensed .td-dose__band:nth-of-type(5).is-lit { opacity: .66; }
.td-dose.is-lensed .td-dose__band:nth-of-type(6).is-lit { opacity: .72; }

.td-dose__band:nth-of-type(1) { fill: var(--td-b1); }
.td-dose__band:nth-of-type(2) { fill: var(--td-b2); }
.td-dose__band:nth-of-type(3) { fill: var(--td-b3); }
.td-dose__band:nth-of-type(4) { fill: var(--td-b4); }
.td-dose__band:nth-of-type(5) { fill: var(--td-b5); }
.td-dose__band:nth-of-type(6) { fill: var(--td-b6); }

/* a lens is live — either a theme is marked or a band is selected — so
   everything outside it recedes to a trace and nothing is ever removed */
/* .07 was right on black, where a trace still registered against the glass.
   On daylight it is nothing at all, so choosing a theme APPEARED to empty the
   dropper — which contradicts the one thing this section promises in words
   directly beneath it: everything stays in the bottle, and on the page. The
   unlit bands stay visible; the lit ones step forward. */
.td-dose.is-lensed .td-dose__band { opacity: 0; }
.td-dose.is-lensed .td-dose__band.is-lit { opacity: .54; }

