/* ============================================================================
   HYBIO PHARMACEUTICAL — frontend uplift layer
   Loaded AFTER hybio.css (the generated identity) so it can refine without
   fighting it, and so re-running generate-identity.js never clobbers this work.

   DIRECTION — "certificate of analysis".
   Hybio sells peptide APIs on the strength of its lab data, so the interface is
   built to look like the documents that prove it: hairline rules instead of soft
   shadows, tabular monospaced numerals for every figure a buyer checks (price,
   cat no., purity, batch), wide-tracked micro-labels the way a report labels its
   fields, a strict 4px spacing grid, and one confident blue on paper-white.
   Motion is measured — a single orchestrated hero reveal, 1px hovers, nothing
   that bounces.

   Everything here is additive: no shared component is renamed, so the shop stays
   propagate-compatible with the fleet engine.
   ============================================================================ */

/* ---- 1. Type -------------------------------------------------------------
   Sora for display (geometric, technical, not a startup default), IBM Plex Sans
   for text (it was drawn for engineering documentation — exactly the register a
   pharmaceutical CDMO wants), IBM Plex Mono for data. */
:root {
    --font-display: 'Sora', 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    /* rhythm + line work */
    --u: 4px;
    --rule: 1px solid var(--hairline, rgba(15, 34, 54, .12));
    --rule-strong: 1px solid rgba(0, 97, 174, .30);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --t-fast: 140ms var(--ease);
    --t: 220ms var(--ease);
    --label: .68rem;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
}

h1, h2, h3, h4, .section-heading, .hero-title,
.products-page-title, .product-name, .modal-title {
    font-family: var(--font-display);
    letter-spacing: -.021em;
    text-wrap: balance;
}

/* Every figure a buyer verifies renders as instrument data: monospaced,
   tabular, so columns of prices and cat numbers align to the digit. */
.product-code, .product-pricing, .trust-stat-value, .deal-tier-value,
.product-count, .deal-timer, .cart-count, .price, .product-spec {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'zero' 1;
}

/* The micro-label: how a COA titles a field. Used by the eyebrow, stat labels,
   filter chips and section kickers. */
.hero-eyebrow, .trust-stat-label, .deal-tier-label, .deal-timer-label,
.lab-video-label, .products-page-subtitle, .logo-legal {
    font-family: var(--font-mono);
    font-size: var(--label);
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- 2. Header + the real wordmark --------------------------------------
   The supplied logo IS a wordmark, so it stands alone: no square crop, no
   duplicated "HYB" text lockup beside it. A hairline divider separates it from
   the registered legal name, the way a letterhead does. */
.logo--wordmark {
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 3);
    text-decoration: none;
    flex: none;   /* never let the nav squeeze the identity block */
}

.logo-wordmark-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 168px;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    flex: none;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: var(--hairline, rgba(15, 34, 54, .14));
    flex: none;
}

/* Compact letterhead: the wordmark already says HYBIO, so this carries only
   what it does not — the registered Chinese name, the city and the founding
   year. The full legal name lives in the footer and the JSON-LD, where there is
   room for it; in the header it wrapped to four lines and squeezed the nav. */
.logo-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--gray-500);
    line-height: 1.2;
    font-size: .55rem;
    letter-spacing: .12em;
    white-space: nowrap;
    flex: none;          /* the nav was shrinking it and clipping "Est. 2003" */
}

.logo-legal em {
    font-style: normal;
    font-family: 'Noto Sans SC', var(--font-family);
    letter-spacing: .22em;
    color: var(--primary);
    font-size: .74rem;
    font-weight: 600;
}

/* The nav was wrapping onto a second row because this legal name is long.
   Below 1180px the letterhead block is the first thing to go — the wordmark
   already identifies the company. */
@media (max-width: 1180px) {
    .logo-divider, .logo-legal { display: none; }
}
@media (max-width: 640px) {
    .logo-wordmark-img { height: 28px; max-width: 132px; }
}

.header {
    border-bottom: var(--rule);
    backdrop-filter: saturate(140%) blur(8px);
}

.nav-links { gap: calc(var(--u) * 1); }

