/* Babylon Peptide — clinical light theme */

:root {
  --paper: #f3f2ee;
  --paper-2: #eae8e1;
  --white: #fbfbf8;
  --ink: #131312;
  --ink-2: #474641;
  --ink-3: #85837c;
  --line: #d9d6cd;
  --line-2: #bfbbb0;
  --signal: #c8322a;
  --accent: #23505f;
  --brand: #ff6a13;
  --brand-dark: #e85400;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19,19,18,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19,19,18,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
body.is-locked { overflow: hidden; }

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

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.fine { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.mono.fine { font-size: 10.5px; color: var(--ink-3); }
.eyebrow { color: var(--ink-3); margin: 0 0 18px; }

.tag-red {
  display: inline-block; background: var(--signal); color: #fff;
  padding: 3px 7px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; border-radius: 2px;
}

.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 10px; }
.link-btn:hover { color: var(--signal); }

/* Buttons */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: 1px solid var(--b); border-radius: 2px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, opacity .2s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink::before { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--white); }
.btn:hover::before { transform: scaleY(1); }
.btn:disabled { opacity: .32; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 2px; }
.icon-btn:hover { border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(15, 15, 14, .84);
  opacity: 0; transition: opacity .6s var(--ease);
}
.gate.is-open { opacity: 1; }
.gate.is-leaving { opacity: 0; pointer-events: none; transition-duration: .7s; }
.gate-card {
  width: min(940px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1.08fr;
  background: var(--white); border-radius: 6px;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(28px) scale(.985); transition: transform .9s var(--ease);
}
.gate.is-open .gate-card { transform: none; }
.gate.is-leaving .gate-card { transform: translateY(-14px) scale(.985); }

.gate-side {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--paper);
  padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px;
}
.gate-side::after {
  content: ''; position: absolute; z-index: -1; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 22px);
  animation: spin 90s linear infinite;
}
.gate-brand { display: flex; align-items: center; gap: 12px; }
.gate-brand .mono { color: rgba(243,242,238,.7); font-size: 11px; letter-spacing: .18em; }
.gate-side h2 { font: 400 clamp(44px, 6vw, 68px)/.94 var(--serif); letter-spacing: -.02em; margin: auto 0 0; }
.gate-side h2 em { color: var(--brand); }
.gate-side p { margin: 0; color: rgba(243,242,238,.68); font-size: 14.5px; max-width: 30em; }
.gate-facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; font-size: 10.5px; color: rgba(243,242,238,.8); }
.gate-facts li { display: flex; align-items: center; gap: 10px; }
.gate-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }

.gate-main { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; }
.gate-step { display: flex; justify-content: space-between; color: var(--ink-3); margin: 0 0 14px; }
.gate-step b { color: var(--ink); font-weight: 600; }
.gate-main h3 { font: 500 22px/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 20px; }
.decls { display: grid; gap: 10px; }
.decl {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.gate.is-open .decl { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s, background .25s; }
.gate.is-open .decl:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.gate.is-open .decl:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.decl:hover { border-color: var(--line-2); }
.decl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decl-box { width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background .25s, border-color .25s; margin-top: 1px; }
.decl-box svg { width: 12px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
.decl-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.decl-text b { display: block; font-weight: 600; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.decl input:checked ~ .decl-box { background: var(--ink); border-color: var(--ink); }
.decl input:checked ~ .decl-box svg { stroke-dashoffset: 0; }
.decl:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.decl input:focus-visible ~ .decl-box { outline: 2px solid var(--accent); outline-offset: 3px; }

.gate-progress { height: 2px; background: var(--line); margin: 22px 0 18px; border-radius: 2px; overflow: hidden; }
.gate-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--brand); transition: width .5s var(--ease); }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand::before { background: var(--brand-dark); }
.btn-brand:disabled { background: var(--paper-2); color: var(--ink-3); border-color: var(--line); opacity: 1; }
.btn-brand .arrow { transition: transform .4s var(--ease); }
.btn-brand:not(:disabled):hover .arrow { transform: translateX(4px); }
.gate-leave { background: none; border: 0; padding: 14px 0 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.gate-leave:hover { color: var(--signal); }
.gate-fine { margin: auto 0 0; padding-top: 18px; color: var(--ink-3); font-size: 10px; text-align: center; }

@media (max-width: 760px) {
  .gate-card { grid-template-columns: 1fr; }
  .gate-side { gap: 14px; }
  .gate-side h2 { font-size: 42px; margin-top: 8px; }
  .gate-side p { font-size: 13.5px; }
  .gate-facts { display: none; }
  .gate-main h3 { font-size: 18px; margin-bottom: 14px; }
  .decl { padding: 12px 13px; }
  .decl-text { font-size: 13.5px; }
}

.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 14.5px; line-height: 1.45; }
.check input {
  appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.check input::after { content: ''; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--ink); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

/* ---------- RUO bar + header ---------- */
.ruo-bar { background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; position: relative; z-index: 30; }
.ruo-track { display: inline-flex; padding: 8px 0; animation: marquee 38s linear infinite; font-size: 10.5px; }
.ruo-track span { padding: 0 22px; position: relative; }
.ruo-track span::after { content: ''; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: var(--signal); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(243, 242, 238, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  flex: none; background: var(--brand); color: #fff; border-radius: 2px;
  padding: 6px 6px 5px 7px; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
  transition: background .3s, transform .5s var(--ease);
}
.logo:hover .logo-mark { background: var(--brand-dark); transform: rotate(-4deg); }
.logo-word { display: flex; gap: .55em; font: 600 15px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding-top: 2px; }
.logo-word b { font-weight: 600; }
.logo-word span { font-weight: 400; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-size: 14px; }
.nav > a { position: relative; padding: 4px 0; }
.nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav > a:hover::after, .nav > a.is-on::after { transform: scaleX(1); transform-origin: left; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--ink); padding: 7px 8px 7px 12px; border-radius: 2px; transition: background .25s, color .25s; }
.cart-btn:hover { background: var(--ink); color: var(--white); }
.cart-count { background: var(--ink); color: var(--white); min-width: 22px; padding: 3px 5px 2px; text-align: center; border-radius: 2px; font-size: 10.5px; }
.cart-btn:hover .cart-count { background: var(--white); color: var(--ink); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--signal); } }

