/* ==========================================================================
   Cardinal Peptides — Design System v2.0 "Bone-Led Editorial"
   Bone field · ink structure · red as punctuation (mark, hairlines, ONE CTA).
   Tagline: Precision Without Compromise.
   All selectors are prefixed .cp- to avoid WordPress / WooCommerce collisions.
   Load order: this file first, then the product-card stylesheet.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Cardinal palette */
  --cardinal-red:      #B01E33;   /* mark, hairline rules, ONE primary CTA */
  --cardinal-red-deep: #8E1829;   /* red CTA hover only */
  /* Reversed-lockup red. #B01E33 on --ink is only 2.41:1 — a hard WCAG fail — so
     the footer wordmark uses this lifted tint instead. Same brand hue (351.4deg),
     saturation .75 vs the brand's .83, and 4.80:1 on --ink. Reversed lockup ONLY:
     never use this on a light surface (it is just 2.65:1 on bone). */
  --cardinal-red-lifted: #FF405B;
  --ink:               #17202B;
  --ink-soft:          #232E3B;
  --bone:              #F4EFE6;
  --bone-deep:         #EAE3D6;
  --stone:             #C9C7C0;
  --stone-soft:        #DDD9CF;
  --white:             #FFFFFF;
  --paper-high:        #FAF7F1;

  /* Compatibility aliases — client directive: blue's roles become CARDINAL RED, not neutrals. */
  --cardinal-red-bright: #C9243C;   /* lifted red for gradient tops / hovers */
  --cardinal-red-sky:    #D9566A;   /* softest red, decorative only */
  --cp-blue:        var(--cardinal-red);
  --cp-blue-bright: var(--cardinal-red-bright);
  --cp-blue-deep:   var(--cardinal-red-deep);
  --cp-blue-sky:    var(--cardinal-red-sky);
  --cp-navy:        var(--cardinal-red-deep);
  --cp-tint-1:      var(--paper-high);
  --cp-tint-2:      var(--bone);
  --cp-tint-3:      var(--bone-deep);
  --cp-ink:         var(--ink);
  --cp-muted:       #5C6470;
  --cp-faint:       #676E76;
  --cp-line:        #E7E1D4;
  --cp-line-strong: var(--stone);
  --cp-white:       var(--white);
  --cp-green:       var(--ink);        /* green ELIMINATED — stragglers render ink */
  --cp-red:         var(--cardinal-red);

  /* Type — Sequel Sans is registered via theme.json @font-face (300–700) */
  --cp-font: "Sequel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --cp-r-s:  12px;
  --cp-r-m:  16px;
  --cp-r-l:  20px;
  --cp-r-xl: 28px;

  /* Elevation — warm-tinted */
  --cp-shadow-s:   0 1px 2px rgba(23, 32, 43, .05), 0 2px 10px rgba(23, 32, 43, .04);
  --cp-shadow-m:   0 2px 6px rgba(23, 32, 43, .06), 0 14px 36px rgba(23, 32, 43, .10);
  --cp-shadow-btn: 0 6px 16px rgba(176, 30, 51, .26);   /* red CTA only */
}

/* ---------- 2. Scoped base ----------------------------------------------- */
.cp-home,
.cp-home *,
.cp-home *::before,
.cp-home *::after { box-sizing: border-box; }

.cp-home {
  font-family: var(--cp-font);
  color: var(--cp-ink);
  background: var(--bone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cp-home img,
.cp-home svg { max-width: 100%; height: auto; display: block; }
.cp-home a { color: inherit; }
.cp-home :focus-visible {
  outline: 2px solid var(--cp-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.cp-wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Shared eyebrow + heading styles */
.cp-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.cp-eyebrow--light { color: rgba(244, 239, 230, .75); }
.cp-h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}

/* ---------- 3. Buttons ---------------------------------------------------- */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, border-color .18s ease;
}
/* The page's ONE red button (rail-foot "View all peptides"). */
.cp-btn--primary {
  color: #fff;
  background: var(--cardinal-red);
  box-shadow: var(--cp-shadow-btn);
}
.cp-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--cardinal-red-deep);
}
.cp-btn--primary:active { transform: translateY(0); }
.cp-btn--outline {
  color: var(--ink);
  background: var(--white);
  border-color: var(--stone);
  box-shadow: var(--cp-shadow-s);
}
.cp-btn--outline:hover {
  border-color: var(--ink);
  background: var(--paper-high);
  transform: translateY(-1px);
}
.cp-btn--lg { padding: 17px 32px; font-size: 16px; }
.cp-btn--sm { padding: 11px 16px; font-size: 14px; }
.cp-btn--block { width: 100%; }

/* ---------- 6. Product shelf ("Our most referenced") ----------------------- */
.cp-shelf { padding-block: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 32px); background: var(--bone); }
.cp-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.cp-shelf__nav { display: flex; align-items: center; gap: 10px; }
.cp-arrow {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--cp-line);
  background: var(--cp-white);
  color: var(--cp-blue-deep);
  box-shadow: var(--cp-shadow-s);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.cp-arrow:hover { background: var(--cp-tint-1); border-color: var(--cp-blue-bright); transform: translateY(-1px); }

.cp-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 272px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 8px 4px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--bone-deep) transparent;
}
.cp-product-rail::-webkit-scrollbar { height: 6px; }
.cp-product-rail::-webkit-scrollbar-track { background: transparent; }
.cp-product-rail::-webkit-scrollbar-thumb { background: var(--bone-deep); border-radius: 999px; }
.cp-product-rail > * { scroll-snap-align: start; }

