﻿/* ============================================================
   AXIOM PEPTIDES  -  MAIN STYLESHEET
   Taste-Skill: DESIGN_VARIANCE 8 / MOTION_INTENSITY 6 / VISUAL_DENSITY 3
   Theme: Dark (locked). Accent: #1F6FEB (locked). Radius: --r system (locked).
   ============================================================ */

/* --- Fonts -------------------------------------------------- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Geist+Mono:wght@400;500&display=swap');

/* --- Reset -------------------------------------------------- */
*,::before,::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--clr-text-2);
  background-color: var(--clr-bg);
  /* clip (not hidden): prevents horizontal scrollbar WITHOUT turning body
     into a scroll container, which would break position:sticky pinning. */
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Hard safety net: nothing may exceed the viewport width on phones
   (a single overflowing element forces the layout wide, which makes
   the mobile browser shrink-to-fit and breaks every media query). */
@media (max-width: 768px) {
  #site-header, main, footer, section { max-width: 100vw; overflow-x: clip; }
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Utilities ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 900px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Typography --------------------------------------------- */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--clr-text-1);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--clr-text-1);
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-text-1);
}

.display-sm {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--clr-text-1);
}

.body-lg { font-size: var(--text-lg); line-height: 1.7; }
.body-sm { font-size: var(--text-sm); line-height: 1.6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-text-1) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75em 1.75em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-full);
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(.98); }

.btn--primary {
  background: var(--clr-accent);
  color: #ffffff;
  box-shadow: 0 0 0 0 var(--clr-accent-glow);
}

.btn--primary:hover {
  background: var(--clr-accent-h);
  box-shadow: 0 0 32px var(--clr-accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text-1);
  border: 1.5px solid var(--clr-border);
}

.btn--ghost:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55em 1.2em;
  font-size: var(--text-xs);
}

/* --- Badge / Chip ------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .3em .8em;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

.badge--accent {
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  border: 1px solid var(--clr-border-a);
}

.badge--surface {
  background: var(--clr-surface-2);
  color: var(--clr-text-3);
  border: 1px solid var(--clr-border);
}

.badge--dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-1);
  flex-shrink: 0;
}

/* Brand logo image (nav + footer) */
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer .nav-logo-img { height: 40px; }

@media (max-width: 480px) {
  .nav-logo-img { height: 34px; }
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--clr-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #ffffff;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-links a:hover { color: var(--clr-text-1); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--clr-accent); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 34px;                 /* wider = more obvious tap target */
  padding: var(--sp-2) 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text-1);
  border-radius: var(--r-full);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base);
}

/* Mobile nav */
/* Full-screen mobile menu overlay. Direct child of <body> + very high
   z-index + SOLID background = always covers the whole page opaquely,
   immune to any ancestor containing-block traps. */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #070B14;                 /* fully opaque */
  z-index: 4000;                        /* above the header (1000) and everything else */
  padding: var(--sp-5) var(--sp-6) var(--sp-10);
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.open { display: flex; }

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
}

.nav-drawer-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-1);
}
.nav-drawer-close:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.nav-drawer-links { display: flex; flex-direction: column; }
.nav-drawer-actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-8); }
.nav-drawer-actions .btn { width: 100%; }

.nav-drawer a {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--clr-text-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--dur-fast);
}
.nav-drawer-actions a { border-bottom: 0; }

.nav-drawer a:hover { color: var(--clr-accent); }

/* ============================================================
   SECTION: HERO
   Pattern: Editorial Manifesto  -  Full viewport, editorial type
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

/* Hero now relies on the body-level bg-mesh + bg-noise + DNA canvas.
   Local hero-bg just provides an extra accent vignette. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 35%, rgba(31, 111, 235, .10) 0%, transparent 65%);
}

/* Floating molecular visualization */
.hero-molecule {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: clamp(300px, 45vw, 650px);
  height: clamp(300px, 45vw, 650px);
  opacity: .18;
  z-index: 1;
}

.hero-molecule svg { width: 100%; height: 100%; animation: mol-rotate 25s linear infinite; }

@keyframes mol-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--sp-24) var(--sp-20);
  max-width: 920px;
}

.hero-eyebrow {
  margin-bottom: var(--sp-10);
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline {
  margin-bottom: var(--sp-7);
  opacity: 0;
  transform: translateY(30px);
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -0.045em;
}

.hero-line-accent {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), rgba(31, 111, 235, 0));
  border-radius: var(--r-full);
  margin: var(--sp-2) 0 var(--sp-8);
  box-shadow: 0 0 16px rgba(31, 111, 235, .5);
}

.hero-subtext {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--clr-text-3);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: var(--sp-12);
  opacity: 0;
  transform: translateY(20px);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Premium hero stats card */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-16);
  padding: var(--sp-7) var(--sp-8);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent),
    linear-gradient(180deg, rgba(15, 21, 32, .55), rgba(11, 16, 26, .55));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 12px 40px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(20px);
  max-width: 720px;
}

.hero-stats > div {
  position: relative;
}

.hero-stats > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: calc(var(--sp-8) * -.5 - 0.5px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .08), transparent);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clr-text-1) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.025em;
  font-feature-settings: "tnum" on;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--clr-text-4);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: var(--sp-3);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
  .hero-stats > div:nth-child(2)::after { display: none; }
}

/* ----- MOBILE HERO -----
   The DNA is now a CENTERED faint backdrop on phones (set in JS). Add a
   legibility scrim so the hero text reads clearly over it, and size the
   headline comfortably for narrow screens. */
@media (max-width: 760px) {
  .hero { padding-top: 64px; }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;                 /* above the see-through DNA, below the text */
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(7, 11, 20, .55) 0%,
      rgba(7, 11, 20, .25) 35%,
      rgba(7, 11, 20, .25) 60%,
      rgba(7, 11, 20, .8) 100%);
  }

  .hero-content {
    z-index: 2;
    padding-block: var(--sp-16) var(--sp-12);
    max-width: 100%;
  }

  .hero-eyebrow { margin-bottom: var(--sp-6); }

  .hero-headline {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 1;
    margin-bottom: var(--sp-5);
  }

  .hero-subtext {
    font-size: 1.05rem;
    max-width: 100%;
    margin-bottom: var(--sp-8);
  }

  .hero-actions { gap: var(--sp-3); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-line-accent { margin-block: var(--sp-2) var(--sp-6); }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); }
}

/* ============================================================
   MOBILE SECTION RHYTHM
   Desktop sections use 6-8rem (--sp-24/--sp-32) of block padding for a
   spacious, airy feel. On a phone that turns into huge dead gaps between
   elements, so we compress every section to a tighter, consistent
   vertical rhythm. (Targets the section wrappers; inner content spacing
   is untouched.)
   ============================================================ */
