/* The Study — Site Styles
 *
 * Lab-notebook visual language. Cream paper everywhere, near-black ink,
 * monospace for the ingredient-name typography signature. No drop
 * shadows, no glossy surfaces, no gradients — flat ink-on-paper.
 */

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

html, body {
  background: var(--paper);
  color: var(--ink);
}
body {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Typography ─────────────────────────────────────────── */
/* Headlines — Akshar Medium per Brand Guide §4.1 + §4.4 */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--ink);
}
/* Subheadings — Geist Medium per Brand Guide §4.4 */
h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ink);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
}
.mono {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tag {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
}
.tag.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

p { color: var(--ink-soft); max-width: var(--max-w-prose); }
.prose p { margin-bottom: 14px; }
.lede {
  font-size: clamp(21px, 1.8vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Containers ────────────────────────────────────────── */
.wrap        { max-width: var(--max-w);       margin: 0 auto; padding: 0 var(--gutter); }
.wrap-prose  { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide   { max-width: var(--max-w-wide);  margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark p { color: var(--ink-faint); }
.section-dark .eyebrow { color: var(--paper-stone); }

/* ── Reveal ───────────────────────────────────────────────
 * On-scroll fade-up with optional stagger via --reveal-delay.
 * IntersectionObserver in js/app.js adds .in when in view.
 * Children of a .reveal-stagger parent get cascading delays
 * computed at observe time.
 */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-house),
              transform 600ms var(--ease-house);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Page entrance cascade ──────────────────────────────
 * Two modes:
 *
 *   1. Splash plays first → page underneath is hidden (via the
 *      .splash-pending class on <html>). When splash dismisses, the
 *      class is removed and the .page-entrance class is added to body
 *      by app.js, which triggers the cascade below.
 *
 *   2. No splash this session → app.js adds .page-entrance immediately
 *      on DOMContentLoaded.
 *
 * Either way, every direct child of <main> fades up in sequence.
 */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Hide content while splash is up. Body itself stays visible
 * (so the cream background renders behind the splash), but
 * <main> is suppressed until splash dismisses. */
html.splash-pending main { opacity: 0; }

/* Each direct child of <main> animates in sequence once the
 * .page-entrance class is added to body. */
body.page-entrance main > * {
  animation: pageEnter 700ms var(--ease-house) both;
  opacity: 0;
}
body.page-entrance main > *:nth-child(1) { animation-delay:   0ms; }
body.page-entrance main > *:nth-child(2) { animation-delay: 120ms; }
body.page-entrance main > *:nth-child(3) { animation-delay: 220ms; }
body.page-entrance main > *:nth-child(4) { animation-delay: 320ms; }
body.page-entrance main > *:nth-child(5) { animation-delay: 420ms; }
body.page-entrance main > *:nth-child(6) { animation-delay: 520ms; }
body.page-entrance main > *:nth-child(7) { animation-delay: 600ms; }
body.page-entrance main > *:nth-child(8) { animation-delay: 680ms; }

/* Within the first section, also stagger the inner children so the
 * hero doesn't feel like one flat block sliding up. */
body.page-entrance main > section:first-child .cat-hero-inner > *,
body.page-entrance main > section:first-child .lib-hero-inner > *,
body.page-entrance main > section:first-child > .home-hero-grid > * {
  animation: pageEnter 600ms var(--ease-house) both;
  opacity: 0;
}
body.page-entrance main > section:first-child .cat-hero-inner > *:nth-child(1),
body.page-entrance main > section:first-child > .home-hero-grid > *:nth-child(1) { animation-delay:  50ms; }
body.page-entrance main > section:first-child .cat-hero-inner > *:nth-child(2),
body.page-entrance main > section:first-child > .home-hero-grid > *:nth-child(2) { animation-delay: 180ms; }
body.page-entrance main > section:first-child .cat-hero-inner > *:nth-child(3),
body.page-entrance main > section:first-child > .home-hero-grid > *:nth-child(3) { animation-delay: 310ms; }
body.page-entrance main > section:first-child .cat-hero-inner > *:nth-child(4) { animation-delay: 420ms; }
body.page-entrance main > section:first-child .cat-hero-inner > *:nth-child(5) { animation-delay: 510ms; }

/* Nav slides down on first paint. */
@keyframes navEnter {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}
#study-announce,
#study-nav,
#study-subnav {
  animation: navEnter 420ms var(--ease-house) both;
}
#study-nav     { animation-delay:  60ms; }
#study-subnav  { animation-delay: 120ms; }

/* ── Image fade-in ──────────────────────────────────────
 * Product images and hero photos fade in as they decode,
 * preventing the flash-of-untiled-image look.
 */
.product-image,
.hero-photo {
  animation: imgFade 360ms var(--ease-house) both;
}
@keyframes imgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Cart drawer items ─────────────────────────────────── */
.cart-item {
  animation: cartItemIn 280ms var(--ease-house) both;
}
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Subnav underline slide ─────────────────────────────── */
.subnav-inner a {
  position: relative;
}
.subnav-inner a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease-house);
}
.subnav-inner a:hover::after,
.subnav-inner a[data-active='true']::after {
  transform: scaleX(1);
}

/* Reduce motion when the user asks for it.
 * Critical for accessibility — vestibular sensitivity, focus
 * disorders, certain cognitive conditions. Content still
 * appears; just instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ────────────────────────────────────────────────────────── */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--gutter);
}
.announce .rotator {
  display: inline-block;
  animation: announce-fade 12s infinite;
}
@keyframes announce-fade {
  0%, 30% { opacity: 1; }
  33%, 63% { opacity: 0; }
  66%, 100% { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   NAV
   ────────────────────────────────────────────────────────── */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: var(--space-4) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  gap: var(--space-5);
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-right { justify-content: flex-end; }
.nav-brand {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: normal;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}
.nav-brand .small {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 0;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link[data-active='true']::after {
  content: '';
  position: absolute;
  inset: auto 0 -8px 0;
  height: 1px;
  background: var(--ink);
}
.nav-icon-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: normal;
  text-transform: uppercase;
}
.nav-icon-btn:hover { color: var(--accent-warm); }
.cart-count {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
}

/* Sub-nav row (secondary tier of links) */
.subnav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.subnav-inner {
  display: flex;
  gap: var(--space-7);
  justify-content: center;
  padding: var(--space-3) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
}
.subnav-inner a {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a[data-active='true'] { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 180ms var(--ease-house), color 180ms var(--ease-house);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.section-dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section-dark .btn:hover { background: transparent; color: var(--paper); }
.section-dark .btn-link { color: var(--paper); border-color: var(--paper); }

/* ══════════════════════════════════════════════════════════
   BOTTLE / SVG
   ────────────────────────────────────────────────────────── */
.bottle-svg {
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: 0 auto;
  display: block;
}
.bottle-stage {
  background: var(--paper-warm);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARD
   ────────────────────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  cursor: pointer;
  transition: transform 240ms var(--ease-house);
  position: relative;
}
.product-card:hover { transform: translateY(-2px); }
.product-card .bottle-stage { margin-bottom: var(--space-4); }
.product-card .pc-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: calc(var(--space-4) * -1);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: uppercase;
  background: var(--gold-deep);
  color: var(--paper);
  padding: 4px 10px;
}
.product-card h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.product-card .sub {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.product-card .size-options {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3);
}
.product-card .size-pill {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
}
.product-card .size-pill.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.product-card .pc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}
.product-card .price {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
}
.product-card .add-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}
.product-card .add-btn:hover { background: var(--ink); color: var(--paper); }

/* ══════════════════════════════════════════════════════════
   HOME — HERO
   ────────────────────────────────────────────────────────── */
.home-hero {
  background: var(--paper);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
}
.home-hero-cell {
  padding: var(--space-9) var(--space-7);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.home-hero-cell.warm  { background: var(--paper-warm); }
.home-hero-cell.cool  { background: var(--rose-blush-soft); }
.home-hero-cell.stone { background: var(--gold-deep); }
.home-hero-cell.stone .eyebrow,
.home-hero-cell.stone h2,
.home-hero-cell.stone p { color: var(--paper); }
.home-hero-cell.stone .eyebrow { color: var(--paper); opacity: 0.85; }
.home-hero-cell.stone .hero-cta {
  border-color: var(--paper);
  color: var(--paper);
}
.home-hero-cell.stone .hero-cta:hover {
  background: var(--paper);
  color: var(--gold-deep);
}
.home-hero-cell .eyebrow { margin-bottom: var(--space-4); }
.home-hero-cell h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: var(--weight-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  max-width: 18ch;
}
.home-hero-cell p {
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
  font-size: 19px;
  max-width: 28ch;
}
.home-hero-cell .hero-cta {
  align-self: flex-start;
}
.home-hero-cell .hero-decor {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   HOME — INGREDIENT WALL
   ────────────────────────────────────────────────────────── */
.ingredient-wall {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-10) 0;
}
.ingredient-wall .head {
  text-align: center;
  margin-bottom: var(--space-9);
}
.ingredient-wall .head h2 {
  color: var(--paper);
  font-family: var(--font-display); font-weight: var(--weight-display);
  max-width: 18ch;
  margin: 0 auto var(--space-4);
}
.ingredient-wall .head p {
  color: var(--ink-faint);
  margin: 0 auto;
}
.iw-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.iw-cell {
  background: transparent;
  border: 1px solid rgba(250, 246, 239, 0.18);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: background 200ms var(--ease-house);
  cursor: pointer;
  text-align: center;
}
.iw-cell:hover {
  background: rgba(250, 246, 239, 0.06);
}
.iw-cell .symbol {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: var(--space-2);
}
.iw-cell .name {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--paper-stone);
}

/* ══════════════════════════════════════════════════════════
   HOME — BESTSELLERS RAIL
   ────────────────────────────────────────────────────────── */
.rail {
  padding: var(--space-9) 0;
  background: var(--paper);
}
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--gutter);
  margin-bottom: var(--space-7);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.rail-head h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  font-family: var(--font-display); font-weight: var(--weight-display);
  letter-spacing: -0.015em;
}
.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rail-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rail-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ══════════════════════════════════════════════════════════
   HOME — CONCERN TILES
   ────────────────────────────────────────────────────────── */
