/* =========================================================================
   LIVE GREATER LABS — Peptide Index
   Monochrome "studio black" system. Two weights only: Montserrat 600 / 700.
   ========================================================================= */

:root {
  /* surfaces */
  --bg:        #08080a;
  --bg-1:      #0c0c0f;
  --bg-2:      #121216;
  --bg-3:      #17171c;
  --bg-glass:  rgba(20, 20, 25, 0.72);

  /* ink */
  --ink:       #f6f6f8;
  --ink-2:     #cfcfd6;
  --ink-3:     #9a9aa4;
  --muted:     #6f6f79;

  /* lines */
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.14);
  --line-3:    rgba(255, 255, 255, 0.22);

  /* cool studio accent (kept near-neutral to match the photo) */
  --accent:    #e9eef5;
  --accent-2:  #b9c4d2;
  --glow:      rgba(150, 175, 205, 0.16);
  --glow-soft: rgba(150, 175, 205, 0.08);

  --warn:      #c2c8d0;   /* sand, for honest-warning notes only */

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo-ish */
  --ease-2: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;

  /* z-index scale */
  --z-nav: 100;
  --z-backdrop: 1000;
  --z-modal: 1001;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fixed studio ambiance — single cool key light fading to black, like the photo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(120, 140, 170, 0.14), transparent 55%),
    radial-gradient(90% 60% at 50% 0%, rgba(80, 90, 110, 0.10), transparent 60%),
    var(--bg);
}
/* faint grain for material depth (very low, no stripes) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: rgba(200, 215, 235, 0.22); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }

/* shared eyebrow / label */
.label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  padding-top: 13px;
  padding-bottom: 13px;
}
.nav__brand {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__brand .mark {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.nav__links { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px 60px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero h1 .thin { color: var(--ink-3); }
.hero__sub {
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero__sub strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__stats { display: flex; gap: 34px; margin-top: 52px; }
.hero__stat .n { font-weight: 700; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; }
.hero__stat .l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* primary button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0c;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 8px 30px -12px rgba(180, 200, 225, 0.5);
}
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(180, 200, 225, 0.7); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--line-3); color: var(--ink); box-shadow: none; }

/* hero bottle */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 60vh; }

/* =========================================================================
   BOTTLE (CSS replica fallback; real <img> overlays it when present)
   ========================================================================= */
.bottle {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
/* the cool key-light pool behind the bottle */
.bottle::before {
  content: "";
  position: absolute;
  inset: 4% 8% 0;
  z-index: 0;
  background: radial-gradient(60% 48% at 50% 30%, var(--glow), transparent 70%);
  filter: blur(6px);
}
.bottle__photo {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
  display: none;            /* revealed only once the real image loads */
}
.bottle.has-photo .bottle__photo { display: block; }
.bottle.has-photo .bottle__css,
.bottle.has-photo .bottle__reflect { display: none; }
.modal__rankline {
  font-weight: 700; font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-3); margin: 0 0 14px;
}
.modal__rankline strong { color: var(--accent-2); }

/* --- drawn fallback bottle --- */
.bottle__css {
  position: relative;
  z-index: 2;
  width: 46%;
  height: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(-10px 18px 26px rgba(0,0,0,0.7));
}
.bottle__cap {
  width: 58%;
  height: 17%;
  border-radius: 12px 12px 9px 9px / 16px 16px 9px 9px;
  background:
    linear-gradient(180deg, #34343a 0%, #1d1d22 38%, #111116 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.16),
    inset 0 -7px 10px rgba(0,0,0,0.7);
  position: relative;
}
.bottle__cap::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 40%; bottom: 8%;
  border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}