/* Nav items get an instrument-style underline that draws from the left. */
.nav-desktop .nav-link {
    position: relative;
    padding: calc(var(--u) * 2) calc(var(--u) * 2.5);
    border-radius: var(--radius-sm, 3px);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    left: calc(var(--u) * 2.5);
    right: calc(var(--u) * 2.5);
    bottom: calc(var(--u) * .5);
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.nav-desktop .nav-link:hover::after,
.nav-desktop .nav-link.active::after { transform: scaleX(1); }
.nav-desktop .nav-link.active { color: var(--primary-darker); }

/* ---- 3. Focus: visible, branded, keyboard-only --------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- 4. Hero ------------------------------------------------------------
   A blueprint grid sits behind the hero at very low contrast — the graph paper
   a chromatogram is plotted on — and fades out before it reaches the copy. */
.hero-section {
    position: relative;
    isolation: isolate;
    border-bottom: var(--rule);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(0, 97, 174, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 97, 174, .055) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 2);
    padding: calc(var(--u) * 1.5) calc(var(--u) * 3);
    border: var(--rule-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--primary-dark);
}

.hero-title {
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: 1.04;
}

.hero-subtitle {
    max-width: 54ch;
    color: var(--gray-600);
    line-height: 1.62;
}

/* One orchestrated page-load reveal, staggered down the hero. */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow, .hero-title, .hero-subtitle, .hero-cta, .hero-trust-row {
        animation: hyb-rise 620ms var(--ease) both;
    }
    .hero-title { animation-delay: 60ms; }
    .hero-subtitle { animation-delay: 120ms; }
    .hero-cta { animation-delay: 180ms; }
    .hero-trust-row { animation-delay: 240ms; }
}

@keyframes hyb-rise {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
}

.hero-trust-item {
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .04em;
    color: var(--gray-600);
}

/* ---- 5. Buttons ---------------------------------------------------------- */
.btn, .hero-cta-primary, .hero-cta-secondary, .product-btn, .filter-btn, .category-btn {
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: .005em;
    border-radius: var(--radius-sm, 3px);
    transition: transform var(--t-fast), box-shadow var(--t-fast),
                background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn-primary, .hero-cta-primary {
    box-shadow: 0 1px 0 rgba(0, 52, 92, .28), 0 1px 2px rgba(0, 52, 92, .16);
}

.btn-primary:hover, .hero-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 52, 92, .3), 0 6px 18px rgba(0, 97, 174, .22);
}

.btn-primary:active, .hero-cta-primary:active { transform: translateY(0); }

.hero-cta-secondary, .btn-secondary {
    border: var(--rule-strong);
    background: #fff;
    color: var(--primary-darker);
}

.hero-cta-secondary:hover, .btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

/* ---- 6. Section rhythm + kicker rules ------------------------------------ */
.section-header { position: relative; }

.section-heading {
    font-weight: 650;
    letter-spacing: -.024em;
}

/* A short brand rule under each section heading — the rule that opens a report
   section. */
.section-header .section-heading::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin: calc(var(--u) * 3) auto 0;
    background: var(--primary);
    border-radius: 2px;
}

/* :not(.trustpilot-banner) — that banner is a green Trustpilot-style strip with
   white stars and white text that ALSO carries .section-alt. Repainting it pale
   made white-on-white: the whole review strip vanished. Any future component
   that owns its own background must be excluded here the same way. */
.section-alt:not(.trustpilot-banner) {
    background:
        linear-gradient(to bottom, var(--porcelain), var(--white));
    border-top: var(--rule);
    border-bottom: var(--rule);
}

/* Bring the trust strip into the new type system without touching its colour. */
.trustpilot-banner .tp-banner-score,
.trustpilot-banner .tp-banner-count {
    font-family: var(--font-mono);
    letter-spacing: .04em;
}

.trustpilot-banner .tp-banner-btn {
    font-family: var(--font-family);
    border-radius: var(--radius-sm, 3px);
    letter-spacing: .01em;
}

/* ---- 7. Product cards ---------------------------------------------------
   Hairline-first: the card is a specimen record, not a shopping tile. The blue
   rule at the top edge draws in on hover — the only decorative flourish. */
.product-card {
    position: relative;
    border: var(--rule);
    border-radius: var(--radius-md, 4px);
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 97, 174, .38);
    box-shadow: 0 10px 30px -12px rgba(0, 52, 92, .28);
}

.product-card:hover::before { transform: scaleX(1); }

.product-image {
    background:
        radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--porcelain) 100%);
    border-bottom: var(--rule);
}

.product-card:hover .product-image img { transform: scale(1.035); }
.product-image img { transition: transform 420ms var(--ease); }

.product-name {
    font-weight: 600;
    letter-spacing: -.012em;
    line-height: 1.3;
}

/* Cat no. reads as a specimen identifier. */
.product-code {
    font-size: .68rem;
    letter-spacing: .08em;
    color: var(--gray-500);
    text-transform: uppercase;
}

.product-pricing { letter-spacing: -.015em; }

.product-badge, .badge-tested, .badge-popular {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 2px;
}