.concerns {
  background: var(--paper-warm);
  padding: var(--space-9) 0;
}
.concerns h2 {
  text-align: center;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}
.concerns .sub {
  text-align: center;
  color: var(--ink-muted);
  margin: 0 auto var(--space-7);
  max-width: 50ch;
}
.concern-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.concern-tile {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: var(--space-7) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: background 200ms var(--ease-house), transform 200ms var(--ease-house);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}
.concern-tile:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.concern-tile .symbol-circle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--ink);
}
.concern-tile .name {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════
   HOME — REVIEW BLOCK
   ────────────────────────────────────────────────────────── */
.review-block {
  background: var(--rose-blush-soft);
  padding: var(--space-10) 0;
}
.review-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
}
.review-block h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: var(--weight-display);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}
.review-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.review-block .reviewer {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
}
.review-block .bottle-stage {
  background: var(--cream);
}

/* ══════════════════════════════════════════════════════════
   HOME — SCIENTISTS
   ────────────────────────────────────────────────────────── */
.scientists {
  background: var(--paper);
  padding: var(--space-10) 0;
}
.scientists .head {
  max-width: var(--max-w);
  margin: 0 auto var(--space-9);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: end;
}
.scientists h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-family: var(--font-display); font-weight: var(--weight-display);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.scientists .head p { color: var(--ink-soft); }
.sci-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sci-card {
  background: var(--paper-warm);
  aspect-ratio: 3 / 4;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.sci-card .badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.sci-card .silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  opacity: 0.18;
}
.sci-card h4 {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.sci-card .title {
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Credentials cards (replaces sci-grid). Cream stage, three-up. */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.credential-card {
  background: var(--paper-warm);
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}
.credential-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.credential-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 28px;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.credential-sub {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   HOME — MEMBER BENEFITS
   ────────────────────────────────────────────────────────── */
.members {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-10) 0;
}
.members .head {
  text-align: center;
  max-width: 50ch;
  margin: 0 auto var(--space-9);
  padding: 0 var(--gutter);
}
.members h2 {
  color: var(--paper);
  font-family: var(--font-display); font-weight: var(--weight-display);
  margin-bottom: var(--space-4);
}
.members .head p { color: var(--ink-faint); margin: 0 auto; }
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto var(--space-7);
  padding: 0 var(--gutter);
}
.member-card {
  text-align: center;
  padding: var(--space-5);
  border: 1px solid rgba(250, 246, 239, 0.16);
}
.member-card .num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  color: var(--paper-stone);
  margin-bottom: var(--space-3);
}
.member-card h4 {
  color: var(--paper);
  font-weight: 400;
  margin-bottom: var(--space-2);
  font-size: 21px;
}
.member-card p {
  color: var(--ink-faint);
  font-size: 18px;
  margin: 0 auto;
  max-width: 28ch;
}
.members .center { text-align: center; padding: 0 var(--gutter); }

