/* ============================================================================
 * Peridyn Labs — Design System
 * Palette derived from the wordmark: deep navy + teal-navy gradient + copper
 * accent on warm cream. Typography: Fraunces (display serif) + Inter (body).
 * Aesthetic reference: editorial-luxury biotech (Function Health / Momentous
 * / Aesop / Nucleus Genomics).
 * ==========================================================================*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --navy-900: #0b1830;
  --navy-800: #0f2244;
  --navy-700: #17325f;
  --navy-600: #23477f;
  --teal-500: #4bb3b0;
  --teal-600: #2f8c8b;
  --teal-700: #1e6d70;
  --copper-500: #b58a55;      /* bright gold — decorative fills/borders/buttons */
  --copper-600: #7a5620;      /* darkened: AA (~6:1) as gold label/link TEXT on cream */
  --copper-400: #d0a877;
  --cream-50:  #fbf9f4;
  --cream-100: #f5f0e6;
  --cream-200: #ebe4d3;
  --ink-900: #0e1420;
  --ink-700: #2e3648;
  --ink-500: #56607a;
  --ink-400: #5c6577;         /* darkened: AA (~5.3:1) as small secondary text on cream */
  --ink-300: #8b93a4;         /* darkened: usable as decorative separators */
  --warn-ink: #a8481a;        /* Prop-65 warning text (light) */
  --line: #e0d8c5;
  --line-soft: #ede6d5;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --bg-dark: var(--navy-900);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--copper-500);
  --accent-dark: var(--copper-600);
  --brand: var(--navy-900);
  --brand-highlight: var(--teal-500);

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Radii */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-round: 999px;

  /* Layout */
  --wrap-narrow: 720px;
  --wrap: 1200px;
  --wrap-wide: 1440px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(11, 24, 48, 0.04), 0 2px 8px rgba(11, 24, 48, 0.04);
  --shadow-2: 0 6px 20px rgba(11, 24, 48, 0.06), 0 2px 6px rgba(11, 24, 48, 0.04);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.25);

  --transition: 220ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

/* ---------- Typography --------------------------------------------------- */

.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h4 { font-size: 1.2rem; letter-spacing: 0; }

p { margin: 0 0 var(--space-4); color: var(--ink-700); }
/* Pinned-dark bands set a light section color; the global `p` color above would
 * otherwise override it (explicit rule beats inheritance) -> dark-on-dark body
 * copy in light mode. Make their copy inherit the section's light color. Dark
 * mode's higher-specificity overrides still win. */
:is(.stats-strip, .bg-dark, .cta-banner) :is(p, li) { color: inherit; }
small { font-size: 0.85rem; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: var(--space-4);
  display: inline-block;
}
.eyebrow--teal { color: var(--teal-700); }
.eyebrow--muted { color: var(--ink-400); }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-700);
  font-weight: 300;
  max-width: 60ch;
}

.small-caps {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* ---------- Layout primitives -------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--space-5); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--space-5); }

@media (min-width: 900px) {
  .wrap, .wrap-wide, .wrap-narrow { padding: 0 var(--space-7); }
}

section { padding: var(--space-8) 0; }
section.section-lg { padding: var(--space-9) 0; }
section.section-xl { padding: var(--space-10) 0; }
@media (min-width: 900px) {
  section { padding: var(--space-9) 0; }
  section.section-lg { padding: var(--space-10) 0; }
  section.section-xl { padding: var(--space-11) 0; }
}

.bg-cream { background: var(--cream-50); }
.bg-cream-alt { background: var(--cream-100); }
.bg-dark { background: var(--navy-900); color: var(--cream-100); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--cream-50); }
.bg-dark p { color: rgba(245, 240, 230, 0.75); }
.bg-dark .eyebrow { color: var(--copper-400); }
.bg-dark a { color: var(--cream-100); }
.bg-dark a:hover { color: var(--copper-400); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: var(--space-6) 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split-40-60 { grid-template-columns: 4fr 6fr; }
  .split-60-40 { grid-template-columns: 6fr 4fr; }
}

.center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-50);
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  background: var(--navy-800);
  color: var(--cream-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-primary { background: var(--navy-900); border-color: var(--navy-900); }
.btn-accent { background: var(--copper-500); border-color: var(--copper-500); color: var(--navy-900); }
.btn-accent:hover { background: var(--copper-600); border-color: var(--copper-600); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--cream-50); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: transparent;
  padding: 12px 12px;
}
.btn-ghost:hover { color: var(--copper-600); background: transparent; box-shadow: none; }
.btn-light {
  background: var(--cream-50);
  color: var(--navy-900);
  border-color: var(--cream-50);
}
.btn-light:hover { background: var(--cream-200); color: var(--navy-900); }
.btn-lg { padding: 18px 36px; font-size: 0.9rem; }
.btn-sm { padding: 10px 18px; font-size: 0.75rem; }
.btn-full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.link-arrow::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.link-arrow:hover { color: var(--copper-600); gap: var(--space-3); }

/* ---------- Forms -------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--navy-800); }
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 14px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35, 71, 127, 0.12);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--cream-50);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.check:hover { border-color: var(--copper-500); }
.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy-800);
  flex-shrink: 0;
  cursor: pointer;
}
.check-copy { font-size: 0.9rem; color: var(--ink-700); line-height: 1.5; }
.check-copy strong { color: var(--navy-900); }

/* ---------- Navigation --------------------------------------------------- */

.header {
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 500;
}
.nav-brand {
  /* isolate blend so the logo blends with a solid cream background, not underlying scroll content */
  background: var(--cream-50);
  padding: 4px 8px;
  border-radius: var(--r-2);
  margin-left: -8px;
}
.top-strip {
  background: var(--navy-900);
  color: var(--cream-100);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0;
  text-align: center;
}
.top-strip span { opacity: 0.8; }
.top-strip strong { color: var(--copper-400); font-weight: 500; margin-right: 8px; }

.nav {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 88px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  height: 64px;
  width: auto;
  max-width: 280px;
  /* Multiply blend hides the logo's cream JPG background against the site's cream page */
  mix-blend-mode: multiply;
}
@media (min-width: 1000px) {
  .nav-brand img { height: 72px; }
}
.nav-brand-fallback {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.nav-brand-fallback small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--copper-600);
  margin-top: -4px;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  gap: var(--space-6);
  align-items: center;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1000px) {
  .nav-menu { display: flex; }
}
.nav-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--copper-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-round);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-icon:hover { background: var(--cream-200); color: var(--copper-600); }
.nav-icon svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--copper-500);
  color: #241708;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--r-round);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-toggle {
  display: flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}