/* ---- 8. Data blocks: stats, tiers, filters ------------------------------- */
.trust-stat-value, .deal-tier-value {
    letter-spacing: -.03em;
    font-weight: 600;
}

.trust-stat { border-left: 3px solid var(--primary-100); padding-left: calc(var(--u) * 4); }
.trust-stat:hover { border-left-color: var(--primary); }
.trust-stat { transition: border-color var(--t-fast); }

.filter-btn {
    border: var(--rule);
    background: #fff;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary-darker); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-input {
    border: var(--rule);
    border-radius: var(--radius-sm, 3px);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 97, 174, .12);
}

/* ---- 9. Cert / lab cards ------------------------------------------------- */
.cert-card, .trust-card, .lab-video-card, .deal-card {
    border: var(--rule);
    border-radius: var(--radius-md, 4px);
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t);
}

.cert-card:hover, .trust-card:hover, .lab-video-card:hover {
    border-color: rgba(0, 97, 174, .38);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -14px rgba(0, 52, 92, .3);
}

.cert-icon, .trust-card-icon { color: var(--primary); }

/* ---- 10. Order-process rail --------------------------------------------- */
.order-step-icon {
    border: var(--rule-strong);
    background: #fff;
    color: var(--primary);
}

.order-step-arrow { color: var(--primary-lighter); }

/* ---- 11. FAQ ------------------------------------------------------------- */
.faq-item {
    border: var(--rule);
    border-radius: var(--radius-md, 4px);
    transition: border-color var(--t-fast), background var(--t-fast);
}

.faq-item:hover { border-color: rgba(0, 97, 174, .3); }

.faq-question {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.012em;
}

/* ---- 12. Footer ---------------------------------------------------------- */
.footer { border-top: 3px solid var(--primary); }

.footer-logo--wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--u) * 2);
}

.footer-wordmark-img {
    height: 30px;
    width: auto;
    max-width: 150px;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    /* /logo-mono-white.png is a true KNOCKOUT of the same mark: discs filled
       white, letters punched through to transparent so the dark footer reads as
       the type. A CSS invert() was tried first and turned the white beads black,
       which made the wordmark illegible. */
    opacity: .95;
}

.footer-logo--wordmark small {
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .09em;
    line-height: 1.5;
    opacity: .72;
}

.footer-logo--wordmark small em {
    font-style: normal;
    letter-spacing: .2em;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: var(--label);
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---- 13. Tables (price list / reports) ----------------------------------- */
table { border-collapse: collapse; }

th {
    font-family: var(--font-mono);
    font-size: var(--label);
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
}

td { border-bottom: var(--rule); font-variant-numeric: tabular-nums; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--primary-50); }

/* ---- 14. Selection + scrollbar ------------------------------------------- */
::selection { background: rgba(0, 97, 174, .16); color: var(--primary-darker); }

@supports (scrollbar-color: auto) {
    html { scrollbar-color: var(--primary-lighter) transparent; }
}

/* ---- 15. Respect reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   16. HERO — "batch record"
   The old hero was the fleet's stock two-column grid: copy left, sale card
   right. This replaces it outright. A peptide buyer's first question is whether
   the purity can be proven, so the hero answers it — the right-hand panel is a
   real released batch from this shop's own report set (cat TR10, Janoshik
   JK-78897, 99.43%) drawn as a chromatogram, with the running promotion docked
   underneath it rather than competing with it.
   Namespaced `hx-` so nothing here can collide with the shared engine.
   ========================================================================== */
.hx {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, var(--porcelain) 62%, #fff 100%);
    border-bottom: var(--rule);
}

/* Graph-paper ground with a brand-blue bloom behind the headline. */
.hx-ground {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(58% 62% at 8% 6%, rgba(0, 97, 174, .10) 0%, transparent 70%),
        radial-gradient(46% 54% at 96% 96%, rgba(46, 155, 214, .10) 0%, transparent 72%),
        linear-gradient(to right, rgba(0, 97, 174, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 97, 174, .07) 1px, transparent 1px);
    background-size: auto, auto, 34px 34px, 34px 34px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

/* ---- credential rail ---- */
.hx-rail {
    border-bottom: var(--rule);
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(6px);
}

.hx-rail-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--u) * 3) calc(var(--u) * 7);
    padding-top: calc(var(--u) * 2.5);
    padding-bottom: calc(var(--u) * 2.5);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.hx-rail-in b { color: var(--primary-darker); font-weight: 600; }
.hx-rail-live { margin-left: auto; display: inline-flex; align-items: center; gap: calc(var(--u) * 2); }

.hx-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success-green, #3f7d54);
    box-shadow: 0 0 0 0 rgba(63, 125, 84, .55);
}