@media (max-width: 768px) {
  .section-bento,
  .section-how,
  .section-featured,
  .section-benefits,
  .section-library-preview,
  .section-research,
  .section-cta,
  .section-goal-finder,
  .section-products {
    padding-block: var(--sp-12);
  }
  .site-footer { padding-block: var(--sp-12) var(--sp-8); }

  /* Large intra-section margins (4rem) read as dead gaps on a phone - halve
     them so the rhythm stays tight inside sections too. */
  .hero-stats     { margin-top: var(--sp-8); }
  .benefits-intro { margin-bottom: var(--sp-8); }
  .footer-grid    { margin-bottom: var(--sp-8); }
  .h-pin-intro    { margin-bottom: var(--sp-6); }
}

/* ============================================================
   SECTION: CATEGORY BENTO
   Pattern: Asymmetric Bento Grid
   ============================================================ */
.section-bento { padding-block: var(--sp-24) var(--sp-32); }

.bento-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.bento-intro-text { max-width: 520px; }
.bento-intro-text .display-md { margin-top: var(--sp-4); }

/* Asymmetric 4-column grid */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-4);
}

.bento-cell {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base),
              box-shadow var(--dur-base);
}

.bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-a);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 0 1px var(--clr-border-a);
}

/* Hero cell  -  spans 2 rows */
.bento-cell--hero {
  grid-row: span 2;
  min-height: 420px;
  padding: var(--sp-8);
}

.bento-cell--md { min-height: 200px; padding: var(--sp-6); }
.bento-cell--sm { min-height: 180px; padding: var(--sp-5); }

/* Each category gets a unique glow tint */
.bento-cell[data-cat="body-composition"] { --cell-glow: rgba(31,111,235,.15); }
.bento-cell[data-cat="healing"]          { --cell-glow: rgba(34,197,94,.12); }
.bento-cell[data-cat="cognitive"]        { --cell-glow: rgba(139,92,246,.12); }
.bento-cell[data-cat="anti-aging"]       { --cell-glow: rgba(249,115,22,.12); }
.bento-cell[data-cat="immune"]           { --cell-glow: rgba(236,72,153,.12); }
.bento-cell[data-cat="skin-hair"]        { --cell-glow: rgba(234,179,8,.12); }

.bento-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 0% 0%, var(--cell-glow, transparent), transparent 70%);
  pointer-events: none;
}

.bento-cell-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  font-size: 1.4rem;
}

.bento-cell--hero .bento-cell-icon { width: 56px; height: 56px; margin-bottom: var(--sp-8); }

.bento-cell-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-2);
}

.bento-cell--hero .bento-cell-name { font-size: var(--text-3xl); }

.bento-cell-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.bento-cell-count {
  margin-top: auto;          /* push to the bottom of the card */
  align-self: flex-end;      /* sit on the right - not hard against the left */
  padding-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-accent);
  opacity: .7;
}

.bento-cell-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-accent);
  margin-top: auto;
  transition: gap var(--dur-fast);
}

.bento-cell:hover .bento-cell-arrow { gap: var(--sp-3); }

/* Bottom row  -  equal 3 */
.bento-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: 0;
}

/* ============================================================
   SECTION: HOW PEPTIDES WORK
   Pattern: Sticky-Stack Sections
   ============================================================ */
.section-how {
  padding-block: var(--sp-32);
  position: relative;
}

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}

.how-sticky {
  position: sticky;
  top: calc(72px + var(--sp-12));
}

.how-sticky-headline {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.how-sticky-body {
  color: var(--clr-text-3);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

/* Animated chain visualization */
.peptide-chain {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: var(--sp-8);
}

.peptide-chain-node {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-a);
  animation: node-pulse 3s ease-in-out infinite;
}

.peptide-chain-node:nth-child(2) { animation-delay: .2s; }
.peptide-chain-node:nth-child(3) { animation-delay: .4s; }
.peptide-chain-node:nth-child(4) { animation-delay: .6s; }
.peptide-chain-node:nth-child(5) { animation-delay: .8s; }
.peptide-chain-node:nth-child(6) { animation-delay: 1s; }
.peptide-chain-connector {
  align-self: center;
  width: 16px;
  height: 2px;
  background: var(--clr-border-a);
  flex-shrink: 0;
}

@keyframes node-pulse {
  0%,100% { opacity:.5; transform: scale(1); }
  50%      { opacity:1;  transform: scale(1.08); }
}

.how-steps { display: flex; flex-direction: column; gap: var(--sp-6); }

.how-step {
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.how-step.in-view {
  border-color: var(--clr-border-a);
  box-shadow: 0 0 40px rgba(31,111,235,.06);
}

.how-step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-accent);
  letter-spacing: .1em;
  margin-bottom: var(--sp-4);
}

.how-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-3);
}

.how-step-body { font-size: var(--text-sm); color: var(--clr-text-3); line-height: 1.7; }

/* ============================================================
   SECTION: FEATURED PEPTIDES
   Pattern: Asymmetric Split (1 hero + 2 stacked)  -  NOT 3-equal
   ============================================================ */
.section-featured { padding-block: var(--sp-24) var(--sp-32); }

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.featured-hero-card {
  grid-row: span 2;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
}

.featured-hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-a);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px var(--clr-border-a);
}

.featured-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}

.featured-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 0% 100%, rgba(31,111,235,.1), transparent 70%);
  pointer-events: none;
}

.featured-category-tag { margin-bottom: var(--sp-6); }

.featured-hero-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--sp-2);
}

.featured-hero-alias {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  margin-bottom: var(--sp-6);
}

.featured-hero-desc {
  font-size: var(--text-base);
  color: var(--clr-text-3);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-8);
}

.featured-hero-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.featured-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
}

.featured-benefit-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--clr-accent);
  margin-top: .45em;
  flex-shrink: 0;
}

/* Secondary feature cards */
.featured-secondary-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
}

.featured-secondary-card:hover {
  transform: translateY(-3px);
  border-color: var(--clr-border-a);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.featured-secondary-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.featured-secondary-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.6;
}

/* ============================================================
   SECTION: BENEFITS GRID
   Pattern: Parallax Tilt Cards
   ============================================================ */
.section-benefits { padding-block: var(--sp-24) var(--sp-32); }

.benefits-intro { max-width: 640px; margin-bottom: var(--sp-16); }
.benefits-intro .display-md { margin-top: var(--sp-4); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.benefit-card {
  padding: var(--sp-8);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
  will-change: transform;
}

.benefit-card:hover {
  border-color: var(--clr-border-a);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-5);
  display: block;
  line-height: 1;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-3);
}

.benefit-body {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.7;
}

/* ============================================================
   SECTION: HORIZONTAL SCROLL LIBRARY PREVIEW
   Pattern: Horizontal Scroll Hijack
   ============================================================ */
.section-library-preview { padding-block: var(--sp-24) var(--sp-32); }