/* ---------- View transitions ---------- */
main { display: block; min-height: 70vh; outline: none; transition: opacity .22s, transform .22s var(--ease); }
main.is-out { opacity: 0; transform: translateY(8px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Vial ---------- */
.vial { perspective: 900px; width: 100%; }
.vial-inner {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .6s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.vial.is-hover { --lift: -8px; }
.vial.is-hover .vial-inner { transition-duration: .18s; }
.vial-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.vial.is-turn .vial-inner { animation: turn 1.1s var(--ease); }
@keyframes turn { 0% { transform: none; } 35% { transform: rotateY(24deg) translateY(-8px); } 70% { transform: rotateY(-12deg) translateY(-4px); } 100% { transform: none; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 80px);
  min-height: calc(100svh - 100px);
}
.hero-title { font-size: clamp(54px, 9.4vw, 148px); line-height: .9; margin: 0 0 30px; letter-spacing: -.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.hero-title em { color: var(--ink-3); }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); max-width: 33em; color: var(--ink-2); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-ruo { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin: 0; }

.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; display: grid; place-items: center; color: var(--ink); }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-vial { width: 56%; position: relative; z-index: 2; animation: float 7s ease-in-out infinite; perspective: 1000px; }
.hero-vial .vial-img { filter: drop-shadow(0 26px 30px rgba(19,19,18,.14)); }
/* Live 3D canvas (home + product pages): fades in over the photo once its first frame is ready. */
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 2; touch-action: pan-y; outline: none; opacity: 0; transition: opacity .8s var(--ease); }
.hero-canvas.is-ready { opacity: 1; }
.hero-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hero-vial, .pdp-vial { transition: opacity .7s var(--ease); }
.hero-stage.is-3d .hero-vial, .pdp-stage.is-3d .pdp-vial { opacity: 0; }
.hero-hint { position: absolute; bottom: -7%; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; white-space: nowrap; font-size: 10px; color: var(--ink-3); z-index: 3; }
.hero-hint #hero-name { color: var(--ink); }
.hero-hint > span + span::before { content: '/'; margin-right: 14px; color: var(--line-2); }
.annot > span, .annot::before { transition: opacity .5s var(--ease); }
.hero-stage.is-play .annot > span, .hero-stage.is-play .annot::before { opacity: .12; }
@keyframes float { 50% { transform: translateY(-12px); } }
.annot { position: absolute; z-index: 3; font-size: 10px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; opacity: 0; animation: fadeIn .8s 1.3s var(--ease) forwards; }
.annot::before { content: ''; width: clamp(30px, 6vw, 70px); height: 1px; background: var(--ink-2); order: var(--o, 0); }
.annot span { background: var(--paper); padding: 2px 4px; }
.annot-1 { top: 22%; right: 4%; --o: -1; }
.annot-2 { top: 52%; left: 2%; --o: 1; flex-direction: row; }
.annot-3 { top: 80%; right: 2%; --o: -1; animation-delay: 1.5s; }
.annot-2 { animation-delay: 1.4s; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Facts ---------- */
.facts { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.fact { padding: 22px 20px 26px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-left: 20px; }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact .serif { font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.fact .mono { color: var(--ink-3); font-size: 10.5px; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: 200px 1fr auto; align-items: baseline; gap: 20px; margin-bottom: 36px; }
.sec-head > .mono { color: var(--ink-3); }
.sec-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; margin: 0; }

/* ---------- Index list ---------- */
.index { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 90px minmax(160px, 1.1fr) 2fr 110px 24px; gap: 16px; align-items: baseline;
  padding: 18px 0; position: relative; transition: padding .45s var(--ease), color .3s;
}
.index-list a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.index-list li { position: relative; isolation: isolate; }
.index-list a:hover { color: var(--white); padding-left: 16px; padding-right: 16px; }
.index-list a:hover::before { transform: scaleY(1); }
.index-list .sku { color: var(--ink-3); transition: color .3s; }
.index-list a:hover .sku, .index-list a:hover .cls { color: rgba(251,251,248,.6); }
.index-list .name { font: 400 clamp(24px, 2.6vw, 34px)/1.05 var(--serif); }
.index-list .cls { color: var(--ink-2); font-size: 14px; transition: color .3s; }
.index-list .price { text-align: right; }
.index-list .arrow { transform: translateX(-8px); opacity: 0; transition: .4s var(--ease); }
.index-list a:hover .arrow { transform: none; opacity: 1; }
.index-list .name { display: flex; align-items: center; gap: 22px; }
.row-vial {
  flex: none; width: 46px; margin: -30px 0 -26px;
  opacity: 0; transform: translateY(16px) rotate(-10deg) scale(.7);
  transition: opacity .35s var(--ease), transform .55s var(--ease);
}
.index-list a:hover .row-vial { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- Process ---------- */
.process { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 24px 24px 10px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step-no { color: var(--signal); }
.step h3 { font: 400 30px/1.1 var(--serif); margin: 26px 0 10px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ---------- Statement ---------- */
.statement { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.statement-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.statement h2 { font-size: clamp(48px, 9vw, 120px); line-height: .95; margin: 24px 0; letter-spacing: -.02em; }
.statement p { color: rgba(243,242,238,.7); font-size: 17px; max-width: 36em; margin: 0 auto 30px; }

/* ---------- Pages ---------- */
.shop, .checkout, .pdp { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 100px; }
.page-title { font-size: clamp(56px, 10vw, 132px); line-height: .92; margin: 0 0 18px; letter-spacing: -.025em; }
.page-lead { color: var(--ink-2); max-width: 38em; font-size: 17px; margin: 0 0 32px; }
.narrow { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) 110px; }

.shop-tools { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 36px; }
.search { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; max-width: 380px; }
.search .mono { color: var(--ink-3); }
.search input { flex: 1; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 8px 0; font: inherit; outline: none; transition: border-color .2s; min-width: 0; }
.search input:focus { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: transparent; border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; font-size: 13px; transition: .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty { font-size: 32px; text-align: center; padding: 60px 0; color: var(--ink-3); }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); display: flex; flex-direction: column; transition: background .4s; }
.card:hover { background: var(--white); }
.card-stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.4; padding: 8% 0 2%; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(255,255,255,.9), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(19,19,18,.045) 23px 24px);
}
.card-stage .vial { width: 54%; }
.card-sku, .card-ruo { position: absolute; top: 14px; font-size: 10px; }
.card-sku { left: 16px; color: var(--ink-3); }
.card-ruo { right: 16px; color: var(--signal); border: 1px solid currentColor; padding: 2px 5px 1px; border-radius: 2px; }
.card-body { padding: 16px 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font: 400 26px/1.05 var(--serif); margin: 0; }
.card .price { white-space: nowrap; font-size: 11px; }
.card-cls { color: var(--ink-2); font-size: 13.5px; margin: 0 0 8px; flex: 1; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-actions .muted { font-size: 10px; }
.btn-add { background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 7px 10px 6px; font-size: 10.5px; transition: background .25s, color .25s; white-space: nowrap; }
.btn-add:hover { background: var(--ink); color: var(--white); }
.btn-add:active { transform: scale(.96); }

/* ---------- Product page ---------- */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-stage {
  position: sticky; top: 90px; aspect-ratio: 1 / 1.1; display: grid; place-items: center;
  border: 1px solid var(--line); background:
    radial-gradient(55% 45% at 50% 58%, #fff, transparent 75%),
    linear-gradient(to right, rgba(19,19,18,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(19,19,18,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper-2);
  overflow: hidden;
}
.pdp-stage { perspective: 1000px; }
.pdp-vial { will-change: transform; width: 54%; transition: opacity .22s; }
.pdp-vial.is-swap { opacity: 0; transform: translateY(10px) scale(.97); }
.pdp-stage > .mono { position: absolute; font-size: 10px; color: var(--ink-3); z-index: 3; pointer-events: none; }
.stage-tl { top: 16px; left: 16px; } .stage-tr { top: 16px; right: 16px; }
.stage-bl { bottom: 16px; left: 16px; } .stage-br { bottom: 16px; right: 16px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.pdp-title { font-size: clamp(56px, 7.6vw, 112px); line-height: .9; margin: 0 0 12px; letter-spacing: -.025em; }
.pdp-cls { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
.ruo-box { border: 1px solid var(--signal); background: rgba(200,50,42,.04); padding: 16px 18px; margin-bottom: 28px; }
.ruo-box p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
.field { margin-bottom: 18px; }
.label { display: block; color: var(--ink-3); margin-bottom: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink); border-radius: 2px; }
.seg-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 16px; font-size: 15px; transition: background .3s var(--ease), color .3s; }
.seg-btn + .seg-btn { border-left: 1px solid var(--ink); }
.seg-btn .mono { color: var(--ink-3); font-size: 11px; transition: color .3s; }
.seg-btn.is-on { background: var(--ink); color: var(--white); }
.seg-btn.is-on .mono { color: rgba(251,251,248,.65); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 36px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 2px; }
.stepper button { background: none; border: 0; width: 44px; height: 100%; min-height: 46px; font-size: 18px; transition: background .2s; }
.stepper button:hover { background: var(--paper-2); }
.stepper span { min-width: 28px; text-align: center; font-size: 13px; }
.stepper.sm button { width: 30px; min-height: 28px; font-size: 15px; }
.stepper.sm { border-color: var(--line-2); }

.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); font-size: 10.5px; padding-top: 3px; }
.spec dd { margin: 0; font-size: 14.5px; }

.related { margin-top: clamp(80px, 10vw, 130px); }
.related .grid { grid-template-columns: repeat(4, 1fr); }
.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: 80px; border-top: 1px solid var(--ink); }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 24px 0; transition: color .3s; }
.pager-link .mono { color: var(--ink-3); }
.pager-link .serif { font-size: clamp(28px, 4vw, 48px); line-height: 1; transition: transform .45s var(--ease); }
.pager-link:hover .serif { transform: translateX(8px); }
.pager-link.right { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.pager-link.right:hover .serif { transform: translateX(-8px); }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(19,19,18,.35); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(440px, 100%); background: var(--white); border-left: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .6s var(--ease-io);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font: 400 32px/1 var(--serif); margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 20px; }
.drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.drawer-foot .btn { margin-top: 16px; }
.cart-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; animation: slideIn .5s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.cart-thumb { width: 44px; height: 64px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: flex; justify-content: center; align-items: center; }
.cart-thumb .vial-img { width: 160%; max-width: none; flex: none; }
.cart-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cart-meta .mono { font-size: 10px; }
.cart-name { font: 400 22px/1.05 var(--serif); }
.cart-meta .stepper { margin-top: 6px; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-empty { text-align: center; padding: 70px 0; }
.cart-empty .serif { font-size: 30px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.ruo-inline { display: flex; gap: 10px; align-items: center; }

.fly .vial-img { width: 170%; margin-left: -35%; }
.fly { position: fixed; z-index: 90; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95;
  background: var(--ink); color: var(--white); padding: 12px 16px 11px; border-radius: 2px;
  transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; font-size: 11px;
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }

/* ---------- Checkout ---------- */
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.co-form fieldset { border: 0; border-top: 1px solid var(--ink); margin: 0 0 32px; padding: 18px 0 0; }
.co-form legend { color: var(--ink-3); padding: 0; float: left; width: 100%; margin-bottom: 18px; }
.co-form legend + * { clear: both; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.f .mono { color: var(--ink-2); font-size: 10.5px; }
.f input, .f select {
  font: inherit; font-size: 16px; padding: 12px 12px; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--white); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.f input:focus, .f select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,80,95,.12); }
.err { display: none; color: var(--signal); font-style: normal; font-size: 12.5px; }
.f.is-bad input, .f.is-bad select { border-color: var(--signal); }
.f.is-bad .err, .err.is-on { display: block; }
.co-form .check { font-size: 14px; }
.co-sum { background: var(--white); border: 1px solid var(--line); padding: 22px; }
.co-sum h3 { margin: 0 0 8px; color: var(--ink-3); font-weight: 400; }
.sum-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-line strong { display: block; font: 400 20px/1.1 var(--serif); }
.sum-line .muted { font-size: 10px; }
.co-sum .sum-row:first-of-type { margin-top: 10px; }

.done { text-align: center; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 28px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.done-mark svg { width: 40px; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .page-lead { margin-left: auto; margin-right: auto; }
.done .btn { margin-top: 24px; }

/* ---------- Compliance ---------- */
.clauses { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.clauses li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.clauses .mono { color: var(--signal); padding-top: 8px; }
.clauses h2 { font: 400 32px/1.1 var(--serif); margin: 0 0 8px; }
.clauses p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 40px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.footer-ruo { max-width: var(--max); margin: 0 auto 30px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.footer-ruo .tag-red { justify-self: start; }
.footer-ruo p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 70em; }
.footer-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--ink-3); font-size: 10.5px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid, .related .grid { grid-template-columns: repeat(3, 1fr); }
  .index-list a { grid-template-columns: 80px 1fr 110px 20px; }
  .index-list .cls { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-stage { max-width: 420px; order: -1; margin-bottom: 40px; }
  .grid, .related .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 10px; }
  .pdp-grid, .co-grid { grid-template-columns: 1fr; }
  .pdp-stage { position: relative; top: 0; aspect-ratio: 1 / 1; }
  .co-sum { position: static; order: -1; }
  .footer-ruo { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .nav > a[data-nav="compliance"] { display: none; }
  .logo-word { font-size: 11.5px; letter-spacing: .14em; }
  .card-stage .vial { width: 62%; }
  .card h3 { font-size: 22px; }
  .card-body { padding: 12px 12px 14px; }
  .card-top { flex-direction: column; gap: 2px; }
  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .muted { display: none; }
  .btn-add { text-align: center; padding: 9px 8px 8px; }
  .card-cls { font-size: 12.5px; }
  .index-list a { grid-template-columns: 56px 1fr 18px; gap: 10px; padding: 14px 0; }
  .index-list .price { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .row2 { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .buy-row { grid-template-columns: 1fr; }
  .stepper { justify-self: start; }
  .gate-actions { grid-template-columns: 1fr; }
  .gate-actions .btn-ink { order: -1; }
  .annot { display: none; }
  .hero-vial { width: 60%; }
  .clauses li { grid-template-columns: 1fr; gap: 4px; }
  .pager-link .serif { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}