.bottle__neck {
  width: 52%;
  height: 8%;
  margin-top: -2%;
  background: linear-gradient(180deg, #0c0c10, #1a1a20 60%, #0a0a0d);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.8), inset 5px 0 7px rgba(255,255,255,0.05);
}
.bottle__body {
  flex: 1;
  width: 100%;
  margin-top: -1%;
  border-radius: 16px 16px 22px 22px / 22px 22px 26px 26px;
  background:
    linear-gradient(105deg, #25252b 0%, #0e0e12 26%, #060608 60%, #1b1b21 100%);
  box-shadow:
    inset 7px 0 12px rgba(255,255,255,0.08),
    inset -10px 0 20px rgba(0,0,0,0.8),
    inset 0 -16px 26px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.bottle__shine {
  position: absolute; top: 6%; left: 14%; width: 8%; height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  filter: blur(3px); border-radius: 50%;
  opacity: 0.45;
}
.bottle__label {
  position: absolute;
  inset: 16% 6% 10%;
  border-radius: 8px;
  background: linear-gradient(180deg, #161619, #0d0d10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8% 6%;
  text-align: center;
}
.bottle__label .lname {
  font-weight: 700;
  font-size: clamp(8px, 1.5vw, 13px);
  letter-spacing: 0.01em;
  color: #eef0f3;
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}
.bottle__label .lsub {
  font-weight: 600;
  font-size: clamp(6px, 0.95vw, 8.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.bottle__label .lrule { width: 30%; height: 2px; border-radius: 2px; background: var(--line-3); }

/* floor reflection */
.bottle__reflect {
  position: absolute;
  z-index: 1;
  bottom: -1%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 9%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(170,190,215,0.10), transparent 72%);
  filter: blur(5px);
}

/* hero bottle scaling + idle float */
.hero__visual .bottle { max-width: 440px; }
.hero__visual .bottle { animation: float 4.3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(5px); } 50% { transform: translateY(-26px); } }

/* =========================================================================
   CATEGORY SECTIONS
   ========================================================================= */
.cat { padding: 76px 0 12px; scroll-margin-top: 80px; }
.cat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  margin-bottom: 10px;
}
.cat__index { font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--ink-3); }
.cat__index b { color: var(--accent-2); }
.cat__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.cat__sub {
  max-width: 64ch;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-top: 16px;
  text-wrap: pretty;
}
.cat__sub strong { color: var(--ink-2); font-weight: 700; }
.cat__meta { text-align: right; flex: none; }
.cat__count { font-weight: 700; font-size: 44px; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.cat__count span { color: var(--muted); font-size: 20px; }
.cat__countl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 720px) { .cat__head { flex-direction: column; align-items: flex-start; } .cat__meta { text-align: left; } }

/* least -> strongest rail */
.rail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 22px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.rail .track { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line), var(--accent-2)); }
.rail .strong { color: var(--accent); }

/* =========================================================================
   BOTTLE GRID + CARD
   ========================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 40%),
    var(--bg-1);
  padding: 18px 18px 20px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.pcard::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
  background: radial-gradient(80% 50% at 50% 0%, var(--glow-soft), transparent 70%);
  transition: opacity 0.5s var(--ease);
}
.pcard:hover { transform: translateY(-7px); border-color: var(--line-2); }
.pcard:hover::after { opacity: 1; }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcard.is-best { border-color: var(--line-2); background: linear-gradient(180deg, rgba(200,215,235,0.06), rgba(255,255,255,0) 46%), var(--bg-1); }
.pcard.is-best::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(200,215,235,0.5), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.pcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pcard__no { font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.pcard__rank {
  font-weight: 700; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 9px;
}
.pcard.is-best .pcard__rank { color: #0a0a0c; background: var(--accent); border-color: var(--accent); }

.pcard__bottle { position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 2px 0 12px; }
.pcard__bottle .bottle { transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__bottle .bottle { transform: scale(1.045); }

.pcard__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
.pcard__cs { font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 4px; min-height: 1.4em; }
.pcard__tag { font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.pcard__pot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pcard__pot .pl { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.seg { display: flex; gap: 3px; flex: 1; }
.seg i { height: 4px; flex: 1; border-radius: 2px; background: var(--line-2); transition: background 0.4s var(--ease); }
.seg i.on { background: var(--accent); box-shadow: 0 0 8px var(--glow); }

.pcard__view {
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.4s var(--ease), gap 0.4s var(--ease);
}
.pcard__view .arrow { transition: transform 0.5s var(--ease); }
.pcard:hover .pcard__view { color: var(--ink); gap: 11px; }
.pcard:hover .pcard__view .arrow { transform: translateX(3px); }

/* =========================================================================
   CALLOUT NOTES (no side-stripe; full border + tint + leading glyph)
   ========================================================================= */