/* ---------- 7. Feature banner grid ---------------------------------------- */
.cp-banners { padding-block: clamp(16px, 2.5vw, 28px) clamp(48px, 7vw, 72px); }
.cp-banners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cp-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 26px;
  border-radius: var(--cp-r-l);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--cp-shadow-s);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cp-banner::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 68%);
  pointer-events: none;
}
.cp-banner:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow-m); }
.cp-banner--sellers {
  color: #fff;
  background: var(--ink);
}
.cp-banner--new {
  color: var(--cp-ink);
  background: linear-gradient(135deg, var(--bone-deep), var(--paper-high));
  border: 1px solid var(--stone-soft);
}
.cp-banner--new .cp-banner__kicker { color: var(--ink); opacity: 1; }
.cp-banner--all {
  color: #fff;
  background: var(--ink-soft);
}
.cp-banner__kicker {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .78;
}
.cp-banner__title {
  margin: 5px 0 16px;
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.cp-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.cp-banner__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .30);
  transition: transform .22s ease;
}
.cp-banner--new .cp-banner__arrow {
  background: var(--cp-white);
  border-color: var(--cp-line-strong);
  color: var(--cp-blue-deep);
}
.cp-banner:hover .cp-banner__arrow { transform: translateX(4px); }
/* Force light text on the dark/blue banner tiles (defeats the theme's heading color). */
.cp-banner--sellers, .cp-banner--sellers .cp-banner__title, .cp-banner--sellers .cp-banner__cta,
.cp-banner--all, .cp-banner--all .cp-banner__title, .cp-banner--all .cp-banner__cta { color: #fff !important; }
.cp-banner--sellers .cp-banner__kicker { color: rgba(255,255,255,.85) !important; }
.cp-banner--all .cp-banner__kicker { color: rgba(244, 239, 230, .75) !important; }

/* ---------- 8. Third-party tested banner ----------------------------------- */
.cp-tested { padding-block: 0 clamp(48px, 7vw, 80px); }
.cp-tested__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: var(--cp-r-xl);
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px);
  background: var(--ink);
  box-shadow: var(--cp-shadow-m);
}
.cp-tested__title {
  margin: 10px auto 0;
  max-width: 22ch;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.cp-tested__sub {
  margin: 16px auto 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
}
.cp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
}
.cp-chip svg { flex: none; opacity: .9; }

/* ---------- 9. Mission band ------------------------------------------------- */
.cp-mission {
  padding-block: 0 clamp(64px, 8vw, 96px);
  background: var(--bone);
}
.cp-mission__inner {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}
.cp-mission__title {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
  text-wrap: balance;
}
.cp-mission__text {
  margin: 18px auto 0;
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--cp-muted);
}
.cp-legal {
  display: inline-block;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--cp-line);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--cp-faint);
}

/* ---------- 10. Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .cp-banners__grid { grid-template-columns: 1fr; }
  .cp-banner { min-height: 150px; }
}
@media (max-width: 760px) {
  .cp-shelf__nav { display: none; }   /* touch scroll takes over */
}

/* ---------- 11. Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cp-home *,
  .cp-home *::before,
  .cp-home *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== product card ===== */
/* ==========================================================================
   Cardinal Peptides — Product Card v2.0
   Load AFTER the design-system stylesheet (uses its custom properties).
   Apply the same markup/classes inside the WooCommerce product loop.
   ========================================================================== */