/* Standards cards (replaces members-grid). Dark stage, three-up,
 * with hover affordances so each is clearly a link to a section. */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.standard-card {
  text-align: left;
  padding: var(--space-7) var(--space-6);
  border: 1px solid rgba(250, 246, 239, 0.18);
  background: transparent;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 240ms var(--ease-house), border-color 240ms var(--ease-house);
  min-height: 240px;
}
.standard-card:hover {
  background: rgba(250, 246, 239, 0.04);
  border-color: rgba(250, 246, 239, 0.36);
}
.standard-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: normal;
  color: var(--paper-stone);
  margin-bottom: var(--space-4);
}
.standard-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 28px;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
.standard-sub {
  font-size: 18px;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
.standard-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--paper-stone);
  align-self: flex-start;
  padding-bottom: 4px;
  transition: border-color 240ms var(--ease-house);
}
.standard-card:hover .standard-cta {
  border-bottom-color: var(--paper);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-9) 0 var(--space-5);
  border-top: 1px solid rgba(250, 246, 239, 0.1);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(250, 246, 239, 0.14);
}
.footer-brand {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: normal;
  color: var(--paper);
}
.footer-brand .small {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--paper-stone);
  margin-top: 2px;
}
.footer-brand p {
  color: var(--ink-faint);
  font-size: 16px;
  margin-top: var(--space-4);
  max-width: 26ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--paper-stone);
  margin-bottom: var(--space-5);
  font-weight: 400;
}
.footer-col a {
  display: block;
  color: var(--paper);
  opacity: 0.8;
  font-size: 16px;
  padding: 4px 0;
}
.footer-col a:hover { opacity: 1; }
.footer-credential {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  color: var(--paper-stone);
  padding: 4px 0;
}
.footer-bottom {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: normal;
  color: var(--ink-faint);
}
.footer-bottom > span:first-child {
  text-transform: uppercase;
}
.footer-bottom a { color: var(--ink-faint); padding: 0 8px; }
.footer-bottom a:hover { color: var(--paper); }
.footer-disclosure {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  opacity: 0.7;
  max-width: 60ch;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY / LISTING PAGES
   ────────────────────────────────────────────────────────── */
.cat-hero {
  background: var(--paper);
  padding: var(--space-9) 0 var(--space-7);
  border-bottom: 1px solid var(--hairline);
}
.cat-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cat-hero .crumb {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}
.cat-hero .crumb a { color: var(--ink-muted); }
.cat-hero .crumb .sep { padding: 0 6px; opacity: 0.5; }
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: var(--weight-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.cat-hero .lede { max-width: 56ch; }

.cat-filters {
  background: var(--paper);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--hairline);
}
.cat-filters-inner {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms var(--ease-house);
}
.filter-chip:hover { background: var(--cream); }
.filter-chip.active {
  background: var(--gold-deep);
  color: var(--paper);
  border-color: var(--gold-deep);
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: auto;
  align-self: center;
}

.cat-grid {
  background: var(--paper);
  padding: var(--space-9) 0;
}
.cat-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6) var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ══════════════════════════════════════════════════════════
   CATEGORY LANDING (skincare, body+hair)
   ────────────────────────────────────────────────────────── */
