/* ============================================================
   Cellvéra — provider-supervised peptide protocols (v5)
   Deep warm dark · bone typography (no white anywhere) ·
   photography as plates. No grain. No haze. No radius. No bold.
   No gradients on large surfaces (they band).
   ============================================================ */

:root {
  /* warm daylight world — flat colors everywhere; photography carries the black */
  --ground: #0c0b09;
  --surface: #16130f;
  --border: rgba(217, 210, 197, 0.12);
  --border-hover: rgba(217, 210, 197, 0.34);
  --txt-display: #d9d2c5;
  --txt-body: rgba(217, 210, 197, 0.75);
  --txt-secondary: rgba(217, 210, 197, 0.58);
  --txt-tertiary: rgba(217, 210, 197, 0.5);
  --chrome-flat: #a89f8d;

  /* deeper warm band for the library & provenance interludes */
  --porcelain: #15120e;
  --ink: #d9d2c5;
  --ink-muted: rgba(217, 210, 197, 0.55);
  --rule-light: rgba(217, 210, 197, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  --pad: clamp(24px, 6vw, 96px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ground);
  color: var(--txt-body);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
button { font-family: inherit; }

::selection { background: rgba(217, 210, 197, 0.22); color: var(--txt-display); }

/* ---------- voices ---------- */

.mono-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

[data-theme="light"] .mono-eyebrow { color: var(--ink-muted); }

.nowrap { white-space: nowrap; }

/* pharma designators are codes: lining figures in serif headings with digits */
.card__name, .topic__q, .drawer__name, .drawer__pair-name,
.intention__label, .evidence__numeral, .checkout__row dd {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.hero__peplink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid var(--border-hover);
  transition: color 0.25s, border-color 0.25s;
}

.hero__peplink:hover { color: var(--txt-display); border-color: var(--chrome-flat); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 1px solid var(--chrome-flat);
  outline-offset: 4px;
}

.chrome-text {
  background: linear-gradient(180deg, #d6cec0 0%, #a89f8d 55%, #6b6455 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- buttons ---------- */

.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-body);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 34px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
  background: transparent;
}

.btn-ghost:hover { border-color: var(--border-hover); color: var(--txt-display); }

.btn-solid {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14120f;
  background: #cfc7b8;
  border: 1px solid #cfc7b8;
  border-radius: 0;
  padding: 16px 34px;
  transition: background 0.25s var(--ease);
  cursor: pointer;
}

.btn-solid:hover { background: #ded6c6; }

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0b09;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: transform 0.7s var(--ease), visibility 0.7s;
}

.preloader__mark {
  width: 64px;
  opacity: 0;
  animation: mark-in 0.9s var(--ease) 0.1s forwards;
}

@keyframes mark-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 0.92; transform: translateY(0); }
}

.preloader__line {
  width: 120px;
  height: 1px;
  background: rgba(217, 210, 197, 0.16);
  overflow: hidden;
}

.preloader__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--chrome-flat);
  transform: translateX(-100%);
  animation: fill-in 1.2s var(--ease) 0.2s forwards;
}

@keyframes fill-in { to { transform: translateX(0); } }

.preloader.is-done {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
}

/* once scrolled, the nav becomes an opaque flat bar — same color as the ground,
   so it never tints or boxes the content passing beneath it */
.nav {
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: #0c0b09;
  border-bottom-color: var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__word { height: 14px; width: auto; }

.nav__links {
  display: flex;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(217, 210, 197, 0.66);
  transition: color 0.25s;
  padding: 6px 0;
}

.nav__links a:hover { color: var(--txt-display); }

.nav__cta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(217, 210, 197, 0.82);
  border: 1px solid rgba(217, 210, 197, 0.28);
  padding: 11px 22px;
  transition: border-color 0.25s, color 0.25s;
}

.nav__cta:hover { border-color: rgba(217, 210, 197, 0.6); color: var(--txt-display); }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--txt-display);
  margin: 4px auto;
  transition: transform 0.4s var(--ease);
}

.nav__burger.is-open span:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0c0b09;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mmenu.is-open { opacity: 1; visibility: visible; }