.cp-card {
  display: flex;
  flex-direction: column;
  background: var(--cp-white, #fff);
  border: 1px solid var(--cp-line, #E7E1D4);
  border-radius: var(--cp-r-l, 20px);
  padding: 10px 10px 18px;
  box-shadow: var(--cp-shadow-s, 0 2px 10px rgba(23, 32, 43, .04));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cp-card:hover {
  transform: translateY(-4px);
  border-color: var(--stone, #C9C7C0);
  box-shadow: var(--cp-shadow-m, 0 14px 36px rgba(23, 32, 43, .10));
}

/* Vial on a warm bone rounded field */
.cp-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--cp-r-l, 20px) - 8px);
  background: radial-gradient(120% 100% at 50% 0%,
              var(--white, #fff) 0%,
              var(--bone, #F4EFE6) 52%,
              var(--bone-deep, #EAE3D6) 100%);
  overflow: hidden;
  text-decoration: none;
}
.cp-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cp-card__media > svg {
  width: 54%;
  filter: drop-shadow(0 16px 20px rgba(23, 32, 43, .12));
  transition: transform .35s ease;
}
.cp-card:hover .cp-card__media > img,
.cp-card:hover .cp-card__media > svg { transform: translateY(-3px) scale(1.045); }

/* In-stock badge — a spec label, not a traffic light (no green anywhere) */
.cp-badge--stock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink, #17202B);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--stone-soft, #DDD9CF);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(23, 32, 43, .08);
}
.cp-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ink, #17202B);
  box-shadow: none;
}

/* Body */
.cp-card__body { padding: 14px 8px 0; display: flex; flex-direction: column; flex: 1; }
.cp-card__name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.cp-card__name a { color: inherit; text-decoration: none; transition: color .18s ease; }
.cp-card__name a:hover { color: var(--ink, #17202B); text-decoration: underline; }
.cp-card__dose {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--cp-muted, #5C6470);
}

/* Price row: current price, optional struck old price + % OFF pill */
.cp-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--cp-ink, #17202B);
}
.cp-card__price del {
  font-size: 14px;
  font-weight: 500;
  color: var(--cp-faint, #949A9F);
}
.cp-pill {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink, #17202B);
  background: var(--bone-deep, #EAE3D6);
  border-radius: 999px;
}

/* Actions */
.cp-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

/* Compliance microtext */
.cp-card__legal {
  margin: 13px 0 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cp-faint, #949A9F);
}

/* ===== Fable 5 — modern navbar + hero (transparent-over-hero) ===== */
/* ============================================================
   Cardinal Peptides — Navbar + Hero
   Contract: add class "cp-has-hero" to <body> on pages whose
   first section is .cp-hero (front page). Everywhere else the
   nav renders solid/frosted by default and body gets top padding.
   Uses existing :root tokens; only --cp-nav-offset is new.
   ============================================================ */

:root {
  --cp-nav-offset: 6.75rem; /* notice strip + nav bar */
}

/* ---- Fixed-nav page offset (non-hero pages) ---- */
body:not(.cp-has-hero) { padding-top: var(--cp-nav-offset); }
[id] { scroll-margin-top: calc(var(--cp-nav-offset) + 1rem); }

/* WP admin bar */
body.admin-bar .cp-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cp-nav { top: 46px; } }

/* ============================ NAV ============================ */

.cp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  font-family: var(--cp-font);
}

/* ---- Compliance strip (slim, elegant) ---- */
.cp-nav__notice {
  position: relative;
  z-index: 4;
  background: rgba(244, 239, 230, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 225, 212, 0.55);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cp-nav__notice-text {
  margin: 0;
  padding: 0.375rem 1.25rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-nav.is-scrolled .cp-nav__notice {
  background: rgba(250, 247, 241, 0.85);
  border-bottom-color: var(--cp-line);
}

/* ---- Bar: frosted solid by default ---- */
.cp-nav__bar {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--cp-line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent when overlaying the hero, at top of page, menu closed */
body.cp-has-hero .cp-nav:not(.is-scrolled):not(.is-open) .cp-nav__bar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.cp-has-hero .cp-nav:not(.is-scrolled):not(.is-open) .cp-nav__notice {
  background: rgba(255, 255, 255, 0.35);
  border-bottom-color: transparent;
}

/* Scrolled: frosted glass + hairline + soft shadow */
.cp-nav.is-scrolled .cp-nav__bar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--cp-line);
  box-shadow: 0 8px 30px rgba(23, 32, 43, 0.07);
}

.cp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ---- Logo: compass mark + the official stacked wordmark ------------------
   The client's lockup (assets/brand/cardinal-type.png) is two stacked lines:
     CARDINAL — ink, uppercase, large, wide tracking
     PEPTIDES — cardinal red, uppercase, smaller, wider tracking, centred under it
   Proportions measured off that artwork:
     cap-height ratio PEPTIDES/CARDINAL = 0.51
     tracking: CARDINAL ~.20em, PEPTIDES ~.45em
   The ratio is relaxed to .56 here: at nav scale a true .51 would drop PEPTIDES
   under 10px. The tracking contrast — the lockup's real signature — is kept.
   `margin-right: -<tracking>` cancels the trailing letter-space CSS adds after
   the last glyph, so each line centres on its glyphs and not on its box. */
.cp-nav__logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.cp-nav__logo:hover { opacity: .78; }
.cp-nav__mark { width: 34px; height: 34px; flex: none; }

.cp-nav__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.22rem;          /* master size — both lines are ems of this */
  line-height: 1;
  gap: .16em;
}
.cp-nav__logo-top {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .2em;
  margin-right: -.2em;
  text-transform: uppercase;
  color: var(--ink);           /* on the bone bar: 14.35:1 · on white: 16.43:1 */
}
.cp-nav__logo-main {
  font-size: .56em;
  font-weight: 600;
  letter-spacing: .44em;
  margin-right: -.44em;
  text-transform: uppercase;
  color: var(--cardinal-red);  /* sanctioned brand identity, not decoration.
                                  on bone: 5.95:1 · on white: 6.82:1 — both AA */
}

/* No hero-state reversal: .cp-nav__bar is --bone in EVERY state (see the rule
   near the end of this file, which re-lists all three bar selectors at equal
   specificity and wins on source order). The base lockup above is therefore
   correct and AA-passing everywhere. Do not reverse it here — bone CARDINAL on
   the bone bar is 1.0:1, i.e. invisible. If a transparent-over-dark nav is ever
   genuinely wanted, remove the bone bar background first AND reverse
   .cp-nav__mark, whose SVG hardcodes stroke #17202B / fills #B01E33. */

/* ---- Primary links (desktop) ---- */
.cp-nav__menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.cp-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-nav__link {
  display: inline-block;
  padding: 0.5rem 0.9375rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--cp-ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cp-nav__link:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.cp-nav__menu-extra { display: none; }

/* ---- Right cluster ---- */
.cp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.cp-nav__ghost {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cp-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.cp-nav__ghost:hover { color: var(--ink); background: rgba(23, 32, 43, 0.06); }

.cp-nav__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--cp-ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cp-nav__icon-btn:hover { background: rgba(23, 32, 43, 0.06); color: var(--ink); }

/* ---- Affiliate CTA (the money feature) — solid INK pill, never red ---- */
.cp-nav__cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(23, 32, 43, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.cp-nav__cta:hover {
  transform: translateY(-1px);
  background: var(--ink-soft);
  box-shadow: 0 6px 18px rgba(23, 32, 43, 0.18);
  color: var(--bone);
}
.cp-nav__cta:active { transform: translateY(0); }

/* ---- Hamburger ---- */
.cp-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  padding: 0;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.7);
  color: var(--cp-ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cp-nav__toggle:hover { background: var(--bone-deep); border-color: var(--stone); }
.cp-nav__toggle-icon--close { display: none; }
.cp-nav.is-open .cp-nav__toggle-icon--open { display: none; }
.cp-nav.is-open .cp-nav__toggle-icon--close { display: block; }

/* ---- Mobile scrim ---- */
.cp-nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(23, 32, 43, 0.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cp-nav.is-open .cp-nav__scrim { opacity: 1; visibility: visible; }

/* Focus rings */
.cp-nav a:focus-visible,
.cp-nav button:focus-visible,
.cp-hero a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Body scroll lock while menu is open */
html.cp-menu-locked,
html.cp-menu-locked body { overflow: hidden; }

/* ---- Responsive: trim ghost link on mid widths ---- */
@media (max-width: 1080px) {
  .cp-nav__actions .cp-nav__ghost { display: none; }
}

/* ---- Mobile (≤820px): collapse links + CTA into panel ---- */
@media (max-width: 820px) {
  .cp-nav__inner { height: 4rem; padding: 0 1rem; gap: 0.75rem; }
  .cp-nav__actions .cp-nav__cta { display: none; }
  .cp-nav__toggle { display: inline-flex; }

  .cp-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    display: block;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--cp-line);
    border-radius: 0 0 var(--cp-r-l) var(--cp-r-l);
    box-shadow: 0 24px 48px rgba(23, 32, 43, 0.14);
    padding: 0.75rem 1rem 1.25rem;
    max-height: calc(100dvh - 7.5rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s ease;
  }
  .cp-nav.is-open .cp-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cp-nav__links { flex-direction: column; align-items: stretch; gap: 0.125rem; }
  .cp-nav__link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: var(--cp-r-s);
    font-size: 1.0625rem;
    font-weight: 600;
  }

  .cp-nav__menu-extra {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cp-line);
  }
  .cp-nav__ghost--menu {
    display: block;
    text-align: center;
    padding: 0.8125rem 1rem;
    border: 1px solid var(--cp-line-strong);
    border-radius: 999px;
    color: var(--cp-ink);
    background: var(--cp-white);
  }
  .cp-nav__cta--menu {
    display: inline-flex;
    justify-content: center;
    margin-left: 0;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
}

/* =========================== HERO =========================== */

.cp-hero {
  position: relative;
  overflow: hidden;
  font-family: var(--cp-font);
  background:
    radial-gradient(1100px 620px at 88% -12%, var(--bone-deep) 0%, rgba(234, 227, 214, 0) 62%),
    radial-gradient(900px 540px at -6% 18%, var(--bone) 0%, rgba(244, 239, 230, 0) 58%),
    linear-gradient(180deg, var(--paper-high) 0%, var(--bone) 100%);
}

/* Subtle molecular dot lattice */
.cp-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 32, 43, 0.07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(720px 480px at 78% 30%, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: radial-gradient(720px 480px at 78% 30%, rgba(0, 0, 0, 0.9), transparent 70%);
}

.cp-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(7.5rem, 8rem + 2vh, 9.5rem) 1.5rem clamp(2rem, 3.5vh, 3rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

/* ---- Copy ---- */
.cp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.375rem;
  padding: 0.4375rem 0.9375rem;
  border: 1px solid var(--cp-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.71875rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(23, 32, 43, 0.06);
  animation: cp-hero-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cp-hero__eyebrow-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: none;
}

.cp-hero__title {
  margin: 0 0 1.375rem;
  font-size: clamp(2.5rem, 1.4rem + 3.9vw, 4.125rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.033em;
  color: var(--cp-ink);
  text-wrap: balance;
  animation: cp-hero-rise 0.7s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cp-hero__title-accent { color: var(--ink); }

.cp-hero__sub {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--cp-muted);
  text-wrap: pretty;
  animation: cp-hero-rise 0.7s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ---- CTAs ---- */
.cp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: cp-hero-rise 0.7s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cp-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.9375rem 1.75rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
/* Legacy hero primary is INK, not red — keeps the one-red-CTA budget safe. */
.cp-hero__btn--primary {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 0 6px 18px rgba(23, 32, 43, 0.18);
}
.cp-hero__btn--primary:hover {
  transform: translateY(-2px);
  background: var(--ink-soft);
  box-shadow: 0 6px 18px rgba(23, 32, 43, 0.18);
  color: var(--bone);
}
.cp-hero__btn--primary svg { transition: transform 0.2s ease; }
.cp-hero__btn--primary:hover svg { transform: translateX(3px); }
.cp-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cp-line-strong);
  color: var(--cp-ink);
}
.cp-hero__btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--cp-white);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 32, 43, 0.1);
}
.cp-hero__btn:active { transform: translateY(0); }

/* ---- Trust row ---- */
.cp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.875rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--cp-line);
  animation: cp-hero-rise 0.7s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cp-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--cp-ink);
  white-space: nowrap;
}
.cp-hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--bone-deep);
  color: var(--ink);
  flex-shrink: 0;
}