.shopby-section {
  background: var(--paper);
  padding: var(--space-9) 0;
  border-bottom: 1px solid var(--hairline);
}
.shopby-head {
  max-width: var(--max-w);
  margin: 0 auto var(--space-7);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.shopby-head h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-family: var(--font-display); font-weight: var(--weight-display);
  letter-spacing: -0.015em;
}
.shopby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shopby-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shopby-card {
  background: var(--paper-warm);
  padding: var(--space-6);
  cursor: pointer;
  transition: background 200ms var(--ease-house);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shopby-card:hover { background: var(--paper-stone); }
.shopby-card .num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.shopby-card h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.shopby-card p {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.shopby-card .arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   PDP (PRODUCT DETAIL)
   ────────────────────────────────────────────────────────── */
.pdp {
  background: var(--paper);
  padding: var(--space-7) 0 var(--space-9);
}
.pdp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: start;
}
.pdp-left { position: sticky; top: 80px; }
.pdp-image-stage {
  background: var(--paper-warm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.pdp-image-stage .bottle-svg {
  max-width: 320px;
}
.pdp-meta {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-4);
}
.pdp h1 {
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.pdp .sub {
  font-size: 21px;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}
.pdp .price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-5);
}
.pdp .price {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--ink);
}
.pdp .label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
  display: block;
}
.pdp .size-row {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.pdp .size-pill {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
}
.pdp .size-pill.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pdp .actives {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-5);
}
.pdp .active-pill {
  padding: 6px 12px;
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  color: var(--ink);
}
.pdp .cta-row { margin-bottom: var(--space-5); }
.pdp .cta-row .btn { width: 100%; justify-content: center; }
.pdp .pdp-description {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
}
.pdp .pdp-certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.accordion {
  margin-top: var(--space-5);
  border-top: 1px solid var(--hairline);
}
.accordion-item { border-bottom: 1px solid var(--hairline); }
.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.accordion-trigger::after { content: '+'; font-size: 22px; color: var(--ink-muted); }
.accordion-item.open .accordion-trigger::after { content: '−'; }
.accordion-body {
  display: none;
  padding: 0 0 var(--space-4);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.accordion-item.open .accordion-body { display: block; }

/* ══════════════════════════════════════════════════════════
   REGIMEN BUILDER
   ────────────────────────────────────────────────────────── */
.rb-hero {
  background: var(--paper);
  padding: var(--space-9) 0 var(--space-6);
  text-align: center;
}
.rb-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-family: var(--font-display); font-weight: var(--weight-display);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.rb-hero p { margin: 0 auto; max-width: 56ch; }
.rb-stepper {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.rb-step { color: var(--ink-faint); }
.rb-step.active { color: var(--accent-warm); }
.rb-step.done { color: var(--ink); }
.rb-stage {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-9) var(--gutter);
}
.rb-stage h2 {
  text-align: center;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-7);
}
.rb-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.rb-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rb-option {
  padding: var(--space-5);
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  transition: all 180ms var(--ease-house);
  text-align: left;
}
.rb-option:hover { background: var(--cream); }
.rb-option.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.rb-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}
.rb-result-list {
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.rb-result-list li {
  display: grid;
  grid-template-columns: 60px 100px 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.rb-result-list .num {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--accent-warm);
}
.rb-result-list .step-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rb-result-list .name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
}
.rb-result-list .price {
  font-family: var(--font-mono);
  font-size: 18px;
}
.rb-result-foot {
  margin-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
}
.rb-result-foot .total {
  font-family: var(--font-mono);
  font-size: 22px;
}