.mmenu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mmenu__links a {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--txt-display);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__links a:nth-child(1) { transition-delay: 0.07s; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: 0.14s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: 0.21s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: 0.28s; }

.mmenu__cta { font-style: italic; color: var(--chrome-flat); }

.mmenu__mark { width: 40px; opacity: 0.6; }

/* ---------- hero — peptides first, pen alongside ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(24px + 68px) var(--pad) 0;
  position: relative;
  overflow: hidden;
}

.hero__copy { max-width: 640px; }

.hero__eyebrow {
  opacity: 0;
  animation: rise 0.9s var(--ease) 1.05s forwards;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 6.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--txt-display);
  margin-top: 26px;
  opacity: 0;
  animation: rise 1s var(--ease) 1.15s forwards;
}

.hero__sub {
  margin-top: 28px;
  max-width: 480px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--txt-body);
  opacity: 0;
  animation: rise 1s var(--ease) 1.3s forwards;
}

.hero__ctas {
  margin-top: clamp(32px, 5vh, 48px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) 1.45s forwards;
}

.hero__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-bottom: 3vh;
}

.hero__pen {
  max-height: min(64svh, 640px);
  width: auto;
  opacity: 0;
  animation: pen-in 1.4s var(--ease) 0.85s forwards;
}

.hero__pen-caption {
  opacity: 0;
  animation: rise 1s var(--ease) 1.6s forwards;
}

@keyframes pen-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  width: 1px;
  overflow: hidden;
}

.hero__scroll-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(217, 210, 197, 0.5));
  animation: scroll-drop 2.4s var(--ease) infinite;
}

@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- intentions ---------- */

.intentions { padding: clamp(100px, 15vh, 190px) var(--pad) 0; }

.intentions__head { max-width: 1280px; margin: 0 auto; }

.intentions__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--txt-display);
  margin-top: 24px;
}

.intentions__list {
  max-width: 1280px;
  margin: clamp(44px, 7vh, 72px) auto 0;
  border-top: 1px solid var(--border);
}

.intention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(20px, 2.6vh, 30px) 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  cursor: pointer;
  text-align: left;
  color: var(--txt-body);
  transition: color 0.25s, padding-left 0.25s var(--ease);
}

.intention:hover { color: var(--txt-display); padding-left: 10px; }

.intention__label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--txt-display);
  line-height: 1.15;
}

.intention__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.intention:hover .intention__meta { color: var(--txt-body); }

/* ---------- knowledge ---------- */

.knowledge { padding: clamp(110px, 16vh, 200px) var(--pad) 0; }

.knowledge__head { max-width: 1280px; margin: 0 auto; }

.knowledge__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--txt-display);
  margin-top: 24px;
}

.knowledge__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--txt-secondary);
}

.topics {
  max-width: 1280px;
  margin: clamp(44px, 7vh, 72px) auto 0;
  border-top: 1px solid var(--border);
}

.topic { border-bottom: 1px solid var(--border); }

.topic__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vh, 28px) 0;
  cursor: pointer;
  list-style: none;
}

.topic__summary::-webkit-details-marker { display: none; }

.topic__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--txt-display);
  line-height: 1.2;
}

.topic__toggle {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--txt-secondary);
  flex-shrink: 0;
  transition: color 0.25s;
}

.topic__summary:hover .topic__toggle { color: var(--txt-body); }

.topic[open] .topic__toggle::before { content: "−"; }

.topic:not([open]) .topic__toggle::before { content: "+"; }

.topic__body { padding: 0 0 clamp(28px, 3.6vh, 40px); }

.topic__body p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--txt-body);
  max-width: 60ch;
}

.topic__body p + p { margin-top: 14px; }

.topic__related {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.topic__related-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-tertiary);
  margin-right: 6px;
}

.chip {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--txt-body);
  border: 1px solid rgba(217, 210, 197, 0.30);
  background: none;
  border-radius: 0;
  padding: 13px 18px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.chip:hover { border-color: var(--border-hover); color: var(--txt-display); }

/* ---------- statement ---------- */