.library-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.library-preview-header .display-md { margin-top: var(--sp-4); }

/* Carousel controls cluster (arrows + view-all) */
.library-preview-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.carousel-nav {
  display: flex;
  gap: var(--sp-2);
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-1);
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base),
              background var(--dur-base),
              color var(--dur-base),
              opacity var(--dur-base);
}

.carousel-arrow:hover:not(:disabled) {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-dim);
  transform: translateY(-2px);
}

.carousel-arrow:active:not(:disabled) { transform: translateY(0) scale(.94); }

.carousel-arrow:disabled {
  opacity: .3;
  cursor: default;
}

@media (max-width: 560px) {
  .library-preview-controls { width: 100%; justify-content: space-between; }
}

.scroll-track-wrapper {
  position: relative;
  overflow: hidden;
}

.scroll-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to left, var(--clr-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.scroll-track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
  cursor: grab;
}

.scroll-track::-webkit-scrollbar { display: none; }
.scroll-track.dragging { cursor: grabbing; }

.peptide-preview-card {
  flex-shrink: 0;
  width: clamp(240px, 28vw, 300px);
  scroll-snap-align: start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur-base), transform var(--dur-base);
}

.peptide-preview-card:hover {
  border-color: var(--clr-border-a);
  transform: translateY(-3px);
}

.peptide-preview-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-block: var(--sp-3) var(--sp-2);
}

.peptide-preview-tagline {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  line-height: 1.5;
  margin-bottom: var(--sp-5);
}

.peptide-preview-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ============================================================
   SECTION: RESEARCH
   Pattern: Masonry (CSS columns)
   ============================================================ */
.section-research { padding-block: var(--sp-24) var(--sp-32); }

.research-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.research-masonry {
  columns: 3;
  column-gap: var(--sp-5);
}

.research-card {
  break-inside: avoid;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  transition: border-color var(--dur-base), transform var(--dur-base);
}

.research-card:hover {
  border-color: var(--clr-border-a);
  transform: translateY(-2px);
}

.research-card-journal {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-accent);
  letter-spacing: .08em;
  margin-bottom: var(--sp-3);
}

.research-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-text-1);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}

.research-card-abstract {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
}

.research-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.research-card-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-text-4);
}

.research-card-citation {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-border);
  font-size: .72rem;
  font-style: italic;
  color: var(--clr-text-4);
  line-height: 1.5;
}

.research-card-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--sp-2);
  font-style: normal;
  font-weight: 600;
  color: var(--clr-accent);
  white-space: nowrap;
}

.research-card-source:hover { text-decoration: underline; }

/* ============================================================
   SECTION: NEWSLETTER CTA
   Pattern: Full-width gradient banner
   ============================================================ */
.section-cta {
  padding-block: var(--sp-24) var(--sp-32);
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-a);
  border-radius: var(--r-lg);
  padding: clamp(var(--sp-12), 6vw, var(--sp-20));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31,111,235,.15), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(99,102,241,.08), transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 80%, rgba(31,111,235,.08), transparent 60%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.cta-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.1;
}

.cta-subtext {
  position: relative;
  color: var(--clr-text-3);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: 1.65;
}

.cta-form {
  position: relative;
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-input {
  flex: 1;
  min-width: 220px;
  padding: .85em 1.4em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--clr-text-1);
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.cta-input::placeholder { color: var(--clr-text-4); }

.cta-input:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-block: var(--sp-20) var(--sp-12);
  border-top: 1px solid var(--clr-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-3);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: var(--sp-6);
}

/* Footer social icon links */
.footer-socials { display: flex; gap: var(--sp-3); }

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-3);
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base), color var(--dur-base), background var(--dur-base);
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-dim);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }

.footer-links a {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--clr-accent); }

/* Research-Use-Only compliance strip */
.footer-ruo {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid rgba(249,115,22,.2);
  background: rgba(249,115,22,.05);
  border-radius: var(--r);
  font-size: var(--text-xs);
  color: var(--clr-text-3);
  line-height: 1.55;
}
.footer-ruo-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f6a04a;
  border: 1px solid rgba(249,115,22,.35);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
@media (max-width: 560px) { .footer-ruo { flex-direction: column; align-items: flex-start; } }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  margin-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  max-width: 600px;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  transition: color var(--dur-fast);
}

.footer-legal a:hover { color: var(--clr-text-3); }

/* ============================================================
   PEPTIDE LIBRARY PAGE
   ============================================================ */
.library-hero {
  padding-top: calc(72px + var(--sp-16));
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.library-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31,111,235,.1), transparent 70%);
}

.library-hero-inner { position: relative; z-index: 1; }

.library-search {
  position: relative;
  max-width: 560px;
  margin-top: var(--sp-8);
}

.library-search-input {
  width: 100%;
  padding: 1em 1.4em 1em 3.2em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--clr-text-1);
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.library-search-input::placeholder { color: var(--clr-text-4); }

.library-search-input:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,.12);
}

.library-search-icon {
  position: absolute;
  left: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-4);
  pointer-events: none;
  font-size: 1rem;
}

/* Category filter tabs */
.library-filters {
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;                       /* flush to the top (header scrolls away) */
  background: rgba(7,11,20,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.filter-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  padding: .5em 1.2em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-3);
  background: transparent;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--clr-text-1); border-color: rgba(255,255,255,.15); }

.filter-tab.active {
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  border-color: var(--clr-border-a);
}

/* Library grid */
.library-main { padding-block: var(--sp-16) var(--sp-24); }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
  grid-auto-rows: 1fr; /* Equal-height rows: prevents staggered baseline */
}

.library-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base),
              box-shadow var(--dur-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  scroll-margin-top: 180px; /* Offset for sticky filter when scrolled to */
  position: relative;
  overflow: hidden;
}

.library-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,111,235,0), transparent);
  transition: background var(--dur-base);
}

.library-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-a);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}

.library-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(31,111,235,.6), transparent);
}

.library-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;                 /* badge drops below the name if cramped */
}

/* Name wrapper: allowed to shrink (its text can wrap) so nothing clips */
.library-card-top > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* Category badge: stays on one line; drops to its own row (via parent
   flex-wrap) when it can't fit beside the name. Never clipped. */
.library-card-top .badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.library-card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-text-1);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.library-card-fullname {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

.library-card-body {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
  flex: 1;
}

.library-card-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.library-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--clr-text-3);
}

.library-card-benefit::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--clr-accent);
  margin-top: .35em;
  flex-shrink: 0;
}

.library-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--clr-border);
}

/* Research-status block (left of "Full Profile"). Wraps cleanly instead
   of cramming long statuses into a pill. */
.library-card-status {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--clr-text-3);
}

.library-card-status-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-text-4);
}

.library-card-footer .btn { flex-shrink: 0; align-self: center; }