@media (min-width: 1000px) { .mobile-toggle { display: none; } }
.mobile-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream-50);
  z-index: 700;
  padding: var(--space-6);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; padding: 8px; }
.mobile-menu-close svg { width: 24px; height: 24px; }
.mobile-menu-list {
  list-style: none; padding: var(--space-7) 0 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.mobile-menu-list a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy-900);
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Footer ------------------------------------------------------- */

.footer {
  background: var(--navy-900);
  color: var(--cream-100);
  padding: var(--space-9) 0 var(--space-6);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-8);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer h4 { color: var(--copper-400); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--space-4); }
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream-50);
  margin-bottom: var(--space-3);
}
.footer p { color: rgba(245, 240, 230, 0.7); font-size: 0.9rem; line-height: 1.6; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--space-3); }
.footer ul a { color: rgba(245, 240, 230, 0.75); font-size: 0.9rem; }
.footer ul a:hover { color: var(--copper-400); }
.footer-newsletter input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245, 240, 230, 0.2);
  color: var(--cream-50);
  padding: 12px 14px;
  border-radius: var(--r-2);
  width: 100%;
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(245, 240, 230, 0.4); }
.footer-legal {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  color: rgba(245, 240, 230, 0.5);
  font-size: 0.78rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-legal .disclaimer {
  padding: var(--space-4);
  background: rgba(0,0,0,0.15);
  border-left: 2px solid var(--copper-500);
  color: rgba(245, 240, 230, 0.75);
}
@media (min-width: 900px) {
  .footer-legal { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--space-7); }
  .footer-legal .disclaimer { flex: 1.4; }
  .footer-legal .copyright { flex: 1; text-align: right; }
}

/* ---------- Hero (homepage) --------------------------------------------- */

.hero {
  padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(1000px 500px at 15% 8%, rgba(75, 179, 176, 0.10), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(181, 138, 85, 0.08), transparent 60%),
    var(--cream-50);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 40%; right: -160px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(75, 179, 176, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .split { position: relative; z-index: 1; }
.hero-heading {
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: var(--space-5);
}
.hero-heading em {
  font-style: italic;
  color: var(--teal-700);
  font-family: var(--font-display);
  font-weight: 300;
}
.hero p.lede { margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--teal-700) 100%);
  border-radius: var(--r-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--teal-500), transparent 65%);
  filter: blur(20px);
  opacity: 0.55;
}
.hero-visual::before { top: -80px; right: -80px; width: 320px; height: 320px; }
.hero-visual::after  { bottom: -120px; left: -100px; width: 280px; height: 280px; background: radial-gradient(circle at 30% 30%, var(--copper-500), transparent 65%); opacity: 0.35; }

.hero-visual-inner {
  position: absolute;
  inset: 0;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-visual-inner .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-round);
  color: var(--cream-50);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: max-content;
}
.hero-visual-inner .badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 8px var(--teal-500);
}
.hero-visual-inner .molecule-svg {
  align-self: center;
  width: 70%;
  max-width: 340px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.hero-visual-inner .caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ---------- Feature bar (below hero) ------------------------------------ */

.feature-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-100);
  padding: var(--space-5) 0;
}
.feature-bar-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .feature-bar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-bar-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-bar-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.feature-bar-item svg { width: 22px; height: 22px; color: var(--copper-600); flex-shrink: 0; margin-top: 2px; }
.feature-bar-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 500;
  margin-bottom: 2px;
}
.feature-bar-item p { margin: 0; font-size: 0.85rem; color: var(--ink-500); line-height: 1.5; }

/* ---------- Section heading ---------------------------------------------- */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.section-head .lede { margin: 0 auto; }

/* ---------- Category cards ---------------------------------------------- */

.category-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--space-6);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -60%;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,179,176,0.06), transparent 70%);
  transition: transform var(--transition);
}
.category-card:hover {
  border-color: var(--copper-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.category-card:hover::before { transform: scale(1.5); }
.category-card .cat-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--copper-600);
  letter-spacing: 0.1em;
}
.category-card h3 {
  font-size: 1.4rem;
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}
.category-card p { color: var(--ink-500); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.category-card .link-arrow { margin-top: auto; padding-top: var(--space-3); }

/* ---------- Product cards ----------------------------------------------- */

.product-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--copper-500);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.product-card-visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-800) 60%, var(--teal-700));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-visual svg {
  width: 55%;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.product-card-visual .chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--r-round);
  color: var(--cream-50);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product-card-visual .chip-teal { background: rgba(75,179,176,0.25); border: 1px solid rgba(75,179,176,0.5); color: var(--cream-50); }
.product-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-body .class {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--copper-600);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.product-card-body h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--navy-900);
  line-height: 1.2;
}
.product-card-body .cas {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--ink-400);
  margin-bottom: var(--space-3);
}
.product-card-body .price {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.product-card-body .price .amt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 500;
}
.product-card-body .price .sku-count {
  font-size: 0.75rem;
  color: var(--ink-400);
  letter-spacing: 0.06em;
}

/* ---------- Filters (shop page) ----------------------------------------- */

.shop-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .shop-layout { grid-template-columns: 240px 1fr; gap: var(--space-8); }
}

.filter-panel {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--space-5);
  height: max-content;
  position: sticky;
  top: 100px;
}
.filter-panel h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--copper-600);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.filter-panel ul { list-style: none; padding: 0; margin: 0; }
.filter-panel li { padding: 6px 0; }
.filter-panel a {
  color: var(--ink-700);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--r-2);
  transition: background var(--transition), color var(--transition);
}
.filter-panel a:hover { background: var(--cream-200); color: var(--navy-900); }
.filter-panel a.active { background: var(--navy-900); color: var(--cream-50); }
.filter-panel a.active span { color: var(--copper-400); }
.filter-panel a span { color: var(--ink-400); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; }

.shop-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.shop-header .count { color: var(--ink-400); font-size: 0.9rem; }
.shop-header select {
  border: 1px solid var(--line);
  padding: 8px 32px 8px 12px;
  background: var(--cream-50);
  border-radius: var(--r-2);
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%230b1830' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.products-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Product detail ---------------------------------------------- */

.pdp-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pdp-layout { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); }
}
.pdp-visual {
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-800) 55%, var(--teal-700));
  border-radius: var(--r-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.pdp-visual svg { width: 80%; filter: drop-shadow(0 12px 40px rgba(0,0,0,0.35)); }
.pdp-visual .badge {
  position: absolute; top: 20px; left: 20px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-round);
  color: var(--cream-50);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pdp-visual .footer-inline {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; letter-spacing: 0.06em;
}
.pdp-body h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin-bottom: var(--space-3); }
.pdp-body .class {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--copper-600);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.pdp-body .sub {
  color: var(--ink-500);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}