.statement {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 12vh, 160px) var(--pad);
  text-align: center;
}

.statement__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 92px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--txt-display);
}

.statement__l1, .statement__l2 { display: inline-block; }

/* ---------- instrument (pinned chapters) ---------- */

.instrument { position: relative; }

/* JS sets the tall height on desktop; fallback is natural flow */

.instrument__pin { position: relative; }

.instrument__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 0 var(--pad);
  min-height: 100vh;
  min-height: 100svh;
}

.instrument__copy { position: relative; }

.instrument__kicker { margin-bottom: clamp(24px, 4vh, 48px); }

.instrument__chapters { position: relative; min-height: 340px; }

.chapter { max-width: 420px; }

.chapter__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
}

.chapter__label { margin-top: 18px; }

.chapter__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.12;
  color: var(--txt-display);
  margin-top: 14px;
}

.chapter__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--txt-body);
  max-width: 380px;
}

.instrument__dots {
  display: flex;
  gap: 10px;
  margin-top: clamp(28px, 5vh, 56px);
}

.dot {
  width: 20px;
  height: 1px;
  background: var(--border);
  transition: background 0.25s var(--ease);
}

.dot.is-active { background: var(--chrome-flat); }

.instrument__stage {
  position: relative;
  height: min(76vh, 76svh);
  overflow: hidden;
}

.instrument__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.instrument__img.is-active { opacity: 1; }

/* desktop pinned mode (activated by JS adding .is-pinned) */
@media (min-width: 1024px) {
  .instrument.is-pinned { height: 400vh; }
  .instrument.is-pinned .instrument__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  /* stage bleeds the full viewport height so the photo never shows a crop line;
     the left edge fades into the page black so no vertical seam can appear */
  .instrument.is-pinned .instrument__stage { height: 100vh; }
  .instrument.is-pinned .instrument__img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%);
  }
  .instrument.is-pinned .chapter {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(calc(-50% + 18px));
    opacity: 0;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    pointer-events: none;
  }
  .instrument.is-pinned .chapter.is-active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
  }
  .instrument.is-pinned .instrument__chapters { min-height: 420px; }
}

/* stacked mode (mobile / tablet / reduced motion) */
@media (max-width: 1023px) {
  .instrument__inner {
    display: block;
    min-height: 0;
    padding-top: clamp(80px, 12vh, 140px);
  }
  .instrument__stage { display: none; }
  .chapter {
    max-width: none;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
  }
  .chapter:last-child { border-bottom: 0; }
  .chapter::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin-bottom: 28px;
    background-size: cover;
    background-position: center;
  }
  .chapter[data-ch="0"]::before { background-image: url(/img/pen-macro-taper.webp); }
  .chapter[data-ch="1"]::before { background-image: url(/img/pen-hero-diagonal.webp); }
  .chapter[data-ch="2"]::before { background-image: url(/img/pen-three-quarter.webp); background-position: center 30%; }
  .chapter[data-ch="3"]::before { background-image: url(/img/pen-macro-crown.webp); }
  .instrument__dots { display: none; }
}

/* ---------- provenance (porcelain) ---------- */

[data-theme="light"] {
  background: var(--porcelain);
  color: var(--ink);
}

.provenance {
  margin-top: clamp(56px, 8vh, 110px);
  padding: clamp(100px, 15vh, 180px) var(--pad);
}

.provenance__inner { max-width: 820px; margin: 0 auto; text-align: center; }

.provenance__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 24px;
}

.provenance__body {
  margin: 32px auto 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.82;
}

.provenance__row {
  margin-top: clamp(44px, 7vh, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 0;
}

.provenance__item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 0 24px;
  position: relative;
}

/* dividers drawn between items only — a wrapped line never strands a pipe */
.provenance__item + .provenance__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--rule-light);
}

.provenance__flag {
  display: inline-flex;
  opacity: 0.65;
  box-shadow: 0 0 0 1px rgba(217, 210, 197, 0.16);
}

/* ---------- science ---------- */

.science { padding: clamp(110px, 16vh, 200px) var(--pad) 0; }