@media (prefers-reduced-motion: no-preference) {
    .hx-dot { animation: hx-pulse 2.4s var(--ease) infinite; }
}

@keyframes hx-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(63, 125, 84, .5); }
    70%  { box-shadow: 0 0 0 7px rgba(63, 125, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 125, 84, 0); }
}

/* ---- layout ---- */
.hx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: calc(var(--u) * 14);
    /* `center` looked right until the batch panel grew taller than the copy:
       it then centred the shorter column and opened ~200px of dead space
       between the credential rail and the headline on desktop. Top-align both
       and let the panel run long. */
    align-items: start;
    padding: clamp(28px, 3.4vw, 52px) 0 clamp(36px, 4.5vw, 64px);
}

/* ---- lead column ---- */
.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 2);
    margin: 0 0 calc(var(--u) * 6);
    padding: calc(var(--u) * 1.5) calc(var(--u) * 3.5);
    border: var(--rule-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.hx-title {
    margin: 0 0 calc(var(--u) * 5);
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.1vw, 4.15rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: var(--primary-darker);
}

/* The claim gets a drawn analytical underline rather than a highlighter. */
.hx-mark {
    position: relative;
    color: var(--primary);
    white-space: nowrap;
}

.hx-mark::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .1em;
    background: linear-gradient(90deg, var(--primary), var(--amber, #2e9bd6));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
    .hx-mark::after { animation: hx-underline 700ms var(--ease) 480ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-mark::after { transform: scaleX(1); }
}

@keyframes hx-underline { to { transform: scaleX(1); } }

.hx-lede {
    margin: 0 0 calc(var(--u) * 8);
    max-width: 52ch;
    font-size: 1.045rem;
    line-height: 1.66;
    color: var(--gray-600);
}

.hx-cta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--u) * 3);
    margin-bottom: calc(var(--u) * 8);
}

.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 2);
    padding: calc(var(--u) * 3.5) calc(var(--u) * 6);
    border-radius: var(--radius-sm, 3px);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast),
                background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.hx-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 52, 92, .3), 0 2px 6px rgba(0, 52, 92, .18);
}

.hx-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 52, 92, .32), 0 10px 24px rgba(0, 97, 174, .26);
}

.hx-btn-ghost {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(0, 97, 174, .3);
    color: var(--primary-darker);
}

.hx-btn-ghost:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-1px);
}

.hx-btn:active { transform: translateY(0); }

.hx-trust {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--u) * 3) calc(var(--u) * 6);
    margin: 0;
    padding: calc(var(--u) * 4) 0 0;
    list-style: none;
    border-top: var(--rule);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .05em;
    color: var(--gray-600);
}

.hx-trust li { display: inline-flex; align-items: center; gap: calc(var(--u) * 1.5); }
.hx-trust i { color: var(--primary); }
.hx-trust a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(0, 97, 174, .45); }
.hx-trust a:hover { color: var(--primary-darker); border-bottom-color: var(--primary); }

/* ---- specimen panel ---- */
.hx-panel {
    position: relative;
    background: #fff;
    border: var(--rule);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md, 4px);
    box-shadow: 0 24px 60px -30px rgba(0, 52, 92, .45), 0 2px 8px rgba(0, 52, 92, .06);
    overflow: hidden;
}

.hx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--u) * 3.5) calc(var(--u) * 5);
    border-bottom: var(--rule);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hx-panel-kicker { color: var(--gray-500); }
.hx-panel-id { color: var(--primary); font-weight: 600; }

.hx-chart {
    position: relative;
    padding: calc(var(--u) * 4) calc(var(--u) * 5) 0;
    background: linear-gradient(180deg, #fff, var(--primary-50));
}

.hx-chart svg { display: block; width: 100%; height: 96px; }
.hx-grid-lines line { stroke: rgba(15, 34, 54, .07); stroke-width: 1; }

.hx-trace {
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: no-preference) {
    .hx-trace {
        stroke-dasharray: 640;
        stroke-dashoffset: 640;
        animation: hx-draw 2200ms var(--ease) 300ms forwards;
    }
    .hx-trace-fill { opacity: 0; animation: hx-fade 900ms var(--ease) 1700ms forwards; }
}

@keyframes hx-draw { to { stroke-dashoffset: 0; } }
@keyframes hx-fade { to { opacity: 1; } }

.hx-peak-tag {
    position: absolute;
    top: calc(var(--u) * 3);
    left: 30%;
    padding: 2px calc(var(--u) * 2);
    background: var(--primary);
    color: #fff;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.hx-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    border-top: var(--rule);
}

.hx-data > div {
    padding: calc(var(--u) * 3) calc(var(--u) * 5);
    border-bottom: var(--rule);
}

.hx-data > div:nth-child(odd) { border-right: var(--rule); }

.hx-data dt {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.hx-data dd {
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary-darker);
}

.hx-data .hx-pass { color: var(--success-green, #3f7d54); font-family: var(--font-mono); }

.hx-panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--u) * 2);
    padding: calc(var(--u) * 3.5) calc(var(--u) * 5);
    border-bottom: var(--rule);
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: background var(--t-fast), padding-left var(--t-fast);
}