/* ============================================================
   PEPTIDE DETAIL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,11,20,.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm);
  width: 100%;
  max-width: 820px;
  max-height: 90dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-surface-3) transparent;
  transform: translateY(40px);
  transition: transform var(--dur-slow) var(--ease-out);
}

.modal-overlay.open .modal-panel {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--clr-text-3);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.modal-close:hover { background: var(--clr-surface-3); color: var(--clr-text-1); }

.modal-body { padding: var(--sp-8); }

.modal-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--sp-2);
}

.modal-fullname { font-size: var(--text-sm); color: var(--clr-text-4); margin-bottom: var(--sp-6); }

.modal-section { margin-bottom: var(--sp-8); }

.modal-section-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.modal-section p { font-size: var(--text-sm); color: var(--clr-text-3); line-height: 1.75; }

.modal-benefits-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.modal-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-a);
  border-radius: var(--r-sm);
}

.modal-benefit-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--clr-accent);
  margin-top: .4em;
  flex-shrink: 0;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.modal-info-item {
  padding: var(--sp-4);
  background: var(--clr-surface-2);
  border-radius: var(--r);
  border: 1px solid var(--clr-border);
}

.modal-info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-2);
}

.modal-info-value {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: 1.5;
}

.modal-disclaimer {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  padding: var(--sp-4);
  background: rgba(249,115,22,.06);
  border: 1px solid rgba(249,115,22,.15);
  border-radius: var(--r);
  line-height: 1.6;
}

/* In-modal "shop this peptide" CTA */
.modal-shop {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border-a);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(31,111,235,.14), transparent 70%),
    linear-gradient(180deg, rgba(15,21,32,.9), rgba(11,16,26,.95));
}

.modal-shop-media {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(31,111,235,.18), transparent 70%), #0a1120;
}
.modal-shop-media img { max-height: 80%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }

.modal-shop-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--clr-text-1); }
.modal-shop-note  { font-size: var(--text-xs); color: var(--clr-text-4); line-height: 1.5; margin: var(--sp-2) 0 var(--sp-4); }

@media (max-width: 560px) {
  .modal-shop { flex-direction: column; align-items: stretch; text-align: left; }
  .modal-shop-media { width: 100%; height: 120px; }
}

/* ============================================================
   BRANDED PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at center, #0a0f1c 0%, #050810 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity .8s cubic-bezier(.65, 0, .35, 1),
              transform 1.1s cubic-bezier(.65, 0, .35, 1);
}

#preloader.preloader-done {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  width: min(420px, 80vw);
}

.preloader-dna {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(31, 111, 235, .4));
}

.preloader-strand {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: preloaderDrawStrand 1.2s cubic-bezier(.65, 0, .35, 1) forwards;
}

.preloader-strand-2 { animation-delay: 0.15s; }

@keyframes preloaderDrawStrand {
  to { stroke-dashoffset: 0; }
}

.preloader-rungs line {
  opacity: 0;
  transform-origin: 50% 50%;
  animation: preloaderRungIn .4s ease-out forwards;
}

.preloader-rungs line:nth-child(1)  { animation-delay: .45s; }
.preloader-rungs line:nth-child(2)  { animation-delay: .50s; }
.preloader-rungs line:nth-child(3)  { animation-delay: .55s; }
.preloader-rungs line:nth-child(4)  { animation-delay: .60s; }
.preloader-rungs line:nth-child(5)  { animation-delay: .65s; }
.preloader-rungs line:nth-child(6)  { animation-delay: .70s; }
.preloader-rungs line:nth-child(7)  { animation-delay: .75s; }
.preloader-rungs line:nth-child(8)  { animation-delay: .80s; }
.preloader-rungs line:nth-child(9)  { animation-delay: .85s; }
.preloader-rungs line:nth-child(10) { animation-delay: .90s; }
.preloader-rungs line:nth-child(11) { animation-delay: .95s; }
.preloader-rungs line:nth-child(12) { animation-delay: 1.00s; }
.preloader-rungs line:nth-child(13) { animation-delay: 1.05s; }
.preloader-rungs line:nth-child(14) { animation-delay: 1.10s; }

@keyframes preloaderRungIn {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text-1);
  opacity: 0;
  transform: translateY(8px);
  animation: preloaderFadeUp .7s cubic-bezier(.16, 1, .3, 1) 1.3s forwards;
}

.preloader-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--clr-accent);
  color: #ffffff;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(31, 111, 235, .6);
}

.preloader-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  opacity: 0;
  transform: translateY(8px);
  animation: preloaderFadeUp .7s cubic-bezier(.16, 1, .3, 1) 1.5s forwards;
}

.preloader-progress {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--sp-4);
  opacity: 0;
  animation: preloaderFadeUp .7s cubic-bezier(.16, 1, .3, 1) 1.6s forwards;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-accent), rgba(167, 139, 250, .9));
  box-shadow: 0 0 12px rgba(31, 111, 235, .6);
  transition: width .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes preloaderFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PAGE TRANSITION CURTAIN
   ============================================================ */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.page-transition-layer {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s cubic-bezier(.83, 0, .17, 1);
  will-change: transform;
}

.page-transition-layer-1 { background: #0a0f1c; }
.page-transition-layer-2 { background: #0d1320; }
.page-transition-layer-3 { background: #050810; }

#page-transition.transition-enter .page-transition-layer-1 { transform: scaleY(1); transition-delay: 0s; }
#page-transition.transition-enter .page-transition-layer-2 { transform: scaleY(1); transition-delay: .08s; }
#page-transition.transition-enter .page-transition-layer-3 { transform: scaleY(1); transition-delay: .16s; }

#page-transition.transition-exit .page-transition-layer { transform-origin: bottom; }
#page-transition.transition-exit .page-transition-layer-1 { transform: scaleY(0); transition-delay: .16s; }
#page-transition.transition-exit .page-transition-layer-2 { transform: scaleY(0); transition-delay: .08s; }
#page-transition.transition-exit .page-transition-layer-3 { transform: scaleY(0); transition-delay: 0s; }

/* ============================================================
   WEBGL SHADER CANVAS (fluid curl-noise behind everything)
   ============================================================ */
#webgl-canvas {
  display: none;         /* wavy WebGL shader backdrop removed per request; DNA + molecules + mesh remain */
  position: fixed;
  inset: 0;
  width: 100%;            /* inset:0 fills the viewport; avoids 100vw scrollbar overflow */
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--webgl-opacity, .45);
  mix-blend-mode: screen;
}

/* Shader off on phones - mobile GPUs band its noise into "flowing lines" */
@media (max-width: 900px) {
  #webgl-canvas { display: none !important; }
}


/* ============================================================
   PINNED HORIZONTAL SHOWCASE
   ============================================================ */
/* Outer wrapper: tall scroll runway. Its height is set by JS to
   (viewport height + horizontal scroll distance). As you scroll through
   it, the sticky child stays pinned and the track translates left. */
.h-pin-outer {
  position: relative;
  min-height: 100vh;          /* fallback before JS measures */
  background: linear-gradient(180deg, transparent, rgba(31,111,235,.02), transparent);
}

/* Sticky viewport: pins to the top of the screen via native position:sticky.
   Rock-solid - no GSAP pin, no Lenis conflict. */
.h-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Right-edge fade so the partially-visible "next" card reads as an
   intentional scroll affordance, not content falling off the screen. */
.h-pin-sticky::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8vw;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to left, rgba(var(--clr-vignette), .9), transparent);
}