/* ---- Media ---- */
.cp-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  animation: cp-hero-rise 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cp-hero__media::before {
  content: "";
  position: absolute;
  inset: 6% -4% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 32, 43, 0.10), rgba(23, 32, 43, 0) 72%);
  filter: blur(24px);
  z-index: 0;
}
.cp-hero__img {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  height: auto;
  filter: drop-shadow(0 34px 56px rgba(23, 32, 43, 0.18));
  animation: cp-hero-float 6.5s ease-in-out infinite alternate;
}

@keyframes cp-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cp-hero-float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

/* ---- Hero responsive ---- */
@media (max-width: 980px) {
  .cp-hero__inner {
    grid-template-columns: 1fr;
    padding-top: clamp(8rem, 7rem + 4vh, 9.5rem);
    gap: 3rem;
    text-align: left;
  }
  .cp-hero__media { order: 2; }
  .cp-hero__img { width: min(78vw, 26rem); }
  .cp-hero__decor {
    -webkit-mask-image: radial-gradient(560px 420px at 50% 80%, rgba(0, 0, 0, 0.9), transparent 70%);
    mask-image: radial-gradient(560px 420px at 50% 80%, rgba(0, 0, 0, 0.9), transparent 70%);
  }
}
@media (max-width: 560px) {
  .cp-hero__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cp-hero__btn { width: 100%; justify-content: center; }
  .cp-hero__trust { gap: 0.875rem 1.25rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cp-hero__eyebrow,
  .cp-hero__title,
  .cp-hero__sub,
  .cp-hero__actions,
  .cp-hero__trust,
  .cp-hero__media,
  .cp-hero__img { animation: none; }
  .cp-nav__bar,
  .cp-nav__menu,
  .cp-nav__scrim,
  .cp-nav__cta,
  .cp-hero__btn { transition: none; }
}

/* Filled buttons must keep their own text color (beats .cp-home a { color: inherit }). */
.cp-home a.cp-btn--primary, .cp-home .cp-btn--primary { color: #fff; }
.cp-home a.cp-hero__btn--primary, .cp-home .cp-hero__btn--primary { color: var(--bone); }
.cp-home .cp-hero__btn--primary svg { color: var(--bone); stroke: currentColor; }


/* ===== Homepage v2 — "Bento" (Cardinal Peptides identity) ===== */
/* ============================================================
   Mobile-first · scoped under .cp-home · Sequel Sans display type
   Sections: hero bento · product rail · billboards · mission
   ============================================================ */

/* ---------- shared rhythm & type ---------- */
.cp-home .cp-sec{padding:16px 0}
.cp-home .cp-sec--rail{padding:clamp(30px,4.5vw,52px) 0 8px}
.cp-home .cp-eyebrow{margin:0 0 8px;font:600 .75rem/1 var(--cp-font);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
/* the recurring red gesture: a 24px hairline rule above every eyebrow */
.cp-home .cp-eyebrow::before{content:"";display:block;width:24px;height:2px;background:var(--cardinal-red);margin-bottom:10px}
.cp-mission__inner .cp-eyebrow::before{width:32px;margin-inline:auto}
.cp-home .cp-h2{margin:0 0 10px;font-family:var(--cp-font);font-size:clamp(1.6rem,1.1rem + 2.2vw,2.45rem);line-height:1.08;letter-spacing:-.03em;font-weight:700;color:var(--cp-ink)}
.cp-home .cp-sub{margin:0;font-size:clamp(.98rem,2.6vw,1.1rem);line-height:1.55;color:var(--cp-muted);max-width:34em}
.cp2-ruo{margin:14px 0 0;font-size:.72rem;letter-spacing:.02em;color:var(--cp-faint)}
.cp2-ruo--onblue{color:rgba(255,255,255,.55)}

/* ---------- entrance + scroll-reveal motion ---------- */
@keyframes cp2-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
html.cp2-js .cp2-reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.16,.84,.28,1),transform .8s cubic-bezier(.16,.84,.28,1)}
html.cp2-js .cp2-reveal.is-in{opacity:1;transform:none}
html.cp2-js .cp2-bb__cards .cp2-reveal:nth-child(2){transition-delay:.14s}

/* ---------- A-Grade badge (ink assay stamp — no green) ---------- */
.cp-home .cp2-agrade{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:999px;background:var(--ink);color:var(--bone);font:700 .85rem/1 var(--cp-font);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;box-shadow:0 6px 18px rgba(23,32,43,.35)}
.cp-home .cp2-agrade--mini{left:10px;bottom:auto;top:50%;transform:translateY(-50%);padding:5px 10px;font-size:.66rem;gap:4px;box-shadow:0 4px 12px rgba(23,32,43,.3)}

/* ============================================================
   1 · HERO — display headline + bento grid
   ============================================================ */
.cp2-hero{padding:calc(var(--cp-nav-offset) + clamp(14px,2.5vh,34px)) 0 clamp(10px,1.8vw,22px);background:var(--bone)}
.cp2-hero__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 32px;margin:0 0 clamp(18px,3vw,30px)}
/* the hero eyebrow claims its own row so it sits ABOVE the title, not beside it */
.cp2-hero__head .cp-eyebrow{flex:0 0 100%;margin:0}
.cp2-hero__title{margin:0;font-size:clamp(2.35rem,1.15rem + 5.4vw,4.9rem);font-weight:700;line-height:1;letter-spacing:-.045em;color:var(--cp-ink);text-wrap:balance;animation:cp2-rise .8s cubic-bezier(.16,.84,.28,1) both}
.cp2-accent{color:var(--ink)}
.cp2-hero__meta{margin:0 0 .55em;display:flex;flex-direction:column;gap:7px;padding-left:14px;border-left:2px solid var(--stone);font-size:.8125rem;font-weight:500;line-height:1.3;letter-spacing:-.005em;color:var(--cp-muted);animation:cp2-rise .8s .12s cubic-bezier(.16,.84,.28,1) both}
@media (max-width:719px){.cp2-hero__meta{display:none}}