.hx-panel-link:hover { background: var(--primary-50); padding-left: calc(var(--u) * 6); }

/* promo docked under the record */
.hx-promo { padding: calc(var(--u) * 4) calc(var(--u) * 5) calc(var(--u) * 5); background: var(--porcelain); }

.hx-promo-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: calc(var(--u) * 3);
    margin-bottom: calc(var(--u) * 3);
}

.hx-promo-name { font-weight: 700; font-size: .95rem; color: var(--primary-darker); }

.hx-promo-timer {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.hx-promo-timer b { color: var(--error-red, #b3382c); font-variant-numeric: tabular-nums; }

.hx-tiers { list-style: none; margin: 0 0 calc(var(--u) * 3); padding: 0; }

.hx-tiers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--u) * 3);
    padding: calc(var(--u) * 1.75) 0;
    border-bottom: 1px dashed rgba(15, 34, 54, .12);
    font-size: .82rem;
}

.hx-tiers li:last-child { border-bottom: 0; }
.hx-tiers .deal-tier-label { color: var(--gray-600); letter-spacing: .04em; text-transform: none; font-size: .78rem; }
.hx-tiers b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--primary); }

.hx-promo-note { margin: 0; font-size: .76rem; line-height: 1.6; color: var(--gray-600); }
.hx-promo-note b { color: var(--primary-darker); }
.hx-promo-note a { color: var(--primary); text-decoration: none; }
.hx-promo-note a:hover { text-decoration: underline; }

/* ---- compound ticker ---- */
.hx-ticker {
    border-top: var(--rule);
    background: #fff;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hx-ticker-track {
    display: flex;
    gap: calc(var(--u) * 10);
    padding: calc(var(--u) * 3) 0;
    width: max-content;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gray-400);
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .hx-ticker-track { animation: hx-marquee 46s linear infinite; }
}

@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* ---- hero page-load choreography ---- */
@media (prefers-reduced-motion: no-preference) {
    .hx-eyebrow, .hx-title, .hx-lede, .hx-cta, .hx-trust, .hx-panel {
        animation: hyb-rise 640ms var(--ease) both;
    }
    .hx-title  { animation-delay: 70ms; }
    .hx-lede   { animation-delay: 140ms; }
    .hx-cta    { animation-delay: 210ms; }
    .hx-trust  { animation-delay: 280ms; }
    .hx-panel  { animation-delay: 180ms; }
}

/* ---- responsive ---- */
@media (max-width: 1080px) {
    .hx-grid { grid-template-columns: 1fr; gap: calc(var(--u) * 10); }
    .hx-panel { max-width: 560px; }
}

@media (max-width: 720px) {
    .hx-rail-live { margin-left: 0; }
    .hx-title { font-size: clamp(2rem, 8.6vw, 2.7rem); }
    .hx-mark { white-space: normal; }
    .hx-cta .hx-btn { flex: 1 1 auto; justify-content: center; }
    .hx-data { grid-template-columns: 1fr; }
    .hx-data > div:nth-child(odd) { border-right: 0; }
}

/* ============================================================================
   17. SCROLL CHOREOGRAPHY + STRUCTURAL REFINEMENT
   Paired with public/js/hybio-motion.js. Every rule that HIDES something is
   gated behind `.js-motion` — a class the script adds to <html> itself — so if
   the script never runs, nothing is invisible. `prefers-reduced-motion` short-
   circuits the script before that class is ever set.
   ========================================================================== */

