/* ============================================================
   ADVIGROW PEPTIDES — Design System v1.0
   Editorial laboratory · Ink + Stone + Gold accent
   Spec: DESIGN.md — every non-obvious choice carries its reason.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Tokens ----------
   Palette: 2 cores (ink, stone bg) + 1 accent (gold = "gold standard").
   Radii: exactly three — sharp UI, pill actions, soft media.
   Shadows: elevation is meaning; ground plane is the default.
   Motion: MOTION dial = 2 (purposeful transitions, no endless loops). */
:root {
  /* Color */
  --ink: #0C0A09;
  --primary: #1C1917;
  --secondary: #44403C;
  --muted: #57534E;
  --line: #E7E5E4;
  --bg: #FAFAF9;
  --bg-card: #FFFFFF;
  --gold: #CA8A04;
  --gold-bright: #EAB308;
  --success: #16A34A;
  --error: #DC2626;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --text-display: clamp(2.5rem, 8vw, 7rem);
  --text-h1: clamp(2.25rem, 5.5vw, 4.25rem);
  --text-h2: clamp(1.875rem, 4.25vw, 3.25rem);
  --text-h3: 1.375rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --text-micro: 0.6875rem;

  /* Spacing (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --section-pad-tight: clamp(3rem, 6vw, 4.5rem);
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1280px;
  --container-narrow: 880px;

  /* Radius — three values, deliberately (see DESIGN.md §6) */
  --radius-sharp: 2px;
  --radius-pill: 999px;
  --radius-media: 16px;

  /* Elevation — three levels only */
  --shadow-card: 0 1px 3px rgba(12, 10, 9, 0.04), 0 4px 12px rgba(12, 10, 9, 0.06);
  --shadow-elevated: 0 10px 40px rgba(12, 10, 9, 0.15), 0 2px 8px rgba(12, 10, 9, 0.1);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expressive: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-standard: 300ms;
  --dur-slow: 500ms;

  /* Layout */
  --nav-h: 72px;
  --z-nav: 50;
  --z-toast: 60;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, select { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; cursor: text; }
a { cursor: pointer; }

/* Focus: gold ring on every interactive element (DESIGN.md §12) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0;
}

.container {
  width: min(var(--container-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Kicker (section marker — structural, not decorative) ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

/* ---------- Floating nav (glass dose 1 of 2: primary wayfinding surface) ---------- */
.site-nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(202, 138, 4, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(202, 138, 4, 0.07),
    inset 0 1px 0 rgba(250, 250, 249, 0.06);
  transition: background var(--dur-standard) var(--ease-standard),
    box-shadow var(--dur-standard) var(--ease-standard),
    border-color var(--dur-standard) var(--ease-standard);
}
.site-nav.scrolled {
  background: rgba(10, 9, 8, 0.9);
  border-color: rgba(202, 138, 4, 0.34);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(202, 138, 4, 0.1),
    inset 0 1px 0 rgba(250, 250, 249, 0.06);
}
/* Scroll progress hairline — functional state, not decoration */
.site-nav::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright) var(--progress, 0%), transparent var(--progress, 0%));
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.55);
  opacity: 0;
  transition: opacity var(--dur-standard) var(--ease-standard);
  pointer-events: none;
}
.site-nav.scrolled::after { opacity: 0.9; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bg);
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(234, 179, 8, 0.28);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.66);
  transition: color var(--dur-fast) var(--ease-standard), text-shadow var(--dur-fast) var(--ease-standard);
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-standard) var(--ease-standard);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(234, 179, 8, 0.45);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(202, 138, 4, 0.35);
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.nav-cta:hover { background: var(--gold-bright); box-shadow: 0 0 24px rgba(234, 179, 8, 0.5); }