.pdp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.pdp-meta dt {
  font-size: 0.7rem;
  color: var(--copper-600);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.pdp-meta dd { margin: 0; color: var(--navy-900); font-size: 0.9rem; font-family: 'JetBrains Mono', ui-monospace, monospace; }

.pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pdp-variant {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  cursor: pointer;
  background: var(--cream-50);
  font-size: 0.9rem;
  color: var(--navy-900);
  transition: border-color var(--transition), background var(--transition);
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  min-width: 100px;
}
.pdp-variant:hover { border-color: var(--copper-500); }
.pdp-variant.active { border-color: var(--navy-900); background: var(--cream-100); }
.pdp-variant .size { font-weight: 500; letter-spacing: 0.02em; }
.pdp-variant .price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; color: var(--ink-500); }
.pdp-variant.active .price { color: var(--copper-600); }

.pdp-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.pdp-price-block .amt {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy-900);
  font-weight: 500;
}
.pdp-price-block .per { color: var(--ink-400); font-size: 0.85rem; }

.pdp-subscribe {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--cream-100);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.pdp-subscribe .head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
}
.pdp-subscribe strong { color: var(--navy-900); font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.pdp-subscribe .save { color: var(--copper-600); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; }
.pdp-subscribe .subscribe-options { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-subscribe label { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9rem; color: var(--ink-700); cursor: pointer; }
.pdp-subscribe input[type="radio"] { accent-color: var(--navy-900); }
.pdp-subscribe select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--cream-50); font-size: 0.85rem;
}
.pdp-subscribe .note { font-size: 0.75rem; color: var(--ink-500); line-height: 1.5; }

.pdp-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.pdp-qty button { padding: 12px 18px; color: var(--navy-900); }
.pdp-qty input { width: 60px; text-align: center; border: none; padding: 12px 0; background: transparent; font-size: 1rem; }
.pdp-qty button:hover { background: var(--cream-100); }
.pdp-actions-row { display: flex; gap: var(--space-3); align-items: stretch; }
.pdp-actions-row .btn { flex: 1; }

.pdp-tabs {
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  padding-top: var(--space-7);
}
.pdp-tabs-heads {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}
.pdp-tabs-heads button {
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.pdp-tabs-heads button.active { color: var(--navy-900); border-color: var(--copper-500); }
.pdp-tab { display: none; }
.pdp-tab.active { display: block; }
.pdp-tab h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.pdp-tab p { color: var(--ink-700); }
.pdp-spec-table {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.pdp-spec-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.pdp-spec-table dt {
  font-size: 0.75rem;
  color: var(--copper-600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pdp-spec-table dd { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9rem; color: var(--navy-900); }

/* ---------- Cart & checkout --------------------------------------------- */

.cart-layout,
.checkout-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1.6fr 1fr; }
}
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy-900), var(--teal-700));
  border-radius: var(--r-2);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img svg { width: 65%; opacity: 0.9; }
.cart-item-info { min-width: 0; }
.cart-item-info h4 { font-size: 1.05rem; margin: 0 0 4px; color: var(--navy-900); font-family: var(--font-display); font-weight: 500; }
.cart-item-info .size { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; color: var(--ink-500); margin-bottom: 4px; }
.cart-item-info .sub-note { font-size: 0.72rem; color: var(--copper-600); letter-spacing: 0.1em; text-transform: uppercase; }
.cart-item-info a { color: var(--ink-500); font-size: 0.8rem; text-decoration: underline; margin-right: var(--space-3); }
.cart-item-controls { display: flex; align-items: center; gap: var(--space-4); }
.cart-item-controls .price { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-900); font-weight: 500; }
.cart-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-2); }
.cart-qty button { padding: 6px 10px; }
.cart-qty span { padding: 6px 8px; font-size: 0.9rem; min-width: 24px; text-align: center; }

.cart-summary,
.checkout-summary {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--space-6);
  height: max-content;
  position: sticky;
  top: 100px;
}
.cart-summary h3, .checkout-summary h3 { font-size: 1.2rem; margin-bottom: var(--space-4); }
.cart-summary .line { display: flex; justify-content: space-between; padding: var(--space-2) 0; font-size: 0.92rem; color: var(--ink-700); }
.cart-summary .line.total { padding-top: var(--space-4); border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900); font-weight: 500; }
.cart-summary .line.total .amt { font-family: var(--font-display); }
.cart-summary .disclaimer {
  margin-top: var(--space-5);
  padding: var(--space-3);
  background: var(--cream-50);
  border-left: 2px solid var(--copper-500);
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.5;
}
.cart-empty { padding: var(--space-9) 0; text-align: center; color: var(--ink-500); }
.cart-empty svg { width: 64px; opacity: 0.35; margin: 0 auto var(--space-4); }

/* ---------- Compliance boxes -------------------------------------------- */

.ruo-disclaimer {
  background: var(--cream-100);
  border: 1px solid var(--copper-500);
  border-left: 3px solid var(--copper-500);
  padding: var(--space-4);
  border-radius: var(--r-2);
  font-size: 0.82rem;
  color: var(--navy-900);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}
.ruo-disclaimer strong { display: block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--copper-600); margin-bottom: var(--space-2); font-weight: 600; }

.info-callout {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  padding: var(--space-4);
  border-radius: var(--r-2);
  color: var(--ink-700);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: var(--space-5);
}

/* ---------- Age gate modal ---------------------------------------------- */

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 48, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.age-gate.active { opacity: 1; pointer-events: all; }

.age-gate-modal {
  background: var(--cream-50);
  border-radius: var(--r-3);
  max-width: 620px;
  width: 100%;
  padding: var(--space-8);
  box-shadow: var(--shadow-dark);
  animation: pop 400ms cubic-bezier(.2,.7,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.age-gate-modal .brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-900);
  text-align: center;
  margin-bottom: var(--space-2);
}
.age-gate-modal .sub {
  text-align: center;
  color: var(--copper-600);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.age-gate-modal h2 { font-size: 1.7rem; margin-bottom: var(--space-4); text-align: center; }
.age-gate-modal p { text-align: center; color: var(--ink-700); font-size: 0.92rem; }
.age-gate-checks { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0 var(--space-6); }
.age-gate-buttons { display: flex; gap: var(--space-3); }
.age-gate-buttons .btn { flex: 1; }

/* ---------- Utility ------------------------------------------------------ */

.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--cream-200);
  border-radius: var(--r-round);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.badge-inline--teal { background: rgba(75,179,176,0.12); color: var(--teal-700); }