/* ---- read-progress hairline --------------------------------------------- */
.hx-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 2000;
    background: linear-gradient(90deg, var(--primary), var(--amber, #2e9bd6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 90ms linear;
    pointer-events: none;
}

/* ---- reveal -------------------------------------------------------------- */
.js-motion [data-hx-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 620ms var(--ease) var(--hx-delay, 0ms),
        transform 620ms var(--ease) var(--hx-delay, 0ms);
    will-change: opacity, transform;
}

.js-motion [data-hx-reveal][data-hx-shown] {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ---- condensed sticky header -------------------------------------------- */
.header {
    transition: padding 240ms var(--ease), box-shadow 240ms var(--ease),
                background 240ms var(--ease);
}

.header.is-condensed {
    box-shadow: 0 1px 0 rgba(15, 34, 54, .08), 0 8px 26px -18px rgba(0, 52, 92, .5);
    background: rgba(255, 255, 255, .93);
}

.header.is-condensed .logo-wordmark-img { height: 28px; }
.header.is-condensed .logo-legal { opacity: .55; }
.logo-wordmark-img, .logo-legal { transition: height 240ms var(--ease), opacity 240ms var(--ease); }

/* ---- stat band: turn it into an instrument readout ---------------------- */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border: var(--rule);
    border-radius: var(--radius-md, 4px);
    overflow: hidden;
    background: #fff;
}

.trust-stat {
    padding: calc(var(--u) * 6) calc(var(--u) * 4);
    text-align: center;
    border-left: 0;
    border-right: var(--rule);
    position: relative;
    transition: background var(--t-fast);
}

.trust-stat:last-child { border-right: 0; }
.trust-stat:hover { background: var(--primary-50); border-left: 0; }

/* a hairline tick above each figure, like a scale marking */
.trust-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 28px; height: 3px;
    transform: translateX(-50%);
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--t-fast);
}

.trust-stat:hover::before { opacity: 1; }

.trust-stat-value {
    display: block;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    color: var(--primary-darker);
    margin-bottom: calc(var(--u) * 1.5);
}

/* ---- process rail: connect the five steps with a drawn line ------------- */
.order-process-steps {
    position: relative;
}

.order-process-steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-100), var(--primary), var(--primary-100));
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1200ms var(--ease) 200ms;
}

.js-motion .order-process-steps[data-hx-shown]::before,
.order-process-steps:not([data-hx-reveal])::before { transform: scaleX(1); }

.order-step { position: relative; z-index: 1; }

.order-step-icon {
    background: #fff;
    transition: transform var(--t), border-color var(--t-fast), box-shadow var(--t);
}

.order-step:hover .order-step-icon {
    transform: translateY(-3px) scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 10px 24px -12px rgba(0, 97, 174, .55);
}

/* ---- cert / lab cards: lift the icon, not just the card ----------------- */
.cert-icon, .trust-card-icon {
    transition: transform var(--t), background var(--t-fast);
}

.cert-card:hover .cert-icon,
.trust-card:hover .trust-card-icon { transform: scale(1.08) rotate(-3deg); }

/* ---- FAQ: real height animation instead of a jump ----------------------- */
.faq-answer {
    transition: max-height 380ms var(--ease), opacity 260ms var(--ease), padding 260ms var(--ease);
}

.faq-question i { transition: transform 300ms var(--ease); }
.faq-item.active .faq-question i,
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }

/* ---- links: a shared underline motion ----------------------------------- */
.footer-col a, .vfd-links a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 260ms var(--ease), color var(--t-fast), opacity var(--t-fast);
    text-decoration: none;
}

.footer-col a:hover, .vfd-links a:hover { background-size: 100% 1px; }

/* ---- category buttons --------------------------------------------------- */
.category-btn {
    border: var(--rule);
    background: #fff;
    transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t);
}

.category-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 26px -14px rgba(0, 97, 174, .5);
}

.category-icon { transition: transform var(--t); }
.category-btn:hover .category-icon { transform: scale(1.1); }

/* ---- floating action buttons: settle them into the system --------------- */
.fab {
    box-shadow: 0 6px 20px -6px rgba(0, 52, 92, .45);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px -8px rgba(0, 52, 92, .55); }