.h-pin-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  height: 100vh;
  /* Left padding aligns the intro heading with the rest of the site's
     1280px content column; right padding keeps the last card off the edge. */
  padding-left: max(8vw, calc((100vw - 1280px) / 2 + 4rem));
  padding-right: 8vw;
  gap: var(--sp-8);
  will-change: transform;
}

/* Fallback ONLY when JS hasn't engaged the pin (no-JS / mobile).
   Tied to the .h-pin-active class JS sets - NOT to motion preference -
   so reduce-motion users still get the scroll-driven pin. Cards wrap
   into a centered grid; never a scrollbar. */
/* When the pin is disabled (mobile / pre-JS) the section must collapse to its
   content height - the 100vh fallback would otherwise leave a full empty
   viewport of dead space below the cards. */
.h-pin-outer:not(.h-pin-active) { height: auto !important; min-height: 0 !important; }
.h-pin-outer:not(.h-pin-active) .h-pin-sticky {
  position: relative;
  height: auto;
  overflow: visible;
  display: block;
}
.h-pin-outer:not(.h-pin-active) .h-pin-sticky::after { display: none; }
.h-pin-outer:not(.h-pin-active) .h-pin-track {
  flex-wrap: wrap;
  width: auto;
  height: auto;
  transform: none !important;
  justify-content: center;
  padding: var(--sp-12) var(--sp-8);
}
.h-pin-outer:not(.h-pin-active) .h-pin-intro {
  width: 100%;
  max-width: 720px;
  padding-right: 0;
  align-items: center;
  text-align: center;
}
.h-pin-outer:not(.h-pin-active) .h-pin-card { height: auto; }
.h-pin-outer:not(.h-pin-active) .h-pin-progress { display: none; }

.h-pin-intro {
  flex-shrink: 0;
  width: 60vw;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--sp-12);
}

.h-pin-intro .eyebrow { margin-bottom: var(--sp-6); }

.h-pin-scroll-cue {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.h-pin-scroll-cue svg {
  animation: scrollCueNudge 1.6s ease-in-out infinite;
}

@keyframes scrollCueNudge {
  0%, 100% { transform: translateX(0);   opacity: .6; }
  50%      { transform: translateX(6px); opacity: 1; }
}

.h-pin-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-6);
}
.h-pin-intro p {
  font-size: var(--text-lg);
  color: var(--clr-text-3);
  max-width: 480px;
  line-height: 1.6;
}

.h-pin-card {
  flex-shrink: 0;
  width: clamp(340px, 38vw, 480px);
  height: 75vh;
  max-height: 720px;
  align-self: center;
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, transparent 50%),
    linear-gradient(160deg, rgba(15, 21, 32, .9) 0%, rgba(11, 16, 26, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 24px 60px rgba(0, 0, 0, .4),
    0 0 80px rgba(31, 111, 235, .08);
  position: relative;
  overflow: hidden;
}

.h-pin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0;
  transition: opacity .5s;
}

.h-pin-card.active::before { opacity: 1; }

.h-pin-card-index {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-4);
}

.h-pin-card-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--clr-text-1);
  margin-bottom: var(--sp-3);
}

.h-pin-card-fullname {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-8);
}

.h-pin-card-tagline {
  font-size: var(--text-lg);
  color: var(--clr-text-2);
  line-height: 1.5;
  margin-bottom: var(--sp-8);
  flex: 1;
}

.h-pin-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.h-pin-card-meta-label {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-2);
}

.h-pin-card-meta-value {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  font-weight: 500;
}

.h-pin-progress {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 2;
}

.h-pin-progress-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-full);
  overflow: hidden;
}

.h-pin-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--clr-accent);
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

.h-pin-progress-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--clr-text-4);
  text-transform: uppercase;
}

/* Mobile: JS bails -> uses the .h-pin-outer:not(.h-pin-active) wrapping
   grid above. Just keep the cards a comfortable width. */
@media (max-width: 768px) {
  .h-pin-card { width: min(88vw, 460px); }
}

/* ============================================================
   KINETIC TYPOGRAPHY
   ============================================================ */
.kinetic-text { display: inline-block; }

.kinetic-char {
  display: inline-block;
  will-change: transform;
  transition: transform .15s cubic-bezier(.16, 1, .3, 1);
}
/* Keeps each word's characters together so a word never breaks mid-character
   (the inline-block chars above would otherwise be individual break points). */
.kinetic-word {
  display: inline-block;
  white-space: nowrap;
}

/* ============================================================
   LENIS SMOOTH SCROLL (premium momentum scrolling)
   ============================================================ */
html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ============================================================
   CUSTOM CURSOR
   Dot follows pointer instantly, ring trails with easing.
   Ring expands on interactive hover (cards, buttons, links).
   ============================================================ */
/* Custom cursor: dot + ring, always visible regardless of background.
   No mix-blend-mode (caused invisibility on bright shader backgrounds). */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transition: opacity .3s ease;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  margin: -3px 0 0 -3px;
  box-shadow: 0 0 14px rgba(31, 111, 235, .95),
              0 0 4px rgba(255, 255, 255, .8);
  transition: opacity .25s, transform .15s cubic-bezier(.16, 1, .3, 1);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--clr-accent);
  background: rgba(31, 111, 235, .04);
  margin: -16px 0 0 -16px;
  opacity: .85;
  box-shadow: 0 0 18px rgba(31, 111, 235, .25);
  transition: width .35s cubic-bezier(.16, 1, .3, 1),
              height .35s cubic-bezier(.16, 1, .3, 1),
              margin .35s cubic-bezier(.16, 1, .3, 1),
              border-color .35s,
              opacity .25s,
              background .35s,
              border-width .25s;
}

.cursor-ring.cursor-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--clr-accent);
  border-width: 1.5px;
  background: rgba(31, 111, 235, .12);
  opacity: 1;
}

.cursor-ring.cursor-text {
  width: 3px;
  height: 26px;
  margin: -13px 0 0 -1.5px;
  border-radius: 1px;
  border: 0;
  background: var(--clr-accent);
  box-shadow: 0 0 8px rgba(31, 111, 235, .6);
  opacity: 1;
}