/* ---- bento grid ---- */
.cp2-bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.cp2-tile{position:relative;display:block;border-radius:clamp(22px,2.4vw,30px);overflow:hidden;text-decoration:none;animation:cp2-rise .9s cubic-bezier(.16,.84,.28,1) both}
.cp2-tile:nth-child(1){animation-delay:.1s}
.cp2-tile:nth-child(2){animation-delay:.18s}
.cp2-tile:nth-child(3){animation-delay:.26s}
.cp2-tile:nth-child(4){animation-delay:.32s}
.cp2-tile:nth-child(5){animation-delay:.38s}
.cp2-tile:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* big media tiles */
.cp2-tile--best,.cp2-tile--all{aspect-ratio:1/1.16;box-shadow:var(--cp-shadow-m)}
.cp2-tile--best{background:var(--cardinal-red)}
/* ink duotone scrim over the legacy royal-blue photo (reshoot pending) */
.cp2-tile--best::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(23,32,43,.30),rgba(23,32,43,0) 55%);pointer-events:none}
.cp2-tile--all{background:linear-gradient(160deg,var(--paper-high),var(--bone-deep))}
.cp2-tile__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
/* THE "blank bone band under the Shop-all tile" FIX.
   The base reset at the top of this file — `.cp-home img, .cp-home svg
   { height: auto }` — is specificity (0,1,1) and beat the `height:100%` above,
   which is only (0,1,0). So height resolved to `auto`. An <img> is a REPLACED
   element: with height:auto it takes its intrinsic ratio instead of stretching to
   inset:0, so a 1400x933 photo in a 435x420 tile rendered 435x290 and left 130px
   of the tile's bone gradient showing underneath — and object-fit:cover never got
   a box to crop against. (Mobile was worse: ~84px of a 197px tile.)
   ONLY `height` is re-asserted here, at (0,2,0), so the reset still applies to
   every other image. Deliberately NOT folded into the rule above: doing that
   would raise object-position/transition to (0,2,0) too, which would outrank both
   `.cp2-tile--best .cp2-tile__img` (0,2,0, wins on order today) and the
   prefers-reduced-motion `transition:none` (0,1,0) — silently breaking the
   best-seller crop and reduced-motion. */
.cp-home .cp2-tile__img{height:100%}
.cp2-tile--best .cp2-tile__img{object-position:66% center}
.cp2-tile--best:hover .cp2-tile__img,.cp2-tile--all:hover .cp2-tile__img{transform:scale(1.045)}
.cp2-tile__label{position:absolute;top:16px;left:18px;z-index:2;font:600 1.06rem/1.2 var(--cp-font);letter-spacing:-.015em;color:var(--cp-ink)}
.cp2-tile--best .cp2-tile__label{color:var(--bone)}
.cp2-tile__go{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--ink);box-shadow:var(--cp-shadow-s);transition:transform .25s ease}
.cp2-tile--best .cp2-tile__go{background:rgba(244,239,230,.18);color:var(--bone);box-shadow:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.cp2-tile:hover .cp2-tile__go{transform:translateX(3px)}

/* purity chip on the best-sellers tile */
.cp2-chip{position:absolute;left:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:var(--bone);color:var(--ink);font:600 .8rem/1 var(--cp-font);letter-spacing:-.005em;box-shadow:0 4px 18px rgba(23,32,43,.14)}
.cp2-chip__dot{width:8px;height:8px;border-radius:999px;background:var(--ink);box-shadow:none}

/* wide row tiles */
.cp2-tile--wide{grid-column:1 / -1;display:flex;align-items:center;min-height:92px;background:var(--cp-white);border:1px solid var(--cp-line);box-shadow:var(--cp-shadow-s);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.cp2-tile--wide:hover{transform:translateY(-2px);border-color:var(--cp-line-strong);box-shadow:var(--cp-shadow-m)}
.cp2-tile__text{position:relative;z-index:2;display:flex;flex-direction:column;gap:3px;padding:18px 8px 18px 18px;flex:1 1 auto;min-width:0}
.cp2-tile--wide .cp2-tile__label{position:static;font-size:1.02rem;color:var(--cp-ink)}
.cp2-tile__sub{font:400 .8rem/1.35 var(--cp-font);color:var(--cp-muted)}
.cp2-tile__figure{position:absolute;top:0;bottom:0;right:52px;width:32%;overflow:hidden}
/* Audited against the same reset: `.cp-home img { height:auto }` is (0,1,1) and
   so is this rule — a tie, which this wins by sitting later in the same file, so
   height:100% does apply and the figures already fill correctly. Deliberately NOT
   raised to (0,2,1): that would outrank the per-figure object-position overrides
   below (--hand/--scientist/--lab, each (0,1,1)) and flatten them all to centre. */
.cp2-tile__figure img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.cp2-tile__figure--scientist img{object-position:center 14%}
.cp2-tile__figure--hand img{object-position:center 32%}
.cp2-tile__figure--lab img{object-position:center 55%}
.cp2-tile--wide:hover .cp2-tile__figure img{transform:scale(1.06)}
.cp2-tile__figure::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to right,var(--cp-white) 0%,rgba(255,255,255,0) 42%)}
.cp2-tile__go--chev{top:50%;right:12px;transform:translateY(-50%);width:30px;height:30px;background:var(--bone-deep);color:var(--ink);box-shadow:none}
.cp2-tile:hover .cp2-tile__go--chev{transform:translateY(-50%) translateX(3px)}
.cp2-tile--static{cursor:default}
.cp2-tile--static:hover{transform:none;border-color:var(--cp-line);box-shadow:var(--cp-shadow-s)}
.cp2-tile--static:hover .cp2-tile__figure img{transform:none}