/* ---------- Burger ---------- */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--bg);
  transition: transform var(--dur-standard) var(--ease-standard), opacity var(--dur-fast);
}
.nav-burger span { top: 21px; }
.nav-burger span::before { top: -7px; left: 0; }
.nav-burger span::after { top: 7px; left: 0; }
.nav-open .nav-burger span { background: transparent; }
.nav-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ----------
   Sentence case, pill radius — Apple-clean, not template-uppercase.
   One primary CTA per view; outline = alternative; dark = neutral solid. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition:
    background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { border-color: rgba(250, 250, 249, 0.4); color: var(--bg); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--gold); color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--bg);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.72) 0%, rgba(12, 10, 9, 0.45) 40%, rgba(12, 10, 9, 0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 clamp(4rem, 9vh, 6rem);
  max-width: var(--container-max);
}
.hero-kicker { color: var(--gold-bright); }

/* Entrance: staggered once, then still (MOTION=2 — no loops) */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
body.loaded .hero-kicker { animation: riseIn 600ms var(--ease-standard) both; }
body.loaded .hero h1 { animation: riseIn 700ms var(--ease-standard) 120ms both; }
body.loaded .hero-sub { animation: riseIn 700ms var(--ease-standard) 240ms both; }
body.loaded .hero-actions { animation: riseIn 700ms var(--ease-standard) 360ms both; }

.hero h1 {
  font-size: var(--text-display);
  font-weight: 500;
  margin: var(--space-3) 0 var(--space-2);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  max-width: 52ch;
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250, 250, 249, 0.78);
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Scroll cue removed: the element was decorative with no user purpose
   (R-19) — markup dropped, rules removed. */

/* ---------- Marquee v2 (minimal) ----------
   Same certification ticker, demoted from gold block to a quiet
   hairline strip — minimalism pass: the ticker informs, it no longer
   shouts. Still the one permitted infinite animation (DESIGN.md §8). */
.marquee {
  background: var(--bg);
  color: var(--muted);
  overflow: hidden;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.marquee-track span::after { content: "·"; margin-left: 3rem; opacity: 0.55; color: var(--gold); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections — whitespace as structure, varied rhythm ---------- */
.section { padding: var(--section-pad) 0; }
.section + .section { padding-top: calc(var(--section-pad) * 0.55); }
.dark-section + .section { padding-top: var(--section-pad); }
main.section { padding: var(--section-pad-tight) 0 var(--section-pad); }
.page-hero + main.section { padding-top: var(--space-5); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.05;
  max-width: 16ch;
}
.section-head .kicker { padding-bottom: 0.4rem; }
.section-head p { color: var(--muted); max-width: 60ch; line-height: 1.75; }
.section-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-right: 0.75rem;
}
.dark-section { background: var(--ink); color: var(--bg); }
.dark-section .section-head h2 { color: var(--bg); }

/* ---------- Chapter line — one storyline sentence under each head ---------- */
.chapter-line {
  max-width: 58ch;
  margin: -1.4rem 0 2.4rem;
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}
.dark-section .chapter-line { color: rgba(250, 250, 249, 0.65); }

/* ---------- Product cards (lookbook) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(2.5rem, 4vw, 3.5rem);
}
.product-card {
  position: relative;
  display: block;
  transition: transform var(--dur-standard) var(--ease-standard);
}
.product-card:hover { transform: translateY(-4px); }
.product-card .card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--primary);
}
.product-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-standard);
}
.product-card:hover .card-media img { transform: scale(1.06); }
/* Glass dose 2 of 2: category flag. Functional label, not decoration. */
.card-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  background: rgba(12, 10, 9, 0.65);
  backdrop-filter: blur(10px);
  color: var(--gold-bright);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-radius: var(--radius-pill);
}
/* Solid overlay (de-glassed: was a third blur surface) */
.card-quick {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem;
  background: rgba(12, 10, 9, 0.85);
  color: var(--bg);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--dur-standard) var(--ease-standard);
}
.product-card:hover .card-quick { transform: translateY(0); }
.card-meta { padding-top: 1.4rem; }
.card-meta h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.card-meta .card-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
  line-height: 1.55;
}
.card-meta .card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.card-price { font-weight: 600; letter-spacing: 0.04em; }
.card-purity {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
/* Stock badge: real inventory signal, green reserved for status only */
.card-stock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  background: rgba(250, 250, 249, 0.92);
  color: #15803d;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(22, 163, 74, 0.4);
  border-radius: var(--radius-pill);
}