.science__qa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.qa__answer {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--txt-display);
  margin-top: 16px;
}

.science__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  max-width: 1280px;
  margin: clamp(64px, 9vh, 100px) auto 0;
}

.evidence__numeral {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 8vw, 110px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--txt-display);
}

.evidence__numeral small {
  font-size: 0.45em;
  color: var(--txt-secondary);
  margin-left: 2px;
}

.evidence__caption {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--txt-secondary);
  max-width: 300px;
}

.evidence__caption sup { color: var(--txt-tertiary); }

.science__foot {
  max-width: 1280px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--txt-secondary);
}

/* ---------- library (porcelain) ---------- */

.library {
  scroll-margin-top: 90px;
  margin-top: clamp(110px, 16vh, 200px);
  padding: clamp(100px, 15vh, 180px) var(--pad);
}

.library__head { max-width: 1280px; margin: 0 auto; }

.library__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 24px;
}

.library__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.filters {
  scroll-margin-top: 96px;
  max-width: 1280px;
  margin: clamp(44px, 7vh, 72px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0;
}

.filter-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 14px 0 16px;
  position: relative;
  transition: color 0.25s;
  flex-shrink: 0;
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #a89f8d, #d6cec0);
  transition: transform 0.5s var(--ease);
}

.filter-btn:hover { color: var(--ink); }

.filter-btn.is-active { color: #d9d2c5; }

.filter-btn.is-active::after { transform: scaleX(1); height: 2px; }

.filters__count {
  max-width: 1280px;
  margin: 18px auto 0;
  font-size: 10px;
  color: var(--ink-muted);
}

.cards {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--rule-light);
}

.card {
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  padding: clamp(24px, 2.4vw, 36px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border-top: 0;
  border-radius: 0;
  color: var(--ink);
  transition: background 0.25s var(--ease);
  position: relative;
}

.card:hover { background: #191612; }

.card--img:hover { background: transparent; }

.card__class {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-height: 34px; /* two mono lines — keeps serif names on one baseline across the row */
  text-wrap: balance;
}

.card__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 14px;
}

.card__triad {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-height: 2.6em;
  text-wrap: balance;
}

.card__short {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.75;
  flex: 1;
}

.card__price {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
}

.card__link {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.card__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #a89f8d, #d6cec0);
  transition: transform 0.5s var(--ease);
}

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

.card__link::after { content: " →"; }

.card.is-hidden { display: none; }

/* a card spanning the full row keeps a column-like text measure */
.card--span .card__short { max-width: 52ch; }
.card--span .card__triad, .card--span .card__class { max-width: 52ch; }

/* ---------- protocol ---------- */

.protocol { padding: clamp(110px, 16vh, 200px) var(--pad) 0; }

.protocol__head { max-width: 1280px; margin: 0 auto; }

.protocol__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--txt-display);
  margin-top: 24px;
}

.steps {
  max-width: 1280px;
  margin: clamp(48px, 8vh, 90px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.step {
  border-left: 1px solid var(--border);
  padding: clamp(32px, 3.4vw, 52px) clamp(20px, 2.4vw, 40px) 8px;
}

.step:first-child { border-left: 0; padding-left: 0; }

.step__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
}

.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--txt-display);
  margin-top: 20px;
  line-height: 1.2;
}

.step__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--txt-body);
  max-width: 320px;
}

/* ---------- consultation ---------- */

.consult {
  padding: clamp(130px, 20vh, 260px) var(--pad) clamp(110px, 16vh, 200px);
  text-align: center;
}

.consult__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.consult__band {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(240px, 46vh, 520px);
  overflow: hidden;
  background: #000;
  margin-bottom: clamp(64px, 11vh, 130px);
}

.consult__band img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 52%;
}

/* narrow screens get the portrait render, whole pen visible */
@media (max-width: 640px) {
  .consult__band {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 72vh;
  }
  .consult__band img {
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

.consult__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 84px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--txt-display);
}

.consult__text {
  margin-top: 26px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--txt-body);
}

.consult__cta { margin-top: 44px; }