/* ============================================================
   2 · PRODUCT RAIL (horizontal scroll)
   ============================================================ */
.cp-home .cp-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:16px max(20px,calc((100vw - 1160px)/2)) 22px;scrollbar-width:none}
.cp-home .cp-rail::-webkit-scrollbar{display:none}
.cp-home .cp-rail > *{flex:0 0 74%;max-width:290px;scroll-snap-align:start}
.cp-home .cp-rail__foot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-bottom:clamp(26px,4vw,44px)}

/* ============================================================
   3 · BILLBOARDS (ink + bone panels w/ frosted sub-cards)
   ============================================================ */
.cp2-bb{padding:clamp(6px,1.2vw,14px) 0}
.cp2-bb .cp-wrap{padding-inline:clamp(10px,2.5vw,48px);max-width:1240px}
.cp2-bb__panel{position:relative;overflow:hidden;border-radius:clamp(26px,3.2vw,42px);padding:clamp(30px,5vw,64px) clamp(16px,3.4vw,52px) clamp(16px,2.4vw,36px);text-align:center;color:var(--cp-white)}
/* the page's one big dark brand moment */
.cp2-bb--blue .cp2-bb__panel{background:linear-gradient(150deg,var(--cardinal-red-deep),var(--cardinal-red) 62%,var(--cardinal-red-bright));box-shadow:0 24px 60px rgba(142,24,41,.32)}
.cp2-bb--blue .cp2-bb__mark{position:absolute;right:-40px;bottom:-40px;width:280px;opacity:.07;pointer-events:none;z-index:0}
/* second billboard flips to bone — ink type on a warm panel */
.cp2-bb--steel .cp2-bb__panel{background:var(--bone-deep);border:1px solid var(--stone);color:var(--ink);box-shadow:var(--cp-shadow-m)}
.cp2-bb--steel .cp2-bb__title{color:var(--ink)}
.cp2-bb--steel .cp2-card{background:var(--white);border-color:var(--stone-soft);-webkit-backdrop-filter:none;backdrop-filter:none}
.cp2-bb--steel .cp2-card__title{color:var(--ink)}
.cp2-bb--steel .cp2-card__sub{color:var(--cp-muted)}
.cp2-bb--steel .cp2-ruo--onblue{color:var(--cp-faint)}
.cp2-bb__title{margin:0 auto;max-width:19ch;font-size:clamp(1.6rem,1rem + 2.8vw,2.7rem);font-weight:700;letter-spacing:-.03em;line-height:1.08;color:var(--cp-white);text-wrap:balance}
.cp2-bb__hero{position:relative;margin:clamp(10px,2vw,20px) auto 0;width:min(72%,360px)}
.cp2-bb__hero::before{content:none}
.cp2-bb__hero img{position:relative;width:100%;height:auto;display:block;filter:drop-shadow(0 26px 46px rgba(60,8,16,.42))}
.cp2-bb__ctas{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:clamp(-46px,-3vw,-26px)}
.cp2-pill{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 27px;border-radius:999px;font:600 .98rem/1 var(--cp-font);letter-spacing:-.005em;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.cp2-pill:focus-visible{outline:3px solid rgba(255,255,255,.75);outline-offset:2px}
.cp2-bb--steel .cp2-pill:focus-visible{outline-color:var(--ink)}
/* on the INK panel */
.cp-home a.cp2-pill--white{background:var(--white);color:var(--ink);box-shadow:0 10px 26px rgba(23,32,43,.28)}
.cp-home a.cp2-pill--white:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(23,32,43,.34)}
.cp-home a.cp2-pill--frost{background:rgba(244,239,230,.14);border:1px solid rgba(244,239,230,.4);color:var(--bone);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cp-home a.cp2-pill--frost:hover{background:rgba(244,239,230,.22);transform:translateY(-2px)}
/* on the BONE panel — white would vanish, so it goes solid ink */
.cp-home .cp2-bb--steel a.cp2-pill--white{background:var(--ink);color:var(--bone)}
.cp-home .cp2-bb--steel a.cp2-pill--frost{background:transparent;border:1px solid var(--stone);color:var(--ink);-webkit-backdrop-filter:none;backdrop-filter:none}
.cp-home .cp2-bb--steel a.cp2-pill--frost:hover{background:var(--paper-high)}

/* frosted sub-cards */
.cp2-bb__cards{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:12px;margin-top:clamp(24px,3.4vw,40px)}
.cp2-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:clamp(18px,2vw,26px);background:rgba(244,239,230,.06);border:1px solid rgba(244,239,230,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:clamp(22px,3vw,32px) clamp(18px,2.6vw,28px) 0;text-align:center}
.cp2-card__title{margin:0;font-size:clamp(1.22rem,1rem + 1vw,1.55rem);font-weight:700;letter-spacing:-.02em;line-height:1.15;color:var(--bone)}
.cp2-card__sub{margin:9px auto 0;max-width:32ch;font-size:.88rem;line-height:1.5;color:rgba(244,239,230,.75)}
.cp2-card__media{position:relative;display:block;margin:clamp(16px,2.4vw,24px) calc(clamp(18px,2.6vw,28px) * -1) 0}
.cp2-card__media img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 38%;display:block}
.cp2-card .cp2-agrade{z-index:2}

/* ============================================================
   4 · MISSION BAND (v2 spacing; beats theme.css .cp-mission p colors)
   ============================================================ */
.cp-home--v2 .cp-mission{padding:clamp(44px,7vw,88px) 0 clamp(60px,8vw,100px)}
.cp-home--v2 .cp-mission p.cp-eyebrow{color:var(--ink)}
.cp-home--v2 .cp-mission p.cp-mission__text{color:var(--cp-muted)}
.cp-home--v2 .cp-mission p.cp-legal{color:var(--cp-faint)}