/* ══════════════════════════════════════════════════════════
   INGREDIENT GLOSSARY (periodic-table)
   ────────────────────────────────────────────────────────── */
.glossary-hero {
  background: var(--paper);
  padding: var(--space-9) 0;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.glossary-hero h1 {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.glossary-hero p { margin: 0 auto; max-width: 60ch; }
.periodic {
  background: var(--paper);
  padding: var(--space-9) 0;
}
.periodic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.periodic-cell {
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  padding: var(--space-5);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 200ms var(--ease-house);
  position: relative;
}
.periodic-cell:hover {
  background: var(--ink);
  color: var(--paper);
}
.periodic-cell:hover .pc-symbol,
.periodic-cell:hover .pc-name { color: var(--paper); }
.periodic-cell:hover .pc-summary { color: var(--ink-faint); }
.periodic-cell .pc-atomic {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  color: var(--ink-muted);
  margin-bottom: auto;
}
.periodic-cell .pc-symbol {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--ink);
  letter-spacing: 0;
}
.periodic-cell .pc-name {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.periodic-cell .pc-summary {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   LIBRARY (journal index)
   ────────────────────────────────────────────────────────── */
.lib-hero {
  background: var(--paper);
  padding: var(--space-9) 0;
  border-bottom: 1px solid var(--hairline);
}
.lib-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: end;
}
.lib-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.lib-grid {
  background: var(--paper);
  padding: var(--space-9) 0;
}
.lib-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-card {
  background: var(--paper-warm);
  padding: var(--space-6);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 200ms var(--ease-house);
}
.article-card:hover { background: var(--paper-stone); }
.article-card .meta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.article-card h3 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.article-card p {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: auto;
}
.article-card .read {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: var(--space-4);
}

/* ══════════════════════════════════════════════════════════
   CART DRAWER
   ────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-house);
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform 360ms var(--ease-spa);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  border-bottom: 1px solid var(--hairline);
}
.cart-head h3 {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: normal;
  text-transform: uppercase;
}
.cart-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--ink-muted);
}
.cart-shipping {
  padding: var(--space-3) var(--space-5);
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.cart-shipping.met { color: var(--accent-warm); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}
.cart-empty {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--space-9) 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.cart-item-img {
  width: 90px;
  aspect-ratio: 3 / 4;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}
.cart-item-img .bottle-svg { max-width: 60px; }
.cart-item h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  margin-bottom: 2px;
  line-height: 1.3;
}
.cart-item .size { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
}
.cart-qty button {
  background: transparent;
  border: 1px solid var(--hairline);
  width: 22px; height: 22px;
  color: var(--ink);
}
.cart-remove {
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 18px;
}
.cart-foot {
  border-top: 1px solid var(--hairline);
  padding: var(--space-5);
}
.cart-foot .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
}
.cart-foot .row.total .val { font-size: 21px; }
.cart-foot .btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   MOBILE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .iw-grid { grid-template-columns: repeat(4, 1fr); }
  .rail-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid-inner { grid-template-columns: repeat(3, 1fr); }
  .concern-grid { grid-template-columns: repeat(3, 1fr); }
  .sci-grid { grid-template-columns: repeat(3, 1fr); }
  .periodic-grid { grid-template-columns: repeat(3, 1fr); }
  .lib-grid-inner { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shopby-grid { grid-template-columns: repeat(2, 1fr); }
  .review-inner { grid-template-columns: 1fr; }
  .scientists .head { grid-template-columns: 1fr; }
  .pdp-inner { grid-template-columns: 1fr; }
  .pdp-left { position: static; }
  .lib-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-left, .nav-right { gap: var(--space-3); }
  .nav-link { display: none; }
  .nav-logo { height: 44px; }
  .nav-brand .small { display: none; }
  .iw-grid { grid-template-columns: repeat(3, 1fr); }
  .rail-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-inner { grid-template-columns: repeat(2, 1fr); }
  .concern-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sci-grid { grid-template-columns: repeat(2, 1fr); }
  .periodic-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-grid-inner { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .shopby-grid { grid-template-columns: 1fr; }
  .rb-options { grid-template-columns: 1fr; }
  .rb-options.cols-3 { grid-template-columns: 1fr; }
  .rb-result-list li { grid-template-columns: 40px 1fr; gap: var(--space-3); }
  .rb-result-list .step-label,
  .rb-result-list .price { grid-column: 2 / 3; }
}


/* ══════════════════════════════════════════════════════════
   RE-BRAND — Élan de Perle product photography
   ────────────────────────────────────────────────────────── */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.bottle-stage .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
}
.pdp-image-stage .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cart-item-img .product-image {
  max-width: 60px;
  max-height: 80px;
}
.rb-result-list .product-image {
  max-width: 60px;
  max-height: 70px;
}

/* Élan logo in nav and footer */
.nav-logo {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

/* Nav-brand wrapper needs a slightly different feel with an image */
/* Nav-brand layout consolidated into the primary .nav-brand block above. */

/* Review-block bottle stage — full-bleed photo. */
.review-block .bottle-stage {
  aspect-ratio: 4 / 5;
  padding: 0;
}

/* Home hero cells get a hero photo as ambient backdrop */
.home-hero-cell {
  overflow: hidden;
}
.home-hero-cell .hero-photo {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 280px;
  height: 280px;
  object-fit: cover;
  opacity: 0.65;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   LOGO ANIMATION — Splash, Hover, 404
   ────────────────────────────────────────────────────────── */

/* ── Splash overlay ─────────────────────────────────────────
 * Full-screen first-paint brand moment. Sits over everything
 * until the video ends (or user taps Skip).
 */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 500ms var(--ease-house);
}
.splash-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.splash-video {
  max-width: 60vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.splash-skip {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 240ms var(--ease-house), color 240ms var(--ease-house);
}
.splash-skip:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Header logo hover-replay (removed) ──────────────────
 * The header now uses only the static PNG. The first-visit splash
 * remains the brand moment; the 404 page also retains a logo loop.
 */

/* ── 404 page logo block ────────────────────────────────── */
.error-logo-video {
  display: block;
  max-width: 480px;
  width: 80%;
  height: auto;
  margin: 0 auto var(--space-7);
}

/* ── Page transition veil with logo ──────────────────────
 * Replaces the cream-veil + 3 pulsing dots in the preview SPA.
 * Plays the short logo-transition.mp4 (~700ms) so the transition
 * feels branded instead of generic.
 */
.spa-veil-logo {
  display: block;
  width: 200px;
  height: auto;
  pointer-events: none;
}

/* ── Reduced motion — skip videos, show stills ────────────── */
@media (prefers-reduced-motion: reduce) {
  .splash-overlay { display: none !important; }
  .error-logo-video { display: none !important; }
  .spa-veil-logo { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   BRAND TYPEFACE LOCKDOWN — last block in the file
   ────────────────────────────────────────────────────────── *
 * Belt-and-suspenders override: the brand guide has THREE typefaces
 * (Akshar, Geist, Cormorant Garamond/Butler) and nothing else. This
 * block hard-asserts those typefaces on every UI surface that should
 * not under any circumstance render in a system font or monospace.
 *
 * Specificity here is just `body` + the selector so cascade order
 * lets later overrides through (e.g. logo PNG); !important is reserved
 * for cases where another stylesheet might override (currently none).
 */

/* Body and root → Geist Light. */
body {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

/* Every headline → Akshar Medium. */
h1, h2, .display-1, .display-2, .display-3 {
  font-family: "Akshar", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subheads + body-level headings → Geist Medium. */
h3, h4, h5,
.product-card .pc-name,
.cart-item .name,
.standard-headline,
.credential-headline,
.review-block h2 {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Nav + every label tier → Geist (was previously monospace). */
.nav-brand,
.nav-brand .small,
.nav-link,
.nav-icon-btn,
.subnav-inner a,
.eyebrow,
.filter-chip,
.product-card .pc-tag,
.product-card .pc-step,
.product-card .pc-price,
.product-card .pc-size,
.cart-item .size,
.cart-item .price,
.cart-count,
.standard-num,
.credential-eyebrow,
.footer-col h5,
.footer-credential,
.btn,
.btn-link,
.btn-outline {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Editorial pull-quote → Cormorant Garamond (Butler substitute). */
.review-block blockquote {
  font-family: "Cormorant Garamond", "Butler", Georgia, serif;
}