/* ---------- Stats band — divider grid, real data only ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.stat .stat-label {
  margin-top: 0.6rem;
  font-size: var(--text-micro);
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Editorial split — archival framing device on media ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
}
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 250, 249, 0.25);
  border-radius: calc(var(--radius-media) - 8px);
  pointer-events: none;
}
.split h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: var(--space-2) 0 var(--space-3); }
.split > div > .kicker { margin-bottom: 0.25rem; }
.split p { color: var(--muted); max-width: 55ch; margin-bottom: var(--space-3); line-height: 1.75; }
.split p:last-of-type { margin-bottom: var(--space-4); }
.dark-section .split p { color: rgba(250, 250, 249, 0.72); }

/* ---------- Process steps — number + rule, no icon theatre ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.step { padding-top: 1.25rem; border-top: 1px solid currentColor; }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}
.step h3 { font-size: 1.15rem; line-height: 1.3; margin: var(--space-2) 0 0.6rem; }
.step p { font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
.dark-section .step p { color: rgba(250, 250, 249, 0.65); }

/* ---------- CTA band ----------
   Dark band + gold italic accent. The old blurred radial orb behind the
   heading was a decorative glow (R-01 family) — removed; the type and
   accent carry the moment. */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.cta-band h2 {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.08;
}
.cta-band h2 em { font-style: italic; color: var(--gold-bright); }
.cta-band p {
  color: rgba(250, 250, 249, 0.7);
  max-width: 60ch;
  margin: var(--space-3) auto var(--space-5);
  line-height: 1.75;
}
.cta-band .container { max-width: var(--container-narrow); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--bg);
  padding: calc(var(--nav-h) + clamp(3.5rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { font-size: var(--text-h1); font-weight: 500; line-height: 1.04; }
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }
.page-hero p {
  max-width: 60ch;
  color: rgba(250, 250, 249, 0.72);
  margin-top: var(--space-3);
  font-weight: 300;
  line-height: 1.75;
  font-size: var(--text-body-lg);
}
.page-hero .kicker { margin-bottom: var(--space-3); }
.page-hero .hero-actions { margin-top: var(--space-4); }

/* ---------- Filter chips ---------- */
.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.chip {
  padding: 0.55rem 1.3rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Product detail ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.pd-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
}
.pd-media img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; }
/* ---------- Product hero (detail pages) ----------
   Ink editorial hero — the purple gradient panel from the old theme was
   a default-gradient treatment (R-01 family); the type and the price
   card carry the moment instead. */
.pd-hero {
  background: var(--ink);
  color: var(--bg);
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
}
body.has-promo .pd-hero {
  padding-top: calc(var(--nav-h) + 40px + clamp(2.5rem, 5vw, 3.5rem));
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.pd-hero-copy .kicker { color: var(--gold-bright); }
.pd-hero-copy h1 {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.05;
  margin: var(--space-3) 0 var(--space-2);
}
.pd-hero-copy h1 em { font-style: italic; color: var(--gold-bright); }
.pd-hero-sub {
  max-width: 48ch;
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250, 250, 249, 0.75);
  margin-bottom: var(--space-4);
}
.pd-hero-media { border-radius: var(--radius-media); overflow: hidden; }
.pd-hero-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }

/* Price lockup: hairline card, one gold border marks the key moment */
.pd-price-card {
  display: block;
  width: min(26rem, 100%);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-sharp);
  background: rgba(250, 250, 249, 0.04);
  color: var(--bg);
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.pd-price-card:hover { border-color: var(--gold-bright); }
.pd-price-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.55);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(250, 250, 249, 0.12);
}
.pd-price-card-row .mono {
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.78rem;
}
.pd-price-card-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: var(--space-2) 0 0.25rem;
  white-space: nowrap;
}
.pd-price-card-main .big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}
.pd-price-card-main .per {
  font-size: var(--text-sm);
  color: rgba(250, 250, 249, 0.6);
}
.pd-price-card-note {
  font-size: var(--text-xs);
  color: rgba(250, 250, 249, 0.55);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.pd-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pd-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; line-height: 1.08; }