.badge-inline--copper { background: rgba(181, 138, 85, 0.14); color: var(--copper-600); }

.page-hero {
  padding: var(--space-8) 0 var(--space-7);
  background: linear-gradient(180deg, var(--cream-100), var(--cream-50));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: var(--space-4); }
.page-hero .lede { max-width: 700px; }

.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--copper-600); }
.breadcrumbs span { color: var(--ink-500); }

.dot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dot-list li { padding-left: var(--space-4); position: relative; color: var(--ink-700); font-size: 0.95rem; }
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--copper-500);
  border-radius: 50%;
}

/* ---------- Content / prose --------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-7); font-size: 1.6rem; }
.prose h3 { margin-top: var(--space-6); font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-700); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--copper-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--copper-500);
  padding: var(--space-3) var(--space-5);
  background: var(--cream-100);
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--ink-700);
}
.prose code { font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--cream-100); padding: 2px 6px; border-radius: var(--r-1); font-size: 0.9em; }

/* ---------- FAQ accordion ------------------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 500;
  padding: 0;
  text-align: left;
  width: 100%;
}
.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--copper-600);
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition);
}
.faq-item.open .faq-answer { max-height: 3000px; }
.faq-answer-inner { padding-top: var(--space-4); color: var(--ink-700); line-height: 1.7; max-width: 68ch; }

/* ---------- Table ------------------------------------------------------- */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-600);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); }
.data-table tr:hover td { background: var(--cream-100); }
.data-table code { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--navy-900); font-size: 0.85em; }

/* ---------- Testing / Quality strip ------------------------------------- */

.stats-strip {
  padding: var(--space-8) 0;
  background: var(--navy-900);
  color: var(--cream-100);
}
.stats-strip .grid-4 { gap: var(--space-6); }
.stat {
  text-align: left;
  padding: var(--space-4) 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--cream-50);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.stat .num em { font-style: normal; color: var(--copper-400); font-family: var(--font-display); font-size: 0.65em; margin-left: 4px; }
.stat .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.7);
}

/* ---------- CTA banner --------------------------------------------------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--teal-700) 130%);
  color: var(--cream-50);
  padding: var(--space-9) 0;
  border-radius: var(--r-3);
  overflow: hidden;
  position: relative;
  margin: var(--space-8) auto;
  max-width: var(--wrap);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(75,179,176,0.35), transparent 60%);
  filter: blur(30px);
}
.cta-banner .wrap { position: relative; }
.cta-banner h2 { color: var(--cream-50); }
.cta-banner p { color: rgba(245, 240, 230, 0.8); max-width: 550px; margin-bottom: var(--space-5); font-size: 1.1rem; }

/* ---------- Molecule icon (SVG background) ------------------------------ */

.mol-icon {
  width: 100%;
  color: var(--teal-500);
}

/* ---------- Utilities --------------------------------------------------- */

.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

/* ---------- Search overlay ---------------------------------------------- */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 48, 0.55);
  backdrop-filter: blur(8px);
  z-index: 900;
  display: none;
  animation: fadeIn 180ms ease-out;
}
.search-overlay.open { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-panel {
  position: relative;
  background: var(--cream-50);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  animation: slideDown 260ms cubic-bezier(.2,.7,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideDown { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.search-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  color: var(--ink-500);
  border-radius: var(--r-round);
  display: flex; align-items: center; justify-content: center;
}
.search-close svg { width: 20px; height: 20px; }
.search-close:hover { color: var(--navy-900); background: var(--cream-100); }

.search-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: border-color var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(35,71,127,0.10); }
.search-input-wrap .search-input-icon { width: 20px; height: 20px; color: var(--ink-400); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  padding: 10px 0;
  font-family: var(--font-body);
  color: var(--navy-900);
}
.search-input-wrap input:focus { outline: none; }
.search-input-wrap input::placeholder { color: var(--ink-400); font-family: var(--font-body); font-size: 1rem; }
.search-submit {
  padding: 10px 20px;
  background: var(--navy-900);
  color: var(--cream-50);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-2);
  font-weight: 500;
  transition: background var(--transition);
}
.search-submit:hover { background: var(--navy-800); }

.search-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-500);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.search-hint button {
  padding: 4px 10px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  font-size: 0.78rem;
  color: var(--navy-800);
  transition: all var(--transition);
}
.search-hint button:hover { background: var(--copper-500); color: #241708; border-color: var(--copper-500); }

.search-results { margin-top: 32px; }

.search-hits {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line);
}
.search-hit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
  border-radius: var(--r-2);
}
.search-hit:hover { background: var(--cream-100); }
.search-hit-class {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--copper-600);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.search-hit-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); font-weight: 500; }
.search-hit-sub { font-size: 0.82rem; color: var(--ink-500); margin-top: 2px; }
.search-hit-price {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.search-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.search-footer a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-600);
  font-weight: 500;
}

.search-empty { margin-top: 24px; }
.search-empty-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 16px;
}
.search-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 720px) { .search-cats { grid-template-columns: repeat(3, 1fr); } }
.search-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--cream-100);
  border-radius: var(--r-2);
  font-size: 0.9rem;
  color: var(--navy-800);
  transition: all var(--transition);
}
.search-cats a .n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--ink-400);
}
.search-cats a:hover { background: var(--navy-900); color: var(--cream-50); }
.search-cats a:hover .n { color: var(--copper-400); }

/* ---------- Vial visual ------------------------------------------------- */

.vial-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
  padding: 8%;
  box-sizing: border-box;
}
.vial-wrap svg { max-width: 100%; max-height: 100%; }
.product-card-visual .vial-wrap { padding: 6%; }
.pdp-visual .vial-wrap { padding: 4%; }
.hero-visual .vial-wrap { padding: 2%; }

/* ---------- Print ------------------------------------------------------- */

@media print {
  .header, .footer, .age-gate, .search-overlay, .top-strip { display: none; }
  body { background: white; color: black; }
}

/* ==========================================================================
 * Gated access, accounts & affiliate programme (v1.1)
 * ========================================================================*/

/* ---------- Locked-catalog panel ---------------------------------------- */
.gate-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(36px, 6vw, 64px);
  box-shadow: 0 16px 48px rgba(11, 24, 48, 0.07);
}
.gate-panel-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cream-100);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-600);
}
.gate-panel-icon svg { width: 26px; height: 26px; }
.gate-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 10px 0 14px; }
.gate-panel-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.gate-panel-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Header auth state ------------------------------------------- */
.nav-signin-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-signin-cta:hover { background: var(--navy-900); color: var(--cream-50); }
@media (max-width: 860px) { .nav-signin-cta { display: none; } }
.nav-icon--authed { position: relative; }
.auth-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500);
  border: 1.5px solid var(--white);
}