#custom-cursor.cursor-down .cursor-ring {
  transform: scale(.7);
}

/* Hide custom cursor on touch / hover-incapable devices */
@media (hover: none) {
  #custom-cursor { display: none; }
}

/* CRITICAL: only hide the native cursor once JS confirms the custom cursor
   is actually running (class added in initCustomCursor). If JS bails for ANY
   reason, the native cursor stays visible - never an invisible-cursor state. */
html.custom-cursor-active,
html.custom-cursor-active a,
html.custom-cursor-active button,
html.custom-cursor-active input,
html.custom-cursor-active textarea,
html.custom-cursor-active select,
html.custom-cursor-active label,
html.custom-cursor-active [role="button"],
html.custom-cursor-active .btn,
html.custom-cursor-active .library-card,
html.custom-cursor-active .bento-cell {
  cursor: none;
}

/* Custom cursor removed per request - use the normal system cursor.
   The init call is also commented out in main.js. */
#custom-cursor { display: none !important; }

/* If custom cursor isn't active, ensure normal cursor everywhere */
html:not(.custom-cursor-active),
html:not(.custom-cursor-active) * { cursor: auto; }
html:not(.custom-cursor-active) a,
html:not(.custom-cursor-active) button,
html:not(.custom-cursor-active) .btn { cursor: pointer; }

/* ============================================================
   ATMOSPHERIC BACKGROUND STACK
   Four layered fixed elements behind all content.
   z 0: DNA canvas (procedural 3D helix)
   z 0: Mesh gradient (animated chromatic glow)
   z 0: Vignette (radial darken for content legibility)
   z 0: Noise (subtle film grain)
   ============================================================ */

/* ----- DNA CANVAS: full viewport, faint backdrop ----- */
#dna-canvas {
  position: fixed;
  inset: 0;
  width: 100%;            /* inset:0 fills the viewport; avoids 100vw scrollbar overflow */
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}


/* ----- ANIMATED GRADIENT MESH ----- */
.bg-mesh {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--bg-mesh-opacity, 1);
  background:
    radial-gradient(ellipse 50% 40% at 20% 25%, rgba(31, 111, 235, .18)  0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 70%, rgba(167, 139, 250, .14) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(31, 111, 235, .04)   0%, transparent 70%);
  filter: blur(40px);
  animation: meshDrift 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes meshDrift {
  0%   { transform: translate3d(-2%, -2%, 0) rotate(0deg); }
  50%  { transform: translate3d( 1%,  2%, 0) rotate(.5deg); }
  100% { transform: translate3d( 2%, -1%, 0) rotate(-.3deg); }
}

/* ----- VIGNETTE: edge gradient adapts to theme bg color ----- */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Taller, softer radial so it no longer darkens the TOP edge (which showed
     as a shadow over the nav on inner pages). Bottom darkening kept via the
     linear gradient only. */
  background:
    radial-gradient(ellipse 110% 120% at 50% 42%, transparent 45%, rgba(var(--clr-vignette), .22) 80%, rgba(var(--clr-vignette), .5) 100%),
    linear-gradient(180deg, transparent 0%, transparent 82%, rgba(var(--clr-vignette), .75) 100%);
}

/* ----- FILM GRAIN: SVG turbulence noise ----- */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--bg-noise-blend, overlay);
}


/* Mobile: lighter atmospheric load + keep hero text legible over the DNA */
@media (max-width: 900px) {
  #dna-canvas { opacity: .35; }
  .bg-mesh    { filter: blur(60px); }
  .bg-noise   { opacity: .02; }
}
@media (max-width: 600px) {
  #dna-canvas { opacity: .22; }
}

/* Hide DNA on small screens for performance + visual cleanliness */
@media (max-width: 900px) {
  .dna-stage--left  { display: none; }
  .dna-stage--right {
    width: 90px;
    opacity: .5;
  }
}

/* Reduce/disable on prefers-reduced-motion (defined in main reduced-motion block too) */
@media (prefers-reduced-motion: reduce) {
  .dna-stage { opacity: .15 !important; }
  .dna-stage svg * { animation: none !important; }
}

/* All actual content sits above the DNA */
#site-header, main, footer { position: relative; z-index: 1; }

/* ============================================================
   PEPTIDE CHAIN MARQUEE (between sections — silent storytelling)
   ============================================================ */
/* ============================================================
   COMPARE TOOL
   ============================================================ */
.compare-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.compare-select-wrap { display: flex; flex-direction: column; gap: var(--sp-2); }
.compare-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-1);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  appearance: none;
}
.compare-select:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }

.compare-empty { text-align: center; color: var(--clr-text-4); padding: var(--sp-16) 0; font-size: var(--text-sm); }

.compare-table {
  display: grid;
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-corner, .compare-head, .compare-rowlabel, .compare-cell {
  background: var(--clr-bg);
  padding: var(--sp-5);
}
.compare-head { background: var(--clr-surface); }
.compare-head-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--clr-text-1); }
.compare-head-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); flex-wrap: wrap; }
.compare-prof { font-size: var(--text-xs); color: var(--clr-text-3); }
.compare-prof:hover { color: var(--clr-text-1); }
.compare-shop { font-size: var(--text-xs); font-weight: 600; color: var(--clr-accent); }
.compare-shop:hover { text-decoration: underline; }

.compare-rowlabel {
  background: var(--clr-surface-2);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  display: flex;
  align-items: center;
}
.compare-cell { font-size: var(--text-sm); color: var(--clr-text-2); line-height: 1.6; }
.compare-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.compare-list li { position: relative; padding-left: var(--sp-4); font-size: var(--text-xs); color: var(--clr-text-3); }
.compare-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--clr-accent); }
.compare-muted { color: var(--clr-text-4); }

@media (max-width: 768px) {
  .compare-selectors { grid-template-columns: 1fr; }
  .compare-result { overflow-x: auto; }
  .compare-table { min-width: 620px; }
}

/* ============================================================
   GOAL FINDER + TRUST STRIP
   ============================================================ */
.section-goal-finder { padding-block: var(--sp-20); }
.goal-finder-head { margin-bottom: var(--sp-10); }

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.goal-tile {
  position: relative;
  display: block;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--clr-surface);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
  overflow: hidden;
}
.goal-tile:hover {
  transform: translateY(-3px);
  border-color: var(--clr-border-a);
  background: linear-gradient(180deg, rgba(31,111,235,.06), transparent), var(--clr-surface);
}
.goal-tile-label { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--clr-text-1); }
.goal-tile-desc  { font-size: var(--text-xs); color: var(--clr-text-4); margin-top: var(--sp-2); }
.goal-tile-arrow {
  position: absolute;
  top: var(--sp-6); right: var(--sp-6);
  color: var(--clr-text-4);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base);
}
.goal-tile:hover .goal-tile-arrow { color: var(--clr-accent); transform: translateX(3px); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6) var(--sp-10);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clr-accent); box-shadow: 0 0 8px var(--clr-accent-glow); }