.pd-sub { color: var(--muted); letter-spacing: 0.04em; margin-top: 0.75rem; line-height: 1.6; }
.pd-price { font-size: 1.9rem; font-weight: 600; margin: var(--space-3) 0 0.25rem; line-height: 1.2; }
.pd-price small { font-size: var(--text-sm); color: var(--muted); font-weight: 400; }
.pd-form { display: flex; gap: 0.75rem; margin-bottom: var(--space-4); flex-wrap: wrap; }
.qty {
  min-width: 96px;
  min-height: 48px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sharp);
}

/* Stock line: static dot — the pulse was an endless loop with no
   purpose; stock state is carried by the label itself (R-19) */
.stock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: var(--space-3);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.stock-row a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lot-line {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.assurance-row span:not(:first-child)::before {
  content: "·";
  color: var(--gold);
  margin-right: 0.4rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.25rem 0;
  font-size: 0.88rem;
}
.spec-table th, .spec-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.spec-table th { width: 38%; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--muted); }

.ruo-box {
  border: 1px solid var(--gold);
  background: rgba(202, 138, 4, 0.06);
  padding: var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--secondary);
  border-radius: var(--radius-sharp);
}
.ruo-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

/* ---------- Assay strip (certification band) ---------- */
.assay-strip {
  background: var(--ink);
  color: var(--bg);
  padding: var(--section-pad-tight) 0;
}
.assay-strip .kicker { margin-bottom: var(--space-3); }
.assay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.assay-cell {
  border-top: 1px solid rgba(250, 250, 249, 0.15);
  padding-top: 1.1rem;
}
.assay-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--gold-bright);
  line-height: 1.2;
}
.assay-label {
  margin-top: 0.4rem;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.6);
}

.fulfill .section-head p { color: var(--muted); max-width: 60ch; line-height: 1.75; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  font-family: var(--font-body);
}
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform var(--dur-standard) var(--ease-standard), border-color var(--dur-standard) var(--ease-standard);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); border-color: var(--gold); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-standard) var(--ease-standard);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  padding-bottom: var(--space-3);
}
.faq-a a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Legal / prose ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.8rem; line-height: 1.25; margin: 3rem 0 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; line-height: 1.35; margin: 2.25rem 0 0.8rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 1.15rem; line-height: 1.8; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-grid .stats-band { margin-top: var(--space-4); }
.contact-stat { font-size: clamp(1rem, 4.5vw, 1.3rem); overflow-wrap: anywhere; }
.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9rem 1rem;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  border-radius: var(--radius-sharp);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.field input { cursor: text; }
.field input::placeholder, .field textarea::placeholder { color: #A8A29E; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
}