/* ---------- Auth cards & tabs ------------------------------------------- */
.auth-tabs {
  display: flex; gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  appearance: none; background: none; border: none;
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink-500);
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--navy-900); border-bottom-color: var(--copper-500); }
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 36px rgba(11, 24, 48, 0.05);
  display: flex; flex-direction: column; gap: 14px;
}
.auth-card .field textarea { font-family: var(--font-body); resize: vertical; }
.auth-benefits {
  padding: clamp(24px, 4vw, 36px);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-error { color: #a03434; font-size: 0.88rem; min-height: 1.2em; }
.form-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-600);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Disclosure / attestation block ------------------------------ */
.disclosure-block {
  display: flex; flex-direction: column; gap: 10px;
  margin: 8px 0;
}
.disclosure-block h3 { font-size: 1.02rem; }
.disclosure-block > p { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 4px; }
.disclosure-block .check-copy { font-size: 0.86rem; line-height: 1.55; }
.check--disabled { opacity: 0.55; }
.check--disabled input { cursor: not-allowed; }

/* ---------- Account dashboard ------------------------------------------- */
.dash-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
  height: 100%;
}
.dash-card h3 { font-size: 1.2rem; }
.mini-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.mini-table td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); vertical-align: top; }
.mini-table td:first-child { color: var(--ink-500); padding-right: 14px; white-space: nowrap; }

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid;
}
.status-pill--approved { color: #2b7c79; border-color: rgba(75,179,176,0.5); background: rgba(75,179,176,0.1); }
.status-pill--pending  { color: #96703f; border-color: rgba(181,138,85,0.5); background: rgba(181,138,85,0.1); }
.status-pill--declined { color: #a03434; border-color: rgba(178,58,58,0.4); background: rgba(178,58,58,0.07); }

/* ---------- Affiliate volume rows --------------------------------------- */
.vol-row {
  display: grid;
  grid-template-columns: 1fr 170px 38px;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.vol-row select, .vol-row input {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 11px 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.vol-remove {
  appearance: none; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r-2);
  height: 40px; cursor: pointer;
  color: var(--ink-500); font-size: 1.1rem; line-height: 1;
}
.vol-remove:hover { color: #a03434; border-color: #a03434; }
@media (max-width: 640px) { .vol-row { grid-template-columns: 1fr 110px 38px; } }

/* ---------- Real label photography -------------------------------------- */
.label-photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--line);
}
.label-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-strip .label-photo { aspect-ratio: 3 / 4; }
.photo-strip figcaption {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-500);
  padding-top: 10px; text-transform: uppercase;
}
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr; } }

.hero-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(11, 24, 48, 0.25);
}
.hero-photo img { width: 100%; display: block; }
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,24,48,0.42) 0%, rgba(11,24,48,0.05) 38%, rgba(11,24,48,0.0) 60%, rgba(11,24,48,0.35) 100%);
  pointer-events: none;
}
.hero-photo .hero-photo-badge {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  color: var(--cream-50);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(11,24,48,0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Hero photo fills the 4:5 hero-visual frame */
.hero-visual .hero-photo { position: absolute; inset: 0; border-radius: 0; box-shadow: none; z-index: 1; }
.hero-visual .hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* PDP real-photo layer */
.pdp-photo { position: absolute; inset: 0; }
.pdp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,24,48,0.35) 0%, rgba(11,24,48,0) 30%, rgba(11,24,48,0) 55%, rgba(11,24,48,0.55) 100%);
  pointer-events: none;
}
.pdp-photo-caption {
  position: absolute; left: 20px; bottom: 44px; z-index: 2;
  color: rgba(255,255,255,0.85);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ==========================================================================
 * Studio render presentation (v1.2) — white-background packaging renders
 * ========================================================================*/

.product-card-visual--light {
  background: linear-gradient(180deg, #ffffff 0%, #f3f2ef 100%);
}
.product-card-visual--light .chip {
  background: var(--navy-900);
  color: var(--cream-50);
}

.pdp-visual--light {
  background: linear-gradient(180deg, #ffffff 0%, #f1efeb 100%);
}
.pdp-photo--light img { object-fit: contain; padding: 6% 4% 10%; background: transparent; }
.pdp-photo--light::after { background: none; }
.pdp-visual--light .pdp-photo-caption { color: var(--ink-500); }
.pdp-visual--light .badge {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--cream-50);
}
.pdp-visual--light .footer-inline { color: var(--ink-400); }

.pdp-authenticity {
  display: flex; gap: 16px; align-items: center;
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.pdp-authenticity img {
  width: 72px; height: 96px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
  border: 1px solid var(--line);
}
.pdp-authenticity strong {
  display: block; font-size: 0.82rem; color: var(--navy-900);
  letter-spacing: 0.02em; margin-bottom: 4px;
}
.pdp-authenticity p { font-size: 0.78rem; color: var(--ink-500); margin: 0; line-height: 1.5; }

/* Light hero variant for white studio lineup */
.hero-visual--light {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #ffffff 0%, #f1efeb 100%);
  border: 1px solid var(--line);
}
.hero-visual--light::before, .hero-visual--light::after { display: none; }
.hero-visual--light .hero-photo img { object-fit: contain; padding: 6%; }
.hero-visual--light .hero-photo::after { background: none; }
.hero-visual--light .hero-photo-badge {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

/* Badge sits above the photo/render layer */
.pdp-visual .badge { z-index: 3; }
.pdp-photo { z-index: 1; }

/* Light photo-strip for white studio renders */
.label-photo--light { background: linear-gradient(180deg, #ffffff 0%, #f1efeb 100%); }
.label-photo--light img { object-fit: contain; padding: 8%; }

/* ==========================================================================
 * COA document grid (v1.3)
 * ========================================================================*/
.coa-batch { margin-top: 24px; }
.coa-batch-head { margin-bottom: 12px; }
.coa-batch-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper-600);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; background: var(--cream-100);
}
.coa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .coa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coa-grid { grid-template-columns: 1fr; } }
.coa-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.coa-card:hover { box-shadow: 0 12px 32px rgba(11,24,48,0.10); transform: translateY(-2px); }
.coa-card-thumb {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: #f6f6f4;
  border-bottom: 1px solid var(--line-soft);
}
.coa-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.coa-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.coa-card-body strong { font-size: 0.9rem; color: var(--navy-900); }
.coa-card-body span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-500);
}

/* ==========================================================================
 * Native brand lockup (v1.4) — replaces the boxed JPEG logo
 * ========================================================================*/
.nav-brand { background: none; padding: 0; margin-left: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy-900);
}
.brand-word small {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-top: 4px;
  padding-left: 2px;
}
@media (min-width: 1000px) { .brand-mark { width: 44px; height: 44px; } .brand-word em { font-size: 1.65rem; } }