@media (max-width: 768px) { .goal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .goal-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCT TEASER (shop pull-through)
   ============================================================ */
.section-products { padding-block: var(--sp-24); }

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 55%),
    linear-gradient(180deg, rgba(15,21,32,.9), rgba(11,16,26,.95));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 32px rgba(0,0,0,.28);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-border-a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),
              0 16px 48px rgba(0,0,0,.4),
              0 0 50px rgba(31,111,235,.14);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(31,111,235,.16), transparent 70%),
    linear-gradient(180deg, #0e1626, #0a1120);
  padding: var(--sp-6);
}

.product-card-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}

.product-card-placeholder svg { height: 120px; width: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }

.product-card-dose {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  background: rgba(0,0,0,.4);
  border: 1px solid var(--clr-border);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.product-card-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }

/* ----- "Shop this peptide" card (profile sidebar + modal) ----- */
.shop-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border-a);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31,111,235,.12), transparent 70%),
    linear-gradient(180deg, rgba(15,21,32,.92), rgba(11,16,26,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 40px rgba(0,0,0,.3);
}

.shop-card-media {
  margin: var(--sp-4) 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(31,111,235,.16), transparent 70%),
    linear-gradient(180deg, #0e1626, #0a1120);
}
.shop-card-media img { max-height: 78%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); }

.shop-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-1);
  margin-top: var(--sp-2);
}

.shop-card-note {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  line-height: 1.5;
  margin: var(--sp-2) 0 var(--sp-5);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text-1);
}

.product-card-tag {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-accent);
}

.product-card:hover .product-card-cta svg { transform: translateX(3px); }
.product-card-cta svg { transition: transform var(--dur-base) var(--ease-out); }

.products-disclaimer {
  margin-top: var(--sp-8);
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  text-align: center;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ============================================================
   AMINO ACID MARQUEE
   ============================================================ */
.amino-marquee {
  padding-block: var(--sp-12);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(180deg, transparent, rgba(31,111,235,.02), transparent);
}

.amino-marquee::before,
.amino-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.amino-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-bg), transparent);
}

.amino-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-bg), transparent);
}

.amino-track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  will-change: transform;
}

.amino-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--clr-text-3);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.amino-chip-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  font-size: .7rem;
  font-weight: 700;
}

/* ============================================================
   SCROLL PROGRESS INDICATOR (sticky bottom-right)
   ============================================================ */
.scroll-progress {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 54px;
  height: 54px;
  z-index: 50;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* Hidden until the user scrolls down a bit (toggled via .visible by JS) */
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .4s var(--ease-out),
              transform .4s var(--ease-out);
}

.scroll-progress.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-progress:hover {
  transform: translateY(-3px) scale(1.06);
}

.scroll-progress-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  transition: opacity .25s;
}

/* Up-arrow sits in the centre, fades in over the % label on hover */
.scroll-progress-arrow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  color: var(--clr-accent);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  pointer-events: none;
}

.scroll-progress:hover .scroll-progress-arrow {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress:hover .scroll-progress-label {
  opacity: 0;
}

.scroll-progress:hover .progress-bg {
  fill: rgba(31, 111, 235, .12);
}

.scroll-progress-ring circle {
  fill: rgba(7, 11, 20, .8);
  stroke-width: 2.5;
}

.scroll-progress-ring .progress-bg {
  stroke: var(--clr-border);
}

.scroll-progress-ring .progress-bar {
  stroke: var(--clr-accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--clr-accent-glow));
  transition: stroke-dashoffset 80ms linear;
}

.scroll-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  color: var(--clr-text-2);
  letter-spacing: .04em;
  transition: opacity .25s;
}

@media (max-width: 768px) {
  .scroll-progress { display: none; }
}

/* ============================================================
   PREMIUM TYPOGRAPHY REFINEMENT
   ============================================================ */
.display-xl, .display-lg, .display-md {
  /* Optical kerning + ligatures */
  font-feature-settings: "ss01" on, "ss02" on, "kern" on, "liga" on, "calt" on;
  text-wrap: balance;
}

.display-xl { letter-spacing: -0.04em; }
.display-lg { letter-spacing: -0.03em; }

/* Refined gradient text - subtle, premium */
.gradient-text {
  background: linear-gradient(135deg,
    var(--clr-text-1) 0%,
    var(--clr-text-1) 30%,
    var(--clr-accent)  100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow refinement - more premium with subtle gradient */
.eyebrow {
  font-feature-settings: "ss01" on, "tnum" on;
}

/* ============================================================
   MAGNETIC BUTTON (cursor-tracked pull)
   ============================================================ */
.btn--magnetic {
  position: relative;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base);
  will-change: transform;
}

/* Button shine on hover */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255, 255, 255, .35) 50%,
    transparent 70%);
  transform: translateX(-150%);
  transition: transform .85s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  z-index: -1;
}

.btn--primary:hover::before { transform: translateX(150%); }

/* ============================================================
   PREMIUM CARD DESIGN
   Layered shadows + subtle inner gradient + shine sweep on hover
   ============================================================ */
.benefit-card,
.library-card,
.featured-secondary-card,
.research-card,
.bento-cell {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .025) 0%,
      transparent 60%),
    linear-gradient(180deg,
      rgba(15, 21, 32, .9)  0%,
      rgba(11, 16, 26, .9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 1px 2px rgba(0, 0, 0, .3),
    0 8px 32px rgba(0, 0, 0, .25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Flex column so the "N peptides" count can pin to the bottom-right of
     every card consistently, regardless of card height. */
  display: flex;
  flex-direction: column;
}

/* ----- BORDER GLOW (reactbits-style): a glow that follows the cursor
   around the card's border. Driven by --glow-x / --glow-y (set in JS). ----- */
.benefit-card::before,
.library-card::before,
.featured-secondary-card::before,
.research-card::before,
.bento-cell::before,
.product-card::before,
.h-pin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;                                  /* border thickness */
  background: radial-gradient(160px circle at var(--glow-x, 50%) var(--glow-y, -20%),
    rgba(130, 175, 255, .95),
    rgba(31, 111, 235, .35) 42%,
    transparent 66%);
  /* show only the padding ring = the border */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 3;
}

.benefit-card > *,
.library-card > *,
.featured-secondary-card > *,
.research-card > *,
.bento-cell > * { position: relative; z-index: 1; }

.benefit-card:hover::before,
.library-card:hover::before,
.featured-secondary-card:hover::before,
.research-card:hover::before,
.bento-cell:hover::before,
.product-card:hover::before,
.h-pin-card:hover::before {
  opacity: 1;
}

/* ensure the glow-bearing cards can host the absolute ::before */
.product-card { position: relative; }

/* Refined card hover - lifted + cyan edge glow */
.benefit-card:hover,
.library-card:hover,
.featured-secondary-card:hover,
.research-card:hover,
.bento-cell:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 111, 235, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(31, 111, 235, .12),
    0 12px 40px rgba(0, 0, 0, .4),
    0 0 60px rgba(31, 111, 235, .12);
}