.consult__fine {
  margin-top: clamp(48px, 8vh, 72px);
  max-width: 560px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-secondary);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: clamp(56px, 8vh, 90px) var(--pad) 44px;
}

.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.footer__mark { width: 44px; opacity: 0.85; }

.footer__label { margin-bottom: 8px; }

.footer__col a {
  font-size: 13px;
  font-weight: 300;
  color: var(--txt-body);
  transition: color 0.25s;
}

.footer__col a:hover { color: var(--txt-display); }

.footer__still {
  font-size: 13px;
  font-weight: 300;
  color: var(--txt-secondary);
}

.footer__legal {
  margin: clamp(48px, 7vh, 72px) auto 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--txt-secondary);
  max-width: 620px;
  text-align: center;
}

.footer__meta {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

/* ---------- drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 5, 7, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 71;
  width: min(640px, 100vw);
  background: var(--surface);
  color: var(--txt-body);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer.is-open { transform: translateX(0); }

.drawer:focus { outline: none; }

.drawer__close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 60px;
  padding-right: 24px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--txt-secondary);
  cursor: pointer;
  transition: color 0.25s;
  z-index: 2;
}

.drawer__close:hover { color: var(--txt-display); }

.drawer__close:focus { outline: none; }

.drawer__close:focus-visible { outline: 1px solid var(--border-hover); outline-offset: -8px; }

.drawer__body { padding: 28px clamp(28px, 5vw, 60px) 72px; }

.drawer__class {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.drawer__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--txt-display);
  margin-top: 14px;
}

.drawer__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--txt-tertiary);
  margin-top: 10px;
}

.drawer__poetic {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--txt-body);
  margin-top: 28px;
}

.drawer__specs { margin-top: 36px; border-top: 1px solid var(--border); }

.drawer__spec {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.drawer__spec dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding-top: 2px;
}

.drawer__spec dd {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--txt-body);
}

.drawer__mech { margin-top: 44px; }

.drawer__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.drawer__mech-body {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--txt-body);
}

.drawer__suit { margin-top: 40px; }

.drawer__suit-block { margin-top: 18px; }

.drawer__suit-block p {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-body);
}

.drawer__footnote {
  margin-top: 20px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
  color: var(--txt-secondary);
}

.drawer__pairs { margin-top: 40px; }

.drawer__pairs-note {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--txt-secondary);
}

.drawer__pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  color: var(--txt-body);
  transition: color 0.25s;
}

.drawer__pair:hover { color: var(--txt-display); }

.drawer__pair:last-child { border-bottom: 0; }

.drawer__pair-name { font-family: var(--serif); font-size: 18px; }

.drawer__pair-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.drawer__foot {
  margin-top: 48px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.drawer__price {
  font-size: 16px;
  font-weight: 300;
  color: var(--txt-body);
}

.drawer__price small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  margin-top: 8px;
}

.drawer__cta {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-display);
  border: 1px solid var(--border);
  padding: 15px 28px;
  transition: border-color 0.25s;
}

.drawer__cta:hover { border-color: var(--border-hover); }

.drawer__safety { margin-top: 40px; border-top: 1px solid var(--border); }

.drawer__safety summary {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__safety summary::-webkit-details-marker { display: none; }

.drawer__safety summary::after { content: "+"; font-size: 14px; color: var(--txt-tertiary); }

.drawer__safety[open] summary::after { content: "−"; }

.drawer__safety-body {
  padding-bottom: 20px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-secondary);
}

/* ---------- checkout view ---------- */

.checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding: 4px 0;
  transition: color 0.25s;
}

.checkout__back:hover { color: var(--txt-display); }

.checkout__image {
  margin-top: 22px;
  background: #000;
}

.checkout__image img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  display: block;
}

.checkout__rows { margin-top: 30px; border-top: 1px solid var(--border); }

.checkout__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.checkout__row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.checkout__row dd {
  font-size: 14px;
  font-weight: 300;
  color: var(--txt-body);
  text-align: right;
}

.checkout__row dd.checkout__price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--txt-display);
}

.checkout__fine {
  margin-top: 24px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-secondary);
}