.notes { display: grid; gap: 12px; margin: 6px 0 8px; }
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.note strong { color: var(--ink); font-weight: 700; }
.note__icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-weight: 700; font-size: 13px; color: var(--ink-2);
  flex: none;
}
.note--warn { background: linear-gradient(180deg, rgba(185,196,210,0.05), transparent), var(--bg-1); border-color: rgba(185,196,210,0.22); }
.note--warn .note__icon { color: var(--warn); border-color: rgba(185,196,210,0.4); }

/* =========================================================================
   MODAL
   ========================================================================= */
.backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}
.modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 90svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(110% 60% at 30% -10%, rgba(120,140,170,0.12), transparent 60%),
    var(--bg-2);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(26px) scale(0.975);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.backdrop.open ~ .modal .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(10,10,12,0.6);
  color: var(--ink-2);
  font-size: 18px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); background: var(--accent); color: #0a0a0c; }

/* modal left — bottle stage */
.modal__stage {
  position: relative;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%);
}
.modal__stage .bottle { flex: 1; min-height: 240px; }
.modal__stagehead { display: flex; align-items: center; justify-content: space-between; }
.modal__no { font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); }
.modal__rankbadge {
  font-weight: 700; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px;
}
.modal__rankbadge.is-best { color: #0a0a0c; background: var(--accent); border-color: var(--accent); }
.modal__nav { display: flex; gap: 10px; justify-content: center; padding-top: 10px; }
.modal__navbtn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.modal__navbtn:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.modal__navbtn:active { transform: scale(0.93); }
.modal__navbtn:disabled { opacity: 0.28; cursor: not-allowed; }

/* modal right — info */
.modal__body { overflow-y: auto; padding: 36px 38px 40px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.modal__tag { font-weight: 700; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.modal__title { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.03em; margin: 12px 0 6px; }
.modal__cs { font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); }
.modal__desc { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 22px 0 4px; text-wrap: pretty; }
.modal__desc strong { color: var(--ink); font-weight: 700; }

.block { margin-top: 28px; }
.block__h {
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.block__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* traits */
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; }
.trait { display: flex; align-items: center; gap: 12px; }
.trait .tn { flex: 1; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.trait .tm { display: flex; gap: 3px; flex: none; }
.trait .tm i { width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); }
.trait .tm i.on { background: var(--accent); box-shadow: 0 0 7px var(--glow); }
@media (max-width: 540px) { .traits { grid-template-columns: 1fr; } }

/* doer list */
.doer { list-style: none; display: grid; gap: 9px; }
.doer li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.doer li strong { color: var(--ink); font-weight: 700; }
.doer li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent-2); box-shadow: 0 0 7px var(--glow);
}

/* meters */
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.meter__l { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.meter__name { font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.meter__val { font-weight: 700; font-size: 12px; color: var(--ink); }
.bigseg { display: flex; gap: 5px; }
.bigseg i { height: 8px; flex: 1; border-radius: 3px; background: var(--bg-3); border: 1px solid var(--line); }
.bigseg i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--glow); }
.bigseg.ev i.on { background: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 540px) { .meters { grid-template-columns: 1fr; } }