/* ============================================================
   TABLET · min-width 720px
   ============================================================ */
@media (min-width:720px){
  .cp2-bento{grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
  .cp2-tile--best{grid-column:span 7;aspect-ratio:auto;min-height:340px}
  .cp2-tile--all{grid-column:span 5;aspect-ratio:auto;min-height:340px}
  .cp2-tile--wide{grid-column:span 12;min-height:104px}
  .cp2-tile__label{top:22px;left:24px;font-size:1.3rem}
  .cp2-tile--wide .cp2-tile__label{font-size:1.12rem}
  .cp2-tile__text{padding:20px 12px 20px 24px}
  .cp2-tile__go{top:16px;right:16px;width:38px;height:38px}
  .cp2-tile__go--chev{top:50%;right:16px;width:32px;height:32px}
  .cp2-chip{left:22px;bottom:20px;font-size:.85rem}
  .cp2-tile__figure{right:64px;width:26%}
  .cp-home .cp-rail > *{flex-basis:300px}
  .cp2-bb__cards{grid-template-columns:1fr 1fr;gap:14px}
  .cp2-bb__hero{width:min(46%,380px)}
  .cp2-bb__ctas{margin-top:clamp(-52px,-3.4vw,-34px)}
}

/* ============================================================
   DESKTOP · min-width 1024px
   ============================================================ */
@media (min-width:1024px){
  .cp2-tile--best,.cp2-tile--all{min-height:420px}
  .cp2-tile--wide{grid-column:span 4;flex-direction:column;align-items:stretch;min-height:0}
  .cp2-tile__figure{position:relative;order:-1;top:auto;bottom:auto;right:auto;width:100%;height:196px}
  .cp2-tile__figure::before{background:linear-gradient(to top,var(--cp-white) 0%,rgba(255,255,255,0) 30%)}
  .cp2-tile__text{flex:1;padding:4px 20px 22px}
  .cp2-tile__go--chev{top:14px;right:14px;transform:none}
  .cp2-tile:hover .cp2-tile__go--chev{transform:translateX(3px)}
  .cp-home .cp2-agrade--mini{left:16px;top:auto;bottom:16px;transform:none;font-size:.72rem;padding:6px 12px}
  .cp2-bb__hero{width:min(34%,400px)}
  .cp2-card__media img{aspect-ratio:16/9}
}

/* respect reduced motion */
@media (prefers-reduced-motion:reduce){
  .cp2-hero__title,.cp2-hero__meta,.cp2-tile{animation:none}
  html.cp2-js .cp2-reveal{opacity:1;transform:none;transition:none}
  .cp2-tile,.cp2-tile__img,.cp2-tile__figure img,.cp2-pill,.cp2-tile__go{transition:none}
}

/* ===== ink top (matches iOS status bar) + rounded bone content panel ===== */
html { background: var(--cp-blue); }
.cp-nav { background: var(--cp-blue); }
.cp-nav__notice { background: transparent; border-bottom: none; }
.cp-nav__notice, .cp-nav__notice-text, .cp-nav__notice * { color: rgba(244, 239, 230, .78); }
.cp-nav.is-scrolled .cp-nav__notice,
body.cp-has-hero .cp-nav:not(.is-scrolled):not(.is-open) .cp-nav__notice { background: transparent; border-bottom-color: transparent; }
/* bone content panel tucked under the ink notice, rounded top corners reveal the ink */
.cp-nav__bar,
.cp-nav.is-scrolled .cp-nav__bar,
body.cp-has-hero .cp-nav:not(.is-scrolled):not(.is-open) .cp-nav__bar {
  background: var(--bone); -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: 20px 20px 0 0; border-bottom: 1px solid var(--cp-line);
}

/* ===== Nav: true-center the primary links on desktop; compact peptime-style hero ===== */
@media (min-width: 821px) {
  .cp-nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .cp-nav__logo { justify-self: start; }
  .cp-nav__menu { justify-self: center; flex: 0 1 auto; }
  .cp-nav__actions { justify-self: end; }
}
/* ===== Dark watermark footer (overrides theme.css light footer) ===== */
.cp-footer--dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--cardinal-red);   /* the page's closing red rule */
  color: rgba(255, 255, 255, .7);
  font-family: var(--cp-font);
  padding: 4.5rem 1.5rem 0;
}
.cp-footer--dark .cp-footer__masthead {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.25rem;
}
/* Reversed lockup — same construction as the nav, flipped for the ink surface. */
.cp-footer--dark .cp-footer__logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  transition: opacity .2s ease;
}
.cp-footer--dark .cp-footer__logo:hover { opacity: .78; }
.cp-footer__mark { width: 40px; height: 40px; flex: none; }