/* ============================================================
   TEXT REVEAL ON SCROLL (word-by-word slide-up)
   ============================================================ */
.reveal-text {
  display: block;
}

.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0;          /* prevent descender clipping */
  margin: -0.08em 0;
}

.reveal-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.reveal-text.revealed .reveal-word-inner {
  transform: translateY(0);
}

/* Per-word stagger - up to 20 words */
.reveal-text .reveal-word:nth-child(1)  .reveal-word-inner { transition-delay: .02s; }
.reveal-text .reveal-word:nth-child(2)  .reveal-word-inner { transition-delay: .06s; }
.reveal-text .reveal-word:nth-child(3)  .reveal-word-inner { transition-delay: .10s; }
.reveal-text .reveal-word:nth-child(4)  .reveal-word-inner { transition-delay: .14s; }
.reveal-text .reveal-word:nth-child(5)  .reveal-word-inner { transition-delay: .18s; }
.reveal-text .reveal-word:nth-child(6)  .reveal-word-inner { transition-delay: .22s; }
.reveal-text .reveal-word:nth-child(7)  .reveal-word-inner { transition-delay: .26s; }
.reveal-text .reveal-word:nth-child(8)  .reveal-word-inner { transition-delay: .30s; }
.reveal-text .reveal-word:nth-child(9)  .reveal-word-inner { transition-delay: .34s; }
.reveal-text .reveal-word:nth-child(10) .reveal-word-inner { transition-delay: .38s; }
.reveal-text .reveal-word:nth-child(n+11) .reveal-word-inner { transition-delay: .42s; }

/* ============================================================
   ANIMATED NUMBER COUNTER
   ============================================================ */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "ss01" on;
}

/* ============================================================
   SECTION DIVIDER (animated draw-on-scroll)
   ============================================================ */
.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31, 111, 235, .35) 30%,
    rgba(31, 111, 235, .35) 70%,
    transparent 100%);
  margin-block: var(--sp-16);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.section-divider.revealed { transform: scaleX(1); }

/* ============================================================
   FOCUS STATES - premium accessibility
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

a:focus-visible, button:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   SCROLL REVEAL BASE STATES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* ============================================================
   SCROLL-REVEAL CONTENT IS ALWAYS VISIBLE (all browsers + devices).
   The fade-up entrance relied on a JS scroll trigger that proved unreliable
   in WebKit (macOS + iOS Safari) with Lenis - leaving whole sections blank
   (benefits + research tiles). Forcing the visible state in pure CSS removes
   any JS dependency, so content can NEVER be hidden, regardless of browser,
   cache, or whether the reveal script fires. (Trade-off: no entrance
   animation - reliability over polish.)
   ============================================================ */
.reveal { opacity: 1 !important; transform: none !important; }
.reveal-text .reveal-word-inner { transform: none !important; }
.section-divider { transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-cell--hero { grid-row: span 1; min-height: 300px; }
  .how-inner { grid-template-columns: 1fr; }
  .how-sticky { position: static; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-hero-card { grid-row: span 1; min-height: auto; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .research-masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-row-2 { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .research-masonry { columns: 1; }
  .hero-stats { gap: var(--sp-6); flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .modal-panel { max-height: 95dvh; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-input { min-width: auto; }
  /* Once these grids stack to one column their wide column-gaps become
     tall dead vertical gaps - tighten them. */
  .how-inner    { gap: var(--sp-8); }
  .how-sticky-headline { margin-top: 0; }
  .footer-grid  { gap: var(--sp-8); }
}

/* ============================================================
   REDUCED MOTION
   Scoped to motion-heavy elements only, not the universal selector.
   This lets SVG SMIL animations + essential UI motion stay alive.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-molecule svg,
  .peptide-chain-node {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-eyebrow, .hero-headline, .hero-subtext,
  .hero-actions, .hero-stats {
    opacity: 1;
    transform: none;
  }

  .dna-stage {
    opacity: .35;
  }
}

/* ============================================================
   SITE-WIDE PROMO BANNER (dismissible)
   A fixed bar pinned above the header. Its height lives in --promo-h
   so every offset (body, header, sticky filter bar) stays in sync;
   dismissing it (body.promo-off) zeroes the variable to reclaim the
   space cleanly. Lives in main.css (loads after the critical sheet) so
   it can override the header/filter `top` rules defined there.
   ============================================================ */
:root { --promo-h: 42px; }
body.promo-off { --promo-h: 0px; }

body { padding-top: var(--promo-h); }

/* The header is position:relative (in normal flow — see the "content sits above
   the DNA" rule), so body's padding-top ALREADY pushes it below the banner.
   It must NOT also be shifted with `top`, or it leaves a phantom gap the exact
   size of the offset. Force every header `top` to 0. */
#site-header { top: 0; }
.admin-bar #site-header { top: 0; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 0; }
}

/* Keep the sticky library filter bar docked just below the banner. */
.library-filters { top: var(--promo-h); }
.admin-bar .library-filters { top: calc(32px + var(--promo-h)); }
@media screen and (max-width: 782px) {
  .admin-bar .library-filters { top: calc(46px + var(--promo-h)); }
}

.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--promo-h);
  z-index: 1100;                 /* above header (1000); below preloader/drawer/modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;               /* room for the close button on the right */
  background: linear-gradient(90deg, var(--clr-accent-h) 0%, var(--clr-accent) 100%);
  color: #fff;
  font-size: var(--text-sm);
  overflow: hidden;
  white-space: nowrap;
}
.admin-bar .promo-banner { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .promo-banner { top: 46px; } }
body.promo-off .promo-banner { display: none; }

.promo-banner-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  font-weight: 500;
  min-width: 0;
}
.promo-banner-text { overflow: hidden; text-overflow: ellipsis; }
.promo-banner-link strong { font-weight: 800; }
.promo-banner-code {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--r-full);
  padding: 2px 10px;
}
.promo-banner-arrow { flex-shrink: 0; transition: transform var(--dur-fast); }
.promo-banner-link:hover .promo-banner-arrow { transform: translateX(3px); }

.promo-banner-close {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.promo-banner-close:hover { background: rgba(255, 255, 255, .2); color: #fff; }

@media (max-width: 600px) {
  :root { --promo-h: 40px; }
  .promo-banner { font-size: var(--text-xs); padding: 0 42px; }
  /* On the narrowest screens drop the lead-in words, keep the offer + code. */
  .promo-banner-text { font-weight: 600; }
}