/* ---- print: strip the choreography -------------------------------------- */
@media print {
    .hx-progress, .hx-ticker, .fab { display: none !important; }
    .js-motion [data-hx-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   18. MOBILE
   Audited on a real iPhone 12 Pro viewport (390x844) with Playwright, not by
   eyeballing a narrow desktop window. Fixes, in order of how much they hurt:

     a. the credential rail wrapped to THREE lines and pushed the headline off
        the first screen — it is now one horizontally-scrollable row;
     b. the floating contact buttons (56px, stacked three high) sat on top of
        the hero copy — smaller and tighter on phones, and they clear the fixed
        bottom nav;
     c. sub-11px text (the trust bar ran at 9.3px) — nothing below 11.5px;
     d. tap targets under 44px — the warehouse button, trust-bar links, filter
        chips and close buttons all get a 44px minimum.
   ========================================================================== */
@media (max-width: 767px) {

    /* --- a. credential rail: one scrollable line ------------------------- */
    .hx-rail-in {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: calc(var(--u) * 5);
        padding-top: calc(var(--u) * 2);
        padding-bottom: calc(var(--u) * 2);
        font-size: .62rem;
        letter-spacing: .09em;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hx-rail-in::-webkit-scrollbar { display: none; }
    .hx-rail-in > span { flex: none; white-space: nowrap; }
    .hx-rail-live { margin-left: 0; }

    /* --- hero rhythm ------------------------------------------------------ */
    .hx-grid { padding: calc(var(--u) * 6) 0 calc(var(--u) * 8); gap: calc(var(--u) * 8); }

    .hx-eyebrow {
        margin-bottom: calc(var(--u) * 4);
        padding: calc(var(--u) * 1.5) calc(var(--u) * 3);
        font-size: .58rem;
        letter-spacing: .1em;
        line-height: 1.5;
    }

    .hx-lede { font-size: .96rem; margin-bottom: calc(var(--u) * 6); }
    .hx-cta { gap: calc(var(--u) * 2.5); margin-bottom: calc(var(--u) * 6); }
    .hx-btn { padding: calc(var(--u) * 3.5) calc(var(--u) * 4); font-size: .9rem; min-height: 48px; }
    .hx-trust { gap: calc(var(--u) * 2.5) calc(var(--u) * 4); font-size: .68rem; }

    .hx-panel { max-width: none; }
    .hx-chart svg { height: 78px; }
    .hx-peak-tag { left: 26%; }
    .hx-panel-head, .hx-chart, .hx-panel-link, .hx-promo { padding-left: calc(var(--u) * 4); padding-right: calc(var(--u) * 4); }
    .hx-data > div { padding-left: calc(var(--u) * 4); padding-right: calc(var(--u) * 4); }

    /* the marquee is decorative; slow it and shrink it so it never competes */
    .hx-ticker-track { gap: calc(var(--u) * 6); font-size: .62rem; animation-duration: 64s; }

    /* --- b. floating contact buttons ------------------------------------- */
    /* 56px x3 covered the hero copy. Shrink, tighten the stack, and lift the
       whole column above the fixed bottom nav (60px) plus the safe area. */
    .msgr-fab {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        right: 12px !important;
    }

    .msgr-fab-email { bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important; }
    .msgr-fab-tg    { bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important; }
    .sa-launch {
        width: 46px !important;
        height: 46px !important;
        right: 12px !important;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; left: 12px; right: auto; }

    /* --- c. minimum legible type ----------------------------------------- */
    .trust-bar, .trust-bar-inner, .trust-bar-item,
    .site-flash, .site-flash strong,
    .hx-rail-in, .company-cat-tag, .pl-wh-chip {
        font-size: .72rem !important;   /* 11.52px at a 16px root */
        line-height: 1.5;
    }

    .trust-bar-inner {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: calc(var(--u) * 4);
        scrollbar-width: none;
    }

    .trust-bar-inner::-webkit-scrollbar { display: none; }
    .trust-bar-item { flex: none; white-space: nowrap; }

    /* --- d. tap targets --------------------------------------------------- */
    .warehouse-btn,
    .mobile-menu-close,
    .tp-banner-btn,
    .tp-filter-btn,
    .pl-filter-btn,
    .pl-cart-bar-btn,
    .review-action-btn,
    .janoshik-link,
    .filter-btn,
    .category-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .warehouse-btn { min-width: 56px; padding-inline: calc(var(--u) * 2.5); }
    .mobile-menu-close { min-width: 44px; }
    .pl-filter-btn { min-width: 44px; }

    /* links in flowing copy get vertical padding rather than a box, so the
       text rhythm is untouched but the strike area reaches 44px */
    .trust-bar-item, .hx-trust a, .footer-col a {
        padding-block: calc(var(--u) * 2);
    }

    /* --- structural polish ------------------------------------------------ */
    .trust-stats { grid-template-columns: repeat(2, 1fr); }
    .trust-stat { border-bottom: var(--rule); }
    .trust-stat:nth-child(2n) { border-right: 0; }
    .trust-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

    /* the process rail's connector is drawn between icon centres; once the
       steps stack it would cut across the column, so drop it */
    .order-process-steps::before { display: none; }

    .section-header .section-heading::after { margin-top: calc(var(--u) * 2.5); }

    /* wide content must scroll inside its own box, never the page */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* the sticky header already condenses; don't also shrink it on phones */
    .header.is-condensed .logo-wordmark-img { height: 26px; }
}

/* Small phones (<=380px): the wordmark and cart both need room. */
@media (max-width: 380px) {
    .logo-wordmark-img { height: 24px; max-width: 112px; }
    .hx-title { font-size: clamp(1.8rem, 9vw, 2.3rem); }
    .hx-cta .hx-btn { width: 100%; }
}

/* Landscape phones: the hero should not eat the whole screen. */
@media (max-width: 900px) and (orientation: landscape) {
    .hx-grid { padding-top: calc(var(--u) * 4); }
    .hx-title { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
}

/* ---- 18b. mobile audit, second pass -------------------------------------
   Remaining sub-11px text and short tap targets, all in shared chrome the
   first pass did not reach: the bottom nav labels (9.6px), footer copyright
   and disclaimer (10.9px), price-list card specs (10.4px), and the search
   input / trust-bar links which were still short of 44px.                  */
@media (max-width: 767px) {
    .bottom-nav-item { font-size: .72rem !important; }
    .footer-copyright,
    .footer-bottom p,
    .footer-logo--wordmark small,
    .pl-mobile-card-spec,
    .footer-col p small,
    small { font-size: .72rem !important; }

    .trust-bar-item { padding-block: calc(var(--u) * 3); min-height: 44px; }
    .search-input, input[type="text"], input[type="email"], input[type="search"] {
        min-height: 46px;
        font-size: 16px;   /* iOS zooms the page for anything under 16px */
    }
    .bottom-nav-item { min-height: 48px; }
}

/* ---- 18c. hero micro-labels on phones -----------------------------------
   The COA label style (uppercase mono, wide tracking) reads fine at 9-11px on
   a desktop monitor and is genuinely hard to read on a phone. Everything I
   author is lifted to >=10.5px on mobile; the tracking is eased at the same
   time so the wider glyphs do not force a wrap.                            */
@media (max-width: 767px) {
    .hx-eyebrow      { font-size: .66rem; letter-spacing: .08em; }
    .hx-trust        { font-size: .7rem;  letter-spacing: .03em; }
    .hx-panel-head   { font-size: .68rem; letter-spacing: .1em; }
    .hx-promo-timer  { font-size: .7rem;  letter-spacing: .06em; }
    .hx-panel-link   { font-size: .72rem; letter-spacing: .06em; }
    .hx-ticker-track { font-size: .66rem; letter-spacing: .12em; }
    .hx-data dt      { font-size: .64rem; letter-spacing: .1em; }
    .products-page-subtitle { font-size: .78rem; }
}

/* ============================================================================
   19. CONTRAST (WCAG AA)
   `node site-factory/contrast-audit.js .../product/TR10 --checkout` reported 14
   unreadable elements. The cause is systemic, not per-page: the generated ramp's
   --gray-400 is #6c90ac and several template files hardcode #98a09a / #6c7670 as
   LABEL colours. All three land between 2.3:1 and 4.35:1 on the light panels
   they sit on — under the 4.5:1 AA floor for body text.

   The tokens themselves are left alone (they are also used for borders, icons
   and dividers, where a light value is correct). Only TEXT roles are darkened,
   to --gray-600 (#354c5f ≈ 7:1 on the panels in question).
   ========================================================================== */
.pd-detail-label,
.pd-section-subtitle,
.pd-price-label,
.pd-specification,
.pd-breadcrumb-link,
.products-page-subtitle,
.about-trust-label,
.about-mfg-video-label,
.pl-mobile-card-spec,
.company-cat-tag,
.pl-wh-chip {
    color: var(--gray-600) !important;
}

/* Shipping/meta lines that inherited --gray-400 straight from the ramp. */
.pd-shipping-note,
.pd-shipping-row div,
.pd-delivery-note,
.trust-stat-label,
.deal-tier-label {
    color: var(--gray-600);
}

/* "TRACKED" pill: dark amber on amber measured 3.24:1 — deepen the ink. */
.pd-tracked-badge,
.badge-tracked,
[class*="tracked"] { color: #2e1f05 !important; }

/* The footer's verified-on heading ran at opacity .65 over the dark ink, which
   is legible but marginal; lift it and let the rows below stay quieter. */
.vfd-verified h4 { opacity: .85; }

/* Process-step badges: dark ink ONLY on the unfilled state. When the badge is
   filled with --primary (the active/completed step) the text must be white —
   blanket-darkening these measured 1.41:1 on #0061ae. */
.step-number, .step-text { color: var(--gray-600); }
.step-number[class*="active"], .step-number[class*="done"],
[class*="active"] > .step-number, [class*="active"] > .step-text,
.order-step-icon .step-number { color: #fff; }

/* Any remaining muted label that sits directly on white/porcelain. */
.section-header p,
.faq-answer p { color: var(--gray-600); }