.cp-footer__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;           /* master size — both lines are ems of this */
  line-height: 1;
  gap: .16em;
}
.cp-footer--dark .cp-footer__logo-top {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .2em;
  margin-right: -.2em;
  text-transform: uppercase;
  color: var(--bone);                  /* #F4EFE6 on --ink = 14.35:1 */
}
.cp-footer--dark .cp-footer__logo-main {
  font-size: .56em;
  font-weight: 600;
  letter-spacing: .44em;
  margin-right: -.44em;
  text-transform: uppercase;
  /* Brand #B01E33 on --ink is 2.41:1 — fails AA badly. Lifted tint instead:
     same hue, 4.80:1. Reversed lockup only; the nav keeps the true brand red. */
  color: var(--cardinal-red-lifted);
}
.cp-footer--dark .cp-footer__tagline {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .cp-footer--dark .cp-footer__masthead {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}
.cp-footer--dark h4 { color: rgba(255,255,255,.55); }
.cp-footer--dark a { color: rgba(255, 255, 255, .62); }
.cp-footer--dark a:hover { color: #fff; }
.cp-footer--dark .cp-footer__divider { border-top-color: rgba(255, 255, 255, .09); }
.cp-footer--dark .cp-footer__company { color: rgba(255, 255, 255, .55); }
.cp-footer--dark .cp-footer__company strong { color: #fff; }
.cp-footer--dark .cp-footer__company a { color: rgba(255, 255, 255, .62); }
.cp-footer--dark .cp-footer__company a:hover { color: #fff; }
.cp-footer--dark .cp-footer__disclaimer { color: rgba(255,255,255,.55); }
.cp-footer--dark .cp-footer__disclaimer strong { color: rgba(255, 255, 255, .62); }
.cp-footer--dark .cp-footer__disclaimer a { color: rgba(255, 255, 255, .55); text-decoration: underline; }
.cp-footer--dark .cp-footer__bottom { color: rgba(255, 255, 255, .5); } /* 5.10:1 on --ink — .45 was 4.36:1, an AA fail on 12px body text */
.cp-footer--dark .cp-footer__brand { color: rgba(255, 255, 255, .8); }
.cp-footer--dark .cp-payments img { display: block; height: 26px; width: auto; }

/* giant cropped wordmark */
.cp-footer--dark .cp-footer__watermark {
  display: block;
  margin: 2.5rem auto -0.28em;
  text-align: center;
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: rgba(244, 239, 230, .05);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}


/* ===== Cardinal UI pass ===== */
/* A-GRADE: top-right of the card, frosted over the image */
.cp-home .cp2-agrade{position:absolute;top:12px;right:12px;left:auto;bottom:auto;z-index:3;
  display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
  background:rgba(23,32,43,.55);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);
  border:1px solid rgba(255,255,255,.22);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cp-home .cp2-card__media{position:relative;overflow:hidden}
/* card media fills — kills the blank band under the left image */
.cp-home .cp2-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.cp-home .cp2-card__media{aspect-ratio:4/3}
/* flag needs headroom */
.cp-home .cp2-card--flag .cp2-card__media img{object-position:center 62%}

/* rail foot: centre the CTA + the research-use line */
.cp-home .cp-rail__foot{display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:.85rem;padding-top:1.25rem}
.cp-home .cp-rail__foot .cp2-ruo,.cp-home .cp-rail__foot .cp-legal{text-align:center;margin:0}

/* product titles: always one line so the cards align */
.cp-home .cp-card__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
.cp-home .cp-card__name a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}

/* nav: links must never collide with the action cluster */
.cp-nav__links a,.cp-nav__link{white-space:nowrap}
.cp-nav__ghost{white-space:nowrap}
@media (min-width:821px) and (max-width:1180px){
  .cp-nav__links{gap:.05rem}
  .cp-nav__link{padding-inline:.5rem;font-size:.86rem}
  .cp-nav__actions{gap:.25rem}
  .cp-nav__actions .cp-nav__ghost{display:none}
}

/* hero claim rotator — one badge, claims fade through */
.cp-home .cp2-hero__meta{border-left:none;padding:0;margin-top:1.1rem}
.cp2-rotator{position:relative;display:inline-flex;align-items:center;gap:.6rem;
  padding:.6rem 1.15rem;border:1px solid var(--stone-soft);border-radius:999px;
  background:var(--white);box-shadow:var(--cp-shadow-s)}
.cp2-rotator__dot{width:7px;height:7px;border-radius:50%;background:var(--cardinal-red);flex:none}
.cp2-rotator__track{position:relative;display:block;height:1.3rem;min-width:min(21rem,64vw)}
.cp2-rotator__item{position:absolute;inset:0;white-space:nowrap;opacity:0;transform:translateY(7px);
  font-size:.9rem;font-weight:600;color:var(--ink);animation:cp2-rot 12s infinite both}
.cp2-rotator__item:nth-child(2){animation-delay:4s}
.cp2-rotator__item:nth-child(3){animation-delay:8s}
@keyframes cp2-rot{0%{opacity:0;transform:translateY(7px)}
  4%,29%{opacity:1;transform:translateY(0)}
  33%,100%{opacity:0;transform:translateY(-7px)}}
@media (prefers-reduced-motion:reduce){
  .cp2-rotator__item{animation:none;opacity:0}
  .cp2-rotator__item:first-child{opacity:1}
}

/* ===== Billboard redesign: bigger split-weight title, full-height clipped hand ===== */
.cp-home .cp2-bb__panel{position:relative;overflow:hidden;padding-bottom:0}
.cp-home .cp2-bb__title{
  font-size:clamp(2rem,4.6vw,3.6rem);line-height:1.08;letter-spacing:-.025em;
  max-width:16ch;margin-inline:auto;text-wrap:balance}
.cp-home .cp2-bb__title-a{font-weight:300;opacity:.92}
.cp-home .cp2-bb__title-b{font-weight:600}
/* hand: tall, anchored to the panel floor so the forearm is clipped by the red edge */
.cp-home .cp2-bb__hero{width:min(62%,340px);margin:clamp(6px,1.4vw,14px) auto 0;
  display:block;position:relative;z-index:1}
.cp-home .cp2-bb__hero img{width:100%;height:auto;display:block;margin-bottom:-2px;
  filter:drop-shadow(0 30px 52px rgba(60,8,16,.45))}
/* CTAs sit below the hand, never over it */
.cp-home .cp2-bb__ctas{position:relative;z-index:2;margin-top:clamp(14px,2vw,22px);
  display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}
.cp-home .cp2-bb__cards{position:relative;z-index:2;margin-top:clamp(20px,3vw,34px);padding-bottom:clamp(18px,2.6vw,28px)}
@media (min-width:900px){
  .cp-home .cp2-bb__hero{width:min(40%,320px)}
  .cp-home .cp2-bb__title{max-width:20ch}
}
@media (max-width:640px){
  .cp-home .cp2-bb__hero{width:min(74%,280px)}
  .cp-home .cp2-bb__title{font-size:clamp(1.75rem,7.2vw,2.3rem);max-width:14ch}
}

/* ===== Billboard v2: arm is cut by the CARDS edge, not floating in open red ===== */
.cp-home .cp2-bb__panel{display:flex;flex-direction:column;align-items:center;overflow:hidden}
.cp-home .cp2-bb__title{order:1}
.cp-home .cp2-bb__ctas{order:2;margin-top:clamp(16px,2.2vw,26px);margin-bottom:clamp(4px,1vw,10px)}
.cp-home .cp2-bb__hero{order:3;margin:0 auto;align-self:center}
/* no shadow — it draws the eye to the cut */
.cp-home .cp2-bb__hero img{filter:none;margin-bottom:0;display:block}
/* cards butt straight against the arm so the slice is hidden under their edge */
.cp-home .cp2-bb__cards{order:4;margin-top:0;width:100%;position:relative;z-index:3}
.cp-home .cp2-bb__cards::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:transparent}
/* flag: show the flag, not a slab of sky */
.cp-home .cp2-card--flag .cp2-card__media img{object-position:center 58%;transform:scale(1.04)}