.checkout__sticky {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 16px 0 20px;
  margin-top: 28px;
}

.checkout__cta {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14120f;
  background: #cfc7b8;
  padding: 18px 34px;
  transition: background 0.25s;
}

.checkout__cta:hover { background: #ded6c6; }

.checkout__hint {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

@media (max-height: 1000px) {
  .checkout__image img { max-height: 44vh; }
}

body.is-locked { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .provenance { margin-top: 28px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }

  /* single-line horizontal filter scroll with a right-edge fade — never a wrapped tag cloud */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 32px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 150px), transparent calc(100% - 4px));
    mask-image: linear-gradient(to right, #000 calc(100% - 150px), transparent calc(100% - 4px));
    padding-right: 28px;
    scroll-padding-inline: 24px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters::after { content: ""; flex: 0 0 24px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
    padding-bottom: 40px;
  }
  .hero__copy { max-width: 560px; margin: 0 auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__pen { max-height: 40svh; }
  .hero__stage { padding-bottom: 0; padding-top: 12px; }

  .science__band { grid-template-columns: 1fr; gap: 48px; }
  .evidence__caption { max-width: 420px; }
  .provenance__row { flex-direction: column; gap: 14px; }
  .provenance__item { padding: 0; }
  .provenance__item + .provenance__item::before { display: none; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav { padding: 18px 24px; }
  .nav.is-scrolled { background: #0c0b09; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero { padding-top: calc(18px + 58px); }
  .hero__pen { max-height: 36svh; }
  .hero__title { font-size: clamp(44px, 12vw, 64px); }

  .statement { padding: clamp(100px, 14vh, 150px) var(--pad); }

  .intention { flex-direction: column; align-items: flex-start; gap: 8px; }
  .intention:hover { padding-left: 0; }

  .topic__summary { gap: 16px; }

  .cards { grid-template-columns: 1fr !important; border-left: 0; }
  .card { border-right: 0; min-height: 0; padding: 28px 0; border-left: 0; }
  .card:hover { background: transparent; }
  .card__class { min-height: 0; }
  .card__triad { min-height: 0; }

  .provenance__item { padding: 0; }
  .provenance__item + .provenance__item::before { display: none; }
  .provenance__row { flex-direction: column; gap: 14px; }

  .drawer { width: 100vw; border-left: 0; }

  /* stack spec rows on narrow panels so values keep a readable measure */
  .drawer__spec { grid-template-columns: 1fr; gap: 6px; }
  .drawer__spec dt { padding-top: 0; }

  /* related-protocol chips: label above, chips in their own clean wrap row */
  .topic__related-label { flex-basis: 100%; margin-bottom: 4px; }

  .footer { padding-top: 120px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   Product pages (/protocols/*)
   ============================================================ */

.pdp { padding-top: calc(24px + 68px); }

.pdp__crumb {
  display: inline-block;
  margin: clamp(20px, 3vh, 36px) 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  transition: color 0.25s;
}

.pdp__crumb:hover { color: var(--txt-display); }

.pdp__wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.pdp__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(28px, 4vh, 48px);
}

.pdp__media {
  position: sticky;
  top: 92px;
}

.pdp__media img { width: 100%; display: block; }

.pdp__class {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.pdp__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--txt-display);
  margin-top: 16px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.pdp__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--txt-secondary);
  margin-top: 12px;
}

.pdp__poetic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--txt-body);
  margin-top: 26px;
  max-width: 44ch;
}

.pdp__rows { margin-top: 32px; border-top: 1px solid var(--border); }

.pdp__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.pdp__row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  flex-shrink: 0;
}

.pdp__row dd {
  font-size: 14px;
  font-weight: 300;
  color: var(--txt-body);
  text-align: right;
}

.pdp__row dd.pdp__price {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--txt-display);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.pdp__cta {
  display: block;
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14120f;
  background: #cfc7b8;
  padding: 18px 34px;
  transition: background 0.25s;
}

.pdp__cta:hover { background: #ded6c6; }

.pdp__hint {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.pdp__fine {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-secondary);
}

.pdp__body {
  margin: clamp(48px, 7vh, 80px) 0 0;
  padding-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--border);
}

.pdp__section { margin-top: 44px; }

.pdp__section:first-child { margin-top: 0; }

.pdp__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.pdp__section p {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--txt-body);
  max-width: 60ch;
}