/* ---------- Footer — columns follow real link groups ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 249, 0.65);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(250, 250, 249, 0.12);
}
.footer-grid > div:first-child p { line-height: 1.75; max-width: 38ch; margin-top: 0.25rem; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.footer-logo span { color: var(--gold); }
.footer-disclaimer {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-radius: var(--radius-sharp);
  font-size: var(--text-xs);
  line-height: 1.75;
  color: rgba(250, 250, 249, 0.55);
}
.footer-col h4 {
  color: var(--bg);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { transition: color var(--dur-fast) var(--ease-standard); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: rgba(250, 250, 249, 0.4);
}

/* ---------- Promo bar — status announcement, ink not gold
   (keeps gold accent budget for CTAs and the ticker) ---------- */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 40px;
  padding: 0.5rem 3rem 0.5rem 1rem;
  background: var(--ink);
  color: rgba(250, 250, 249, 0.85);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  border-bottom: 1px solid rgba(202, 138, 4, 0.35);
}
.promo-bar a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-bar .mono { letter-spacing: 0.05em; text-transform: none; color: var(--bg); }
.promo-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--bg);
}
body.has-promo { padding-top: 40px; }
body.has-promo .site-nav { top: calc(1rem + 40px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 150%);
  z-index: var(--z-toast);
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--gold);
  padding: 1rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elevated);
  transition: transform 450ms var(--ease-standard);
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Scroll reveal (entrance once — compliant with MOTION=2) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms var(--ease-standard), transform 800ms var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .pd-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-hero-media { order: -1; }
  .pd-hero-media img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section + .section { padding-top: 2rem; }
  .section-head { margin-bottom: 2rem; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(12, 10, 9, 0.97);
    font-size: 1.4rem;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-standard) var(--ease-standard);
  }
  /* backdrop-filter on the header would become the containing block for the
     fixed fullscreen menu (traps it inside the pill) — glass off on mobile,
     opacity carries the depth instead */
  .site-nav, .site-nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 9, 8, 0.94);
    border-color: rgba(202, 138, 4, 0.28);
  }
  .nav-open .nav-links a { font-size: 1.05rem; letter-spacing: 0.24em; }
  .nav-open .nav-links .nav-cta { font-size: 0.85rem !important; letter-spacing: 0.2em; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-open .nav-links li {
    opacity: 0;
    transform: translateY(14px);
    animation: navRise 450ms var(--ease-standard) forwards;
  }
  .nav-open .nav-links li:nth-child(1) { animation-delay: 60ms; }
  .nav-open .nav-links li:nth-child(2) { animation-delay: 120ms; }
  .nav-open .nav-links li:nth-child(3) { animation-delay: 180ms; }
  .nav-open .nav-links li:nth-child(4) { animation-delay: 240ms; }
  .nav-open .nav-links li:nth-child(5) { animation-delay: 300ms; }
  .nav-open .nav-links li:nth-child(6) { animation-delay: 360ms; }
  .nav-open .nav-links li:nth-child(7) { animation-delay: 420ms; }
  @keyframes navRise { to { opacity: 1; transform: none; } }
  .nav-burger { display: block; z-index: 60; }
  .product-grid { grid-template-columns: 1fr; gap: 2rem; row-gap: 2.75rem; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .filter-row { margin-bottom: 2rem; }
  .pd-price-card-main .big { font-size: 2.1rem; }
  .assay-grid { grid-template-columns: 1fr 1fr; }
  .promo-bar { font-size: 0.62rem; letter-spacing: 0.1em; padding-right: 2.5rem; }
}
@media (max-width: 480px) {
  .steps, .stats-band, .footer-grid, .assay-grid { grid-template-columns: 1fr; }
  .nav-links a { font-size: 1.1rem; }
  .nav-logo { font-size: 0.92rem; letter-spacing: 0.1em; }
  .site-nav { padding: 0.55rem 0.6rem 0.55rem 1rem; }
  .section-num { display: block; margin: 0 0 0.4rem; }
  .section-head h2 { max-width: 100%; }
  .lot-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .lot-meta { white-space: normal; }
  .pd-price-card { width: 100%; }
  .pd-price-card-main { white-space: normal; }
  .contact-grid .stat { padding: 1.25rem 1rem; }
  .contact-grid .stat-value { font-size: 1.02rem; overflow-wrap: anywhere; }
  #co-items > div { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .chapter-line { font-size: 1rem; }
}

/* ---------- Reduced motion — everything stills (DESIGN.md §12) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { height: 100%; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
}

/* ---------- Anchors, sticky call bar, published lots, auth ---------- */
html { scroll-padding-top: 88px; }

.nav-auth[hidden] { display: none; }
.nav-auth { display: flex; align-items: center; }
.nav-auth .clerk-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.lot-list { display: flex; flex-direction: column; }
.lot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.lot-row:first-child { border-top: 1px solid var(--line); }
.lot-row strong { font-weight: 700; }
.lot-meta { color: var(--gold); font-weight: 600; white-space: nowrap; }

.sticky-call { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    min-height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
}

/* ============================================================
   v1.1 — Minimalism pass: nav cart, quote drawer, chapter rail
   ============================================================ */

/* ---------- Nav actions: cart lives in the nav, not a floating FAB
   (removes the old bottom-right FAB that collided with the mobile
   call bar — one surface, zero overlap) ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 60;
}
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--bg);
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav-cart:hover { color: var(--gold-bright); }
.nav-cart svg { width: 20px; height: 20px; }
.nav-cart-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-expressive);
}
.nav-cart-badge.has-items { transform: scale(1); }

/* ---------- Quote drawer (cart) ---------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 10, 9, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-standard) var(--ease-standard);
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform var(--dur-standard) var(--ease-standard);
}
.cart-drawer.open { transform: none; }

.cart-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}
.cart-title small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.cart-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--secondary);
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.cart-close:hover { color: var(--ink); background: var(--line); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}
.cart-item-meta {
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.03em;
}
.cart-item-meta .mono { color: var(--secondary); }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.cart-qty-btn {
  width: 44px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.cart-qty-btn:hover { border-color: var(--gold); color: var(--ink); }
.cart-qty-val {
  min-width: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cart-item-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item-remove {
  width: 44px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-standard);
}
.cart-item-remove:hover { color: var(--error); }

.cart-empty {
  padding: 3.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.cart-empty .serif { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; }

.cart-foot {
  flex-shrink: 0;
  padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.cart-total-row small { font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.cart-ruo {
  margin-top: 0.85rem;
  font-size: var(--text-micro);
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cart-checkout { width: 100%; }
.cart-clear {
  display: block;
  margin: 0.85rem auto 0;
  background: none;
  border: 0;
  padding: 0.35rem 0.75rem;
  min-height: 44px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.cart-clear:hover { color: var(--error); }

/* ---------- Chapter rail — the storyline index (desktop only) ---------- */
.chapter-rail {
  position: fixed;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1240px) { .chapter-rail { display: flex; } }
.chapter-rail a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.chapter-rail a::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-standard) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.chapter-rail a:hover { opacity: 1; }
.chapter-rail a.active { opacity: 1; color: var(--ink); }
.chapter-rail a.active::before { width: 30px; background: var(--gold); }