/* Uploaded logo lockup (v1.5) — processed transparent PNG */
.brand-lockup { height: 66px; width: auto; display: block; }
@media (min-width: 1000px) { .brand-lockup { height: 74px; } }

/* ==========================================================================
 * Premium polish (v1.6): airier rhythm, deeper glass, responsive molecules
 * ========================================================================*/

/* Airier section rhythm (~+25%) */
section { padding: 80px 0; }
section.section-lg { padding: 120px 0; }
section.section-xl { padding: 160px 0; }
@media (min-width: 900px) {
  section { padding: 120px 0; }
  section.section-lg { padding: 160px 0; }
}
.section-head { margin-bottom: 56px; }

/* Deeper glassmorphism on modal & overlay surfaces */
.age-gate {
  background: rgba(11, 24, 48, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}
.age-gate-modal {
  background: rgba(251, 249, 244, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 80px rgba(11, 24, 48, 0.35);
}
.search-overlay {
  background: rgba(11, 24, 48, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}
.search-panel {
  background: rgba(251, 249, 244, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.gate-panel {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Access-tier panel (account page) */
.tier-panel {
  padding: 28px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 18px;
}
.tier { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.tier:first-of-type { border-top: none; padding-top: 4px; }
.tier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tier-head strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-900); }
.tier p { font-size: 0.88rem; color: var(--ink-500); margin: 0; }

/* Responsive molecule accents: hover lift + pointer parallax (JS sets vars) */
.mol-icon { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.mol-icon:hover { transform: rotate(8deg) scale(1.06); }
.mol-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--mr, 0deg));
  transition: transform 0.25s ease-out;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mol-icon, .mol-float { transition: none; }
  .mol-float { transform: none; }
}

/* ==========================================================================
 * v1.7 — Sequence maps, Laboratory Mode, COA deep-zoom, holo sheen,
 *        magnetic buttons, the Vault
 * ========================================================================*/

/* ---------- Interactive amino-acid sequence map -------------------------- */
.seq-block { margin: 26px 0 6px; }
.seq-block h3 {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper-600); font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500; margin-bottom: 12px;
}
.seq-map { display: flex; flex-wrap: wrap; gap: 6px; }
.seq-res {
  position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 500;
  padding: 6px 9px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.seq-res:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11,24,48,0.12); z-index: 3; }
.seq-res::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(0.96);
  background: var(--navy-900); color: var(--cream-50);
  font-size: 0.68rem; letter-spacing: 0.03em; white-space: nowrap;
  padding: 6px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.seq-res:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
/* On narrow/touch screens the (always-laid-out) tooltips overflow the page and
   hover is unavailable — remove the pseudo-element so the page never scrolls sideways. */
@media (max-width: 700px) { .seq-res::after { content: none; } }
.seq-res.sq-hydro  { border-bottom-color: var(--teal-600); }
.seq-res.sq-polar  { border-bottom-color: #3c78b8; }
.seq-res.sq-basic  { border-bottom-color: #7a55d4; }
.seq-res.sq-acidic { border-bottom-color: var(--copper-500); }
.seq-res.sq-special{ border-bottom-color: var(--ink-400); }
.seq-res:hover.sq-hydro  { background: rgba(47,140,139,0.10); }
.seq-res:hover.sq-polar  { background: rgba(60,120,184,0.10); }
.seq-res:hover.sq-basic  { background: rgba(122,85,212,0.10); }
.seq-res:hover.sq-acidic { background: rgba(181,138,85,0.12); }
.seq-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.65rem; letter-spacing: 0.06em; color: var(--ink-500);
}
.seq-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seq-legend i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }

/* ---------- Laboratory Mode (deep navy / fluorescent teal) --------------- */
html.lab-mode {
  --cream-50:  #0a1322;
  --cream-100: #0e1a30;
  --cream-200: #17253f;
  --white:     #101d34;
  --line:      #24344f;
  --line-soft: #1b2a44;
  --ink-900:   #e9f0fa;
  --ink-700:   #c6d2e4;
  --ink-500:   #8ea1bd;
  --ink-400:   #8fa0bb;   /* brightened for AA (~5:1) as small secondary text on dark */
  --ink-300:   #6d7f9d;
  --teal-500:  #3ee6df;
  --teal-600:  #2fc9c3;
  --teal-700:  #23a19d;
  --copper-400: #eec98a;
  --copper-500: #d8ac66;
  --copper-600: #c69753;
}
html.lab-mode body { background: var(--cream-50); }
html.lab-mode h1, html.lab-mode h2, html.lab-mode h3, html.lab-mode h4,
html.lab-mode .brand-word em,
html.lab-mode .price .amt,
html.lab-mode .pdp-body h1 { color: var(--ink-900); }
html.lab-mode h1 em, html.lab-mode .hero-heading em { color: var(--teal-500); }
html.lab-mode .lede, html.lab-mode p { color: var(--ink-700); }
html.lab-mode .header { background: rgba(10, 19, 34, 0.92); border-bottom: 1px solid var(--line); }
html.lab-mode .nav-menu a, html.lab-mode .nav-icon { color: var(--ink-700); }
html.lab-mode .nav-signin-cta { color: var(--ink-900); border-color: var(--ink-500); }
html.lab-mode .brand-word small { color: var(--teal-500); }
html.lab-mode .page-hero { background: linear-gradient(180deg, #0e1a30, #0a1322); }
html.lab-mode .hero { background: linear-gradient(160deg, #0e1a30 0%, #0a1322 70%); }
html.lab-mode .btn-primary { background: var(--teal-600); color: #06121f; border-color: var(--teal-600); }
html.lab-mode .btn-primary:hover { background: var(--teal-500); }
html.lab-mode .btn-outline { color: var(--ink-900); border-color: var(--ink-500); }
html.lab-mode .category-card, html.lab-mode .product-card { background: var(--white); border-color: var(--line); }
html.lab-mode .footer-legal .disclaimer { color: var(--ink-500); }
html.lab-mode .brand-lockup { filter: invert(0.92) hue-rotate(180deg) saturate(0.8); }
/* denser, instrument-like data type in lab mode */
html.lab-mode .pdp-meta dd, html.lab-mode .cas, html.lab-mode .mono,
html.lab-mode .mini-table td { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Holographic sheen (CSS shader, pointer-reactive) ------------- */
.holo { position: relative; overflow: hidden; isolation: isolate; }
.holo::after {
  content: '';
  position: absolute; inset: -40%;
  background: conic-gradient(from calc(var(--ha, 0) * 1deg),
    rgba(255,80,120,0.55), rgba(255,200,80,0.55), rgba(120,255,140,0.55),
    rgba(80,200,255,0.55), rgba(160,120,255,0.55), rgba(255,80,120,0.55));
  mix-blend-mode: color-dodge;
  opacity: 0.35;
  filter: blur(14px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.holo:hover::after { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .holo::after { display: none; } }

/* ---------- Magnetic primary buttons ------------------------------------ */
.btn-primary, .btn-accent { transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), background 0.2s, box-shadow 0.2s; will-change: transform; }

/* ---------- COA deep-zoom lightbox --------------------------------------- */
.coa-zoom {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(11, 24, 48, 0.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
}
.coa-zoom.dragging { cursor: grabbing; }
.coa-zoom-stage { position: relative; width: min(94vw, 1100px); height: 88vh; overflow: hidden; border-radius: 12px; background: #f6f6f4; }
.coa-zoom-stage img {
  position: absolute; top: 0; left: 0; width: 100%;
  transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
}
.coa-zoom-bar {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
}
.coa-zoom-bar .t {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(11,24,48,0.85); color: var(--cream-50);
  padding: 8px 14px; border-radius: 999px;
}
.coa-zoom-close {
  pointer-events: auto;
  appearance: none; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11,24,48,0.85); color: #fff; font-size: 1.1rem; line-height: 1;
}
.coa-zoom-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85); background: rgba(11,24,48,0.7); padding: 6px 14px; border-radius: 999px;
}
.seq-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1rem; letter-spacing: 0.3em;
  color: var(--teal-700); background: #f6f6f4;
}

/* ---------- The Vault ---------------------------------------------------- */
.vault-scan {
  position: fixed; inset: 0; z-index: 1300; pointer-events: none;
  background: rgba(10, 19, 34, 0.92);
  animation: vaultFade 1.4s ease forwards;
}
.vault-scan::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #3ee6df, transparent);
  box-shadow: 0 0 24px 4px rgba(62, 230, 223, 0.6);
  animation: vaultScanline 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.vault-scan .vault-scan-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: #3ee6df;
}
@keyframes vaultScanline { from { top: 0; } to { top: 100%; } }
@keyframes vaultFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .vault-scan { display: none; } }
.vault-group { margin-bottom: 40px; }
.vault-group h3 { font-size: 1.15rem; margin-bottom: 12px; }
.vault-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.vault-row .n { font-weight: 600; color: var(--navy-900); }
.vault-row .docs { display: flex; gap: 8px; flex-wrap: wrap; }
.vault-doc {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.06em;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream-100); color: var(--ink-700); cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.vault-doc:hover { border-color: var(--teal-600); color: var(--teal-700); }

/* ---------- Federated sign-on buttons (v1.8) ----------------------------- */
.sso-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  appearance: none; cursor: pointer;
  background: var(--white); color: var(--ink-900);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 16px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sso-btn:hover { border-color: var(--ink-400); box-shadow: 0 6px 18px rgba(11,24,48,0.08); transform: translateY(-1px); }
.sso-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 10px 0 4px;
  color: var(--ink-400);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.sso-divider::before, .sso-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Checkout summary line spacing */
.checkout-summary .line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 8px 0; font-size: 0.92rem; color: var(--ink-700);
}

/* COA viewer: contain the whole certificate at open; transforms sit on top */
.coa-zoom-stage { display: flex; align-items: center; justify-content: center; }
.coa-zoom-stage img {
  position: relative; top: auto; left: auto;
  width: auto; max-width: 100%; max-height: 100%;
  transform-origin: center center;
}

/* ==========================================================================
 * Laboratory Mode v2 — full dark-theme readability pass.
 * Strategy: navy tokens FLIP TO LIGHT so every `color: var(--navy-*)` text
 * reads on dark panels; every surface that used navy as a BACKGROUND is
 * pinned dark below with pinned light text.
 * ========================================================================*/
html.lab-mode {
  --navy-900: #e9f0fa;
  --navy-800: #d2deee;
  --navy-700: #b7c8e0;
  --navy-600: #9db3d2;
}

/* ---- pinned dark surfaces (literal navy family) ---- */
html.lab-mode .btn { background: #16294a; border-color: #16294a; color: #f2ede2; }
html.lab-mode .btn:hover { background: #1d3560; color: #f2ede2; }
html.lab-mode .btn-primary { background: var(--teal-600); border-color: var(--teal-600); color: #06121f; }
html.lab-mode .btn-primary:hover { background: var(--teal-500); color: #06121f; }
html.lab-mode .btn-accent { background: var(--copper-500); border-color: var(--copper-500); color: #1c1206; }
html.lab-mode .btn-outline { background: transparent; color: var(--ink-900); border-color: var(--ink-500); }
html.lab-mode .btn-outline:hover { background: #16294a; color: #f2ede2; }
html.lab-mode .btn-light { background: #e9f0fa; color: #0b1830; border-color: #e9f0fa; }
html.lab-mode .btn-light:hover { background: #cfdcef; color: #0b1830; }
html.lab-mode .btn-ghost { background: transparent; border-color: transparent; color: var(--ink-700); }

html.lab-mode .top-strip { background: #060d1a; color: #d9cfae; }
html.lab-mode .footer { background: #081120; }
html.lab-mode .stats-strip { background: #0d1830; }
html.lab-mode .stats-strip h2, html.lab-mode .stats-strip p { color: #f2ede2; }
html.lab-mode .cta-banner { background: linear-gradient(120deg, #0d1830 0%, #12213d 60%, #123a3d 130%); }
html.lab-mode .cta-banner h2, html.lab-mode .cta-banner p { color: #f2ede2; }
html.lab-mode .bg-dark { background: #0d1830; color: #e7e0cf; }
html.lab-mode .search-submit { background: #16294a; color: #f2ede2; }
html.lab-mode .search-submit:hover { background: #1d3560; }
html.lab-mode .search-cats a:hover { background: #16294a; color: #f2ede2; }
html.lab-mode .nav-signin-cta:hover { background: #e9f0fa; color: #0b1830; }
html.lab-mode .filter-panel a.active { background: #16294a; color: #f2ede2; }
html.lab-mode .product-card-visual { background: linear-gradient(140deg, #0d1830, #12213d 60%, #1c4a4d); }
html.lab-mode .pdp-visual { background: linear-gradient(140deg, #0d1830, #12213d 55%, #1c4a4d); }
html.lab-mode .cart-item-img { background: #0d1830; }
html.lab-mode .label-photo { background: #0d1830; }
html.lab-mode .product-card-visual--light { background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%); }
html.lab-mode .pdp-visual--light { background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%); }
html.lab-mode .label-photo--light { background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%); }
html.lab-mode .hero-visual--light { background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%); border-color: var(--line); }
html.lab-mode .product-card-visual--light .chip { background: #0b1830; color: #f2ede2; }
html.lab-mode .pdp-visual--light .badge { background: #0b1830; border-color: #0b1830; color: #f2ede2; }
html.lab-mode .pdp-visual--light .pdp-photo-caption { color: #46536b; }
html.lab-mode .pdp-visual--light .footer-inline { color: #6b7f9d; }
html.lab-mode .hero-photo-badge { background: #0b1830; border-color: #0b1830; color: #f2ede2; }
html.lab-mode .seq-res::after { background: #0b1830; color: #f2ede2; }
html.lab-mode .coa-batch-label { background: var(--cream-100); }

/* glass panels flip to dark glass */
html.lab-mode .age-gate-modal {
  background: rgba(14, 24, 44, 0.94); border-color: rgba(255,255,255,0.14);
}
html.lab-mode .search-panel { background: rgba(12, 21, 38, 0.95); }
html.lab-mode .gate-panel { background: rgba(15, 26, 47, 0.9); border-color: rgba(255,255,255,0.12); }
html.lab-mode .gate-panel-icon { background: #16294a; border-color: #24344f; }

/* misc readability */
html.lab-mode .price .amt, html.lab-mode .vault-row .n,
html.lab-mode .tier-head strong, html.lab-mode .search-hit-name { color: var(--ink-900); }
html.lab-mode .ruo-disclaimer { background: var(--cream-100); color: var(--ink-700); }
html.lab-mode .form-error { color: #e39a9a; }
html.lab-mode .rule-bad { background: rgba(214,106,106,0.10); border-color: rgba(214,106,106,0.35); }
html.lab-mode .rule-bad strong { color: #e39a9a; }
html.lab-mode .rule-good strong { color: #7fd0cd; }
html.lab-mode .status-pill--declined { color: #e39a9a; border-color: rgba(214,106,106,0.4); background: rgba(214,106,106,0.08); }
html.lab-mode .vol-remove { background: var(--white); color: var(--ink-500); }
html.lab-mode .vol-remove:hover { color: #e39a9a; border-color: #e39a9a; }
html.lab-mode img.brand-lockup { filter: none; content: url('../img/logo-lockup-light.png'); }

/* Lab mode: form controls must carry light text explicitly (UA default is dark) */
html.lab-mode input, html.lab-mode textarea, html.lab-mode select {
  color: var(--ink-900);
  background: var(--white);
  border-color: var(--line);
}
html.lab-mode input::placeholder, html.lab-mode textarea::placeholder { color: var(--ink-400); }
html.lab-mode select option { background: #101d34; color: #e9f0fa; }
html.lab-mode input[readonly] { background: var(--cream-200) !important; }

/* Lab mode: entry-gate logo swaps to the light lockup */
html.lab-mode img.gate-logo { content: url('../img/logo-lockup-light.png'); }

/* ==========================================================================
 * Mobile fit pass (v1.9) — audit-driven fixes at <=700px
 * ========================================================================*/
@media (max-width: 700px) {
  .brand-lockup { height: 38px; }
  .nav { gap: 8px; min-height: 64px; }
  .nav-actions { gap: 2px; }
  .nav-icon { width: 36px; height: 36px; padding: 6px; }
  .nav-icon svg { width: 18px; height: 18px; }
  .pdp-actions-row { flex-wrap: wrap; }
  .pdp-actions-row .btn { max-width: none !important; width: 100%; }
}
/* Grid/flex children must be allowed to shrink below content size */
.vol-row select, .vol-row input { min-width: 0; }
.vol-row { grid-template-columns: minmax(0, 1fr) 110px 38px; }
@media (max-width: 640px) { .vol-row { grid-template-columns: minmax(0, 1fr) 96px 34px; } }
.checkout-summary, .cart-summary { min-width: 0; }
/* Wide data tables scroll inside their own container */
.aff-orders, .data-table { display: block; overflow-x: auto; }

/* ==========================================================================
 * Lab-mode contrast pass v3 — pinned-dark sections keep light text even when
 * the text color came from a cream token (which flips dark in lab mode).
 * ========================================================================*/
html.lab-mode :is(.stats-strip, .cta-banner, .bg-dark, .top-strip, .footer) [style*="--cream"] {
  color: #f2ede2 !important;
}
html.lab-mode .stats-strip .stat .num { color: #f2ede2; }
html.lab-mode .stats-strip .stat .label { color: rgba(240, 234, 220, 0.72); }
html.lab-mode .footer h4 { color: #f2ede2; }
html.lab-mode .footer a { color: rgba(240, 234, 220, 0.8); }
html.lab-mode .footer-newsletter input { background: #101d34; color: #e9f0fa; }

/* PDP tab heads: wrap on small screens instead of overflowing */
@media (max-width: 700px) {
  .pdp-tabs-heads { flex-wrap: wrap; gap: 4px 18px; }
}

/* ==========================================================================
 * ADA / WCAG AA pass — dark-mode leaks, warning token, keyboard focus.
 * ========================================================================*/
/* Dark header: the legacy multiply blend crushed the light wordmark to black. */
html.lab-mode .brand-lockup { mix-blend-mode: normal; }

/* Status pills: approved/pending were dark hex on now-dark tints in lab mode. */
html.lab-mode .status-pill--approved { color: #7fd0cd; }
html.lab-mode .status-pill--pending  { color: #e6c07a; }

/* Chips/badges over gradient product visuals use cream-50 (flips dark) — pin light. */
html.lab-mode :is(.product-card-visual .chip, .pdp-visual .badge) { color: #f2ede2; }

/* COA deep-zoom title pill sits on a hardcoded dark scrim in both themes. */
.coa-zoom-bar .t { color: #f5f0e6; }

/* Prop-65 warning text: bright variant on the dark disclaimer box in lab mode. */
html.lab-mode { --warn-ink: #f0a35d; }

/* Keyboard focus ring on every interactive element (WCAG 2.4.7 Focus Visible).
   :focus-visible so pointer users don't see it. */
:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 3px;
}
html.lab-mode :focus-visible { outline-color: var(--teal-500); }

/* Grid/flex columns may always shrink below content width (mobile safety) */
.split > div, .grid > div { min-width: 0; }
.field select, .field input { max-width: 100%; min-width: 0; }