/* reality pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill.ghost { background: rgba(200,215,235,0.08); border-color: rgba(200,215,235,0.3); color: var(--accent); }
.pill.warn { border-style: dashed; border-color: rgba(185,196,210,0.5); color: var(--warn); }
.pill.pink { background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.pill.line { color: var(--ink-3); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 46px 0 60px; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot__brand { font-weight: 700; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.foot__meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.foot__disc {
  margin-top: 26px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-1);
  font-size: 12px; line-height: 1.65; color: var(--muted);
  max-width: 90ch;
}
.foot__disc strong { color: var(--ink-3); font-weight: 700; }

/* =========================================================================
   MOTION — reveal on scroll (enhances an already-visible default)
   ========================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__visual .bottle { animation: none; }
  .btn, .pcard, .modal__panel, .modal__close, .bottle { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; gap: 10px; }
  .hero__visual { order: -1; min-height: 46vh; }
  .hero__visual .bottle { max-width: 320px; }
  .hero__stats { margin-top: 38px; gap: 26px; }
  .modal__panel { grid-template-columns: 1fr; max-height: 92svh; }
  .modal__stage { flex-direction: row; align-items: center; gap: 16px; padding: 20px; border-right: none; border-bottom: 1px solid var(--line); }
  .modal__stage .bottle { min-height: 130px; max-width: 130px; }
  .modal__stagehead { flex-direction: column; gap: 8px; align-items: flex-start; }
  .modal__nav { flex-direction: column; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 96px 18px 40px; }
  .hero__stats { gap: 20px; }
  .hero__stat .n { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .pcard { padding: 14px; border-radius: var(--r); }
  .pcard__name { font-size: 15px; }
  .modal__body { padding: 26px 22px 30px; }
  .modal__stage { flex-direction: column; }
  .modal__stage .bottle { max-width: 180px; }
}

/* =========================================================================
   ADD-ONS — uppercase page, research-only notices, 5-dot traits, solo meter
   ========================================================================= */
:root { --ribbon-h: 34px; }

/* molecular-network background canvas (original animation) */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; display: block;
}

/* CRITICAL: a closed modal must be fully removed, not just transparent.
   Without this, .modal { display:grid } overrides the [hidden] attribute, leaving an
   invisible pointer-capturing panel centered over the page that eats clicks on the cards. */
.modal[hidden] { display: none !important; }

/* CRITICAL: bound the panel so the info column scrolls internally instead of growing
   past the panel and pushing the prev/next buttons off-screen. */
.modal__panel { grid-template-rows: minmax(0, 1fr); }
.modal__stage { min-height: 0; }
.modal__body { min-height: 0; }
@media (max-width: 920px) {
  .modal__panel { grid-template-rows: auto; overflow-y: auto; }
  .modal__body { overflow: visible; }
}

/* uppercase across the whole page (form controls don't inherit it, so force) */
body { text-transform: uppercase; }
button, input, textarea, select, .pcard, .pcard * { text-transform: uppercase; }
/* small tracking so uppercased long-form text stays legible */
.hero__sub, .cat__sub, .modal__desc, .doer li, .note, .foot__disc { letter-spacing: 0.018em; }

/* fixed research-only ribbon at the very top */
.ribbon {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ribbon-h); z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: #0e0e12; color: var(--warn);
  border-bottom: 1px solid rgba(185, 196, 210, 0.28);
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; padding: 0 14px;
}
.ribbon__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); opacity: 0.7; flex: none; }
.nav { top: var(--ribbon-h); }

/* hero warning badge */
.hero__warn {
  display: inline-flex; align-items: center; margin: 0 0 28px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(185, 196, 210, 0.4); border-radius: 999px;
  padding: 9px 16px; background: rgba(185, 196, 210, 0.06);
}

/* footer warning banner */
.foot__warn {
  margin-top: 30px; padding: 16px 20px; text-align: center;
  font-weight: 700; font-size: clamp(12px, 1.8vw, 15px); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(185, 196, 210, 0.35); border-radius: var(--r);
  background: rgba(185, 196, 210, 0.06);
}

/* modal warning line */
.modal__warn {
  display: inline-block; margin-top: 14px;
  font-weight: 700; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(185, 196, 210, 0.4); border-radius: 999px;
  padding: 7px 12px; background: rgba(185, 196, 210, 0.06);
}

/* single (potency-only) meter now that Human evidence is removed */
.meters--solo { grid-template-columns: 1fr; max-width: 380px; }

/* keep hero clear of the taller fixed header (ribbon + nav) */
@media (max-width: 920px) { .hero { padding-top: 124px; } }
@media (max-width: 560px) { .hero { padding-top: 112px; } }

/* Phone view: first screen ends right after the headline — warn badge and below
   start under the fold (Leo 2026-07-21). Desktop/tablet unchanged. */
@media (max-width: 560px) {
  .hero { min-height: 100svh; }
  .hero__visual { height: calc(100svh - 310px); min-height: 46vh; }
  .hero__warn { margin-top: 20px; }
}