/* ---------- Contact strip — direct routing (email + phone) ---------- */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(250, 250, 249, 0.15);
  font-size: var(--text-sm);
  color: rgba(250, 250, 249, 0.65);
}
.contact-strip span { letter-spacing: 0.02em; }
.contact-strip a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.contact-strip a:hover { color: var(--bg); }
.contact-strip.on-light { border-top-color: var(--line); color: var(--muted); justify-content: flex-start; }
.contact-strip.on-light a { color: #A16207; }
.contact-strip.on-light a:hover { color: var(--ink); }

/* ---------- Footer direct-contact rows ---------- */
.footer-contact { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 250, 249, 0.8);
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-contact a:hover { color: var(--gold-bright); }

/* ---------- Touch devices: hover-only affordances become visible ---------- */
@media (hover: none) {
  .card-quick { display: none; }
  .product-card:hover { transform: none; }
  .product-card:hover .card-media img { transform: none; }
}

/* ---------- Cart upgrades: badge pop, linked names, quick adds ---------- */
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.nav-cart-badge.has-items.pop { animation: badgePop 350ms var(--ease-expressive); }
.cart-item-name a { color: inherit; }
.cart-item-name a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cart-meta-lot { margin-top: 0.15rem; }
.cart-quick-adds { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.cart-quick-add {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.cart-quick-add:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- Field notes + vial showcase ---------- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.exp-cards { display: grid; gap: 1rem; }
.exp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sharp);
  background: var(--bg-card);
  padding: 1.4rem 1.5rem;
}
.exp-card blockquote { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; margin-bottom: 0.7rem; }
.exp-card figcaption { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vial-stage {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-media);
  background: var(--bg-card); padding: clamp(1.5rem, 4vw, 3rem); min-height: 420px;
  overflow: hidden;
}
.vial-stage svg { width: min(280px, 70%); height: auto; will-change: transform; }
@media (max-width: 1024px) { .exp-grid { grid-template-columns: 1fr; } }