/* the label carries the section rule — it must span the column, not the 60ch measure */
.pdp__section .pdp__label { max-width: none; }

.pdp__footnote {
  font-style: italic;
  font-size: 12.5px !important;
  color: var(--txt-secondary) !important;
}

.pdp__safety { margin-top: 44px; border-top: 1px solid var(--border); }

.pdp__safety summary {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdp__safety summary::-webkit-details-marker { display: none; }

.pdp__safety summary::after { content: "−"; font-size: 16px; color: var(--txt-secondary); }

.pdp__safety:not([open]) summary::after { content: "+"; }

.pdp__safety-body {
  padding-bottom: 20px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--txt-secondary);
  max-width: 60ch;
}

.pdp__related {
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--border);
  padding-top: clamp(40px, 6vh, 64px);
}

.pdp__related-note {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--txt-secondary);
}

.pdp__rel-row { margin-top: 28px; border-top: 1px solid var(--border); }

.pdp__rel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--txt-body);
  transition: color 0.25s;
}

.pdp__rel:hover { color: var(--txt-display); }

.pdp__rel-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--txt-display);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.pdp__rel-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  white-space: nowrap;
}

.pdp__foot-space { height: clamp(90px, 14vh, 170px); }

@media (max-width: 860px) {
  .pdp__top { grid-template-columns: 1fr; gap: 36px; }
  .pdp__media { position: static; max-width: 480px; margin: 0 auto; width: 100%; }
  .pdp__row dd { text-align: right; }
}

/* ---------- site-2 cards with product imagery ---------- */

.card--img { padding-top: 0; }

.card--img .card__media {
  display: block;
  margin: 0 calc(-1 * clamp(24px, 2.4vw, 36px)) 20px;
}

.card--img .card__media img { width: 100%; display: block; }

@media (max-width: 767px) {
  .card--img { padding-top: 0; }
  .card--img .card__media { margin: 0 0 16px; }
}

/* ---------- finder — what's the perfect peptide for you ---------- */

.finder { padding: clamp(110px, 16vh, 200px) var(--pad) 0; }

.finder__head { max-width: 1280px; margin: 0 auto; }

.finder__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--txt-display);
  margin-top: 24px;
}

.finder__sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--txt-body);
}

.finder__quiz {
  max-width: 1280px;
  margin: clamp(36px, 6vh, 64px) auto 0;
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 56px);
}

.finder__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
}

.finder__back {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  cursor: pointer;
}
.finder__back:hover { color: var(--txt-display); }

.finder__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--txt-display);
  margin-top: 22px;
}

.finder__opts {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.finder-opt {
  text-align: left;
  background: none;
  border: 1px solid var(--border);
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.finder-opt:hover { border-color: var(--border-hover); background: #15120e; }

.finder-opt__label {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--txt-display);
  line-height: 1.25;
}

.finder-opt__sub {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--txt-secondary);
}

.finder__note {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.75;
  color: var(--txt-body);
  border-left: 1px solid var(--chrome-flat);
  padding-left: 16px;
}

.finder__results {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.finder-rec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 24px 22px 20px;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.finder-rec:hover { border-color: var(--border-hover); background: #15120e; }

.finder-rec__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--txt-tertiary);
}

.finder-rec__name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--txt-display);
  line-height: 1.15;
}

.finder-rec__short {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--txt-body);
  flex: 1;
}

.finder-rec__price {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}
.finder-rec:hover .finder-rec__price { color: var(--txt-display); }

.finder__actions {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.finder__disclaimer {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--txt-secondary);
  max-width: 60ch;
}

/* ---------- pdp studied-for list ---------- */

.pdp__list {
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.pdp__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--txt-body);
  max-width: 60ch;
}

.pdp__list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--chrome-flat);
}
