/* =========================================================
   Limitless Peptides — "Index" design system (v3, 2026)
   Bone paper, ink type, black specimen plates, label cobalt.
   ========================================================= */

:root {
  --paper: #f1f0ec;
  --paper-2: #e7e5df;
  --paper-3: #dcd9d1;
  --ink: #0b0b0c;
  --ink-2: #333336;
  --mute: #6f6f74;
  --line: rgba(11, 11, 12, .13);
  --line-2: rgba(11, 11, 12, .24);
  --black: #000;
  --night: #0a0a0b;
  --night-2: #141416;
  --night-line: rgba(255, 255, 255, .12);
  --night-mute: rgba(255, 255, 255, .56);
  --cobalt: #1b4fd1;
  --cobalt-2: #1440b0;
  --cobalt-soft: #dfe6fb;
  --cobalt-night: #6f97ff;
  --ok: #138a5b;
  --warn: #b4532a;

  --c-metabolic: #1b4fd1;
  --c-cellular: #0d7a64;
  --c-endocrine: #b4532a;
  --c-neuro: #6a4fc0;
  --c-melano: #a33a5c;
  --c-supplies: #77777c;

  --sans: "General Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 3.6vw, 48px);
  --max: 1480px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; font-size: 14px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mute { color: var(--mute); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-live { color: var(--ok); box-shadow: 0 0 0 0 rgba(19, 138, 91, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 138, 91, .45); } 70% { box-shadow: 0 0 0 7px rgba(19, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(19, 138, 91, 0); } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap; user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-2); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #26262a; }
.btn-ghost, .btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.on-night .btn-line { border-color: rgba(255,255,255,.3); color: #fff; }
.on-night .btn-line:hover { border-color: #fff; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; line-height: 1.2; }
.text-link:hover { color: var(--cobalt); }
.text-link svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.ribbon { background: var(--ink); color: rgba(255,255,255,.78); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ribbon .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 24px; }
.ribbon span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ribbon b { color: #fff; font-weight: 500; }
.ribbon .r-mid { flex: 1; justify-content: center; }
@media (max-width: 860px) { .ribbon .r-side { display: none; } .ribbon .wrap { justify-content: center; } }

.hdr { position: sticky; top: 0; z-index: 60; background: rgba(241, 240, 236, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr .wrap { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-weight: 600; font-size: 16px; letter-spacing: .16em; }
.logo-word span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--mute); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(11,11,12,.05); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cobalt); }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-size: 14px; transition: border-color .2s, color .2s; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn kbd { font-family: var(--mono); font-size: 11px; padding: 3px 6px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background .2s; }
.cart-btn:hover { background: #2a2a2e; }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.14); display: inline-grid; place-items: center; font-family: var(--mono); font-size: 12px; transition: background .3s, transform .3s var(--ease); }
.cart-count.show { background: var(--cobalt); }
.cart-count.bump { transform: scale(1.25); }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }
.hdr-min .wrap { grid-template-columns: 1fr auto; }
.secure-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.secure-tag svg { width: 14px; height: 14px; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .hdr .wrap { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-grid; }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .search-btn { width: 38px; padding: 0; justify-content: center; }
  .cart-btn .lbl { display: none; }
  .cart-btn { padding: 0 6px 0 12px; gap: 8px; }
  .cart-btn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--bag) center/contain no-repeat; mask: var(--bag) center/contain no-repeat; }
}
:root { --bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 8h14l-1.2 12H6.2L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; transform: translateY(-100%); transition: transform .55s var(--ease-io); visibility: hidden; }
.menu.open { transform: none; visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.menu-top .icon-btn { border-color: rgba(255,255,255,.2); }
.menu .logo-mark { background: #fff; color: var(--ink); }
.menu .logo-word span { color: var(--night-mute); }
.menu nav { margin-top: 40px; display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: clamp(30px, 8vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.menu nav a span { font-family: var(--mono); font-size: 12px; color: var(--night-mute); letter-spacing: .04em; }
.menu-foot { margin-top: auto; color: var(--night-mute); font-size: 13px; }
.menu-foot a { color: #fff; }

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(72px, 10vw, 148px) 0; position: relative; }
.sec-tight { padding: clamp(48px, 6vw, 88px) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--mute); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sec-label b { color: var(--ink); font-weight: 500; }
.sec-label .rule { flex: 1; }
.on-night .sec-label { border-color: var(--night-line); color: var(--night-mute); }
.on-night .sec-label b { color: #fff; }
.sec-title { grid-column: 1 / span 7; font-size: clamp(38px, 5.4vw, 84px); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.sec-title .serif-i { letter-spacing: -.03em; }
.sec-lede { grid-column: 9 / -1; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.on-night .sec-lede { color: var(--night-mute); }
@media (max-width: 900px) { .sec-title, .sec-lede { grid-column: 1 / -1; } }
.on-night { background: var(--night); color: #fff; }
.on-night ::selection { background: #fff; color: var(--ink); }

/* Reveal motion */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; }
.js .split-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js.ready .split-line > span, .js .split-line.in > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .split-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: stretch; }
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; padding-top: clamp(12px, 3vw, 44px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mute); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-title { margin-top: clamp(28px, 4vw, 56px); font-size: clamp(50px, 7.6vw, 132px); line-height: .9; letter-spacing: -.058em; font-weight: 500; }
/* Keep descenders inside the reveal mask without changing headline line spacing. */
.hero-title .split-line { padding-bottom: .22em; margin-bottom: -.22em; }
.hero-title .serif-i { font-weight: 400; letter-spacing: -.04em; color: var(--cobalt); }
.hero-sub { margin-top: clamp(24px, 3vw, 36px); max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin-top: auto; padding-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-stats > div { padding: 18px 18px 0 0; }
.hero-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; line-height: 1.35; }

/* Specimen viewer */
.specimen { grid-column: 8 / -1; position: relative; background: var(--black); color: #fff; border-radius: 6px; overflow: hidden; min-height: clamp(520px, 72vh, 760px); display: flex; flex-direction: column; isolation: isolate; }
.specimen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 46% at 50% 46%, rgba(27,79,209,.20), transparent 70%); }
.spec-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; color: var(--night-mute); position: relative; z-index: 2; }
.spec-top b { color: #fff; font-weight: 500; }
.spec-stage { position: relative; flex: 1; min-height: 300px; }
.spec-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 46%; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.spec-stage img.on { opacity: 1; transform: scale(1); }
.spec-cross { position: absolute; inset: 14% 12%; pointer-events: none; }
.spec-cross i { position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,.35); border-style: solid; }
.spec-cross i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.spec-cross i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.spec-cross i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.spec-cross i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.spec-readout { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 2; width: 128px; }
@media (max-width: 1240px) { .spec-readout { display: none !important; } }
.spec-readout div { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--night-mute); }
.spec-readout b { display: block; color: #fff; font-weight: 400; font-size: 11.5px; line-height: 1.35; margin-top: 3px; }
.spec-bottom { position: relative; z-index: 2; padding: 20px; border-top: 1px solid var(--night-line); display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: end; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.spec-name { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.spec-sub { margin-top: 8px; color: var(--night-mute); font-size: 14px; }
.spec-price { font-size: 26px; letter-spacing: -.03em; font-weight: 500; text-align: right; }
.spec-price small { display: block; font-family: var(--mono); font-size: 11px; color: var(--night-mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 400; margin-top: 4px; }
.spec-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.spec-actions .btn-primary { flex: 1; }
.spec-nav { display: flex; gap: 6px; }
.spec-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; color: #fff; transition: border-color .2s, background .2s; }
.spec-nav button:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.spec-nav svg { width: 16px; height: 16px; }
.spec-progress { grid-column: 1 / -1; display: flex; gap: 4px; }
.spec-progress button { flex: 1; height: 16px; position: relative; }
.spec-progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(255,255,255,.18); }
.spec-progress button::after { content: ""; position: absolute; left: 0; top: 7px; height: 2px; width: 0; background: #fff; }
.spec-progress button.done::after { width: 100%; }
.spec-progress button.on::after { animation: specfill var(--spec-dur, 5s) linear forwards; }
.specimen.paused .spec-progress button.on::after { animation-play-state: paused; }
@keyframes specfill { to { width: 100%; } }
@media (max-width: 1020px) {
  .hero-copy, .specimen { grid-column: 1 / -1; }
  .specimen { min-height: 560px; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(38px, 11.6vw, 64px); }
  .ribbon .r-mid .r-x { display: none; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats > div { padding-right: 10px; }
  .hero-stats > div + div { padding-left: 12px; }
  .specimen { min-height: 520px; }
  .spec-readout { display: none; }
  .spec-bottom { grid-template-columns: 1fr; }
  .spec-price { text-align: left; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-top: 1px solid #000; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-right: 1px solid var(--night-line); font-size: 14px; white-space: nowrap; transition: background .2s; }
.ticker a:hover { background: rgba(255,255,255,.06); }
.ticker .sym { font-family: var(--mono); font-size: 11px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.ticker .px { font-family: var(--mono); font-size: 12.5px; color: var(--night-mute); }
.ticker .st { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #7fd6ac; }
.ticker .st.out { color: rgba(255,255,255,.4); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

/* ---------- Periodic index ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; color: var(--ink-2); font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.ptable { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ptable.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .ptable { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .ptable, .ptable.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ptable, .ptable.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.tile { --c: var(--c-supplies); position: relative; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 1 / .94; min-height: 0; display: flex; flex-direction: column; padding: 16px; overflow: hidden; isolation: isolate; transition: background .45s var(--ease), color .45s var(--ease); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform-origin: left; transition: height .45s var(--ease); }
.tile-link { position: absolute; inset: 0; z-index: 3; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--mute); position: relative; z-index: 2; transition: color .45s; }
.tile-top b { color: var(--ink); font-weight: 500; font-size: 13px; transition: color .45s; }
.tile-sym { margin-top: auto; position: relative; z-index: 2; font-size: clamp(54px, 5.6vw, 88px); font-weight: 500; letter-spacing: -.06em; line-height: .8; color: var(--c); transition: color .45s, transform .6s var(--ease); transform-origin: left bottom; }
.tile-name { position: relative; z-index: 2; margin-top: 14px; font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.2; }
.tile-meta { position: relative; z-index: 2; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); display: flex; gap: 8px; align-items: center; transition: color .45s; }
.tile-meta .st { display: inline-flex; align-items: center; gap: 5px; }
.tile-meta .st .dot { width: 6px; height: 6px; color: var(--ok); }
.tile-meta .st.out .dot { color: var(--mute); }
.tile-img { position: absolute; z-index: 1; right: -6%; top: 6%; width: 74%; height: 86%; object-fit: contain; object-position: right center; opacity: 0; transform: translateX(14px) scale(.98); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.tile-add { position: absolute; z-index: 4; right: 12px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s var(--ease), background .2s; }
.tile-add svg { width: 16px; height: 16px; }
.tile-add:hover { background: var(--cobalt); }
.tile-add[disabled] { display: none; }
.tile.out .tile-sym { opacity: .38; }
.tile.out { background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(11,11,12,.035) 9px 10px); }
@media (any-hover: hover) {
  .tile:hover { background: var(--black); color: #fff; }
  .tile:hover .tile-top, .tile:hover .tile-meta { color: var(--night-mute); }
  .tile:hover .tile-top b { color: #fff; }
  .tile:hover .tile-sym { color: #fff; transform: scale(.82); }
  .tile:hover .tile-img { opacity: 1; transform: none; }
  .tile:hover .tile-add { opacity: 1; transform: none; }
  .tile:hover::after { height: 6px; }
  .tile.out:hover .tile-sym { opacity: .6; }
}
@media (hover: none) { .tile-add { opacity: 1; transform: none; width: 34px; height: 34px; right: 10px; bottom: 14px; } .tile-name, .tile-meta { padding-right: 40px; } }
@media (max-width: 640px) {
  .tile { padding: 12px; aspect-ratio: auto; min-height: 196px; }
  .tile-sym { font-size: 52px; }
  .tile-name { font-size: 14px; margin-top: 10px; padding-right: 30px; }
  .tile-meta { font-size: 10.5px; flex-direction: column; align-items: flex-start; gap: 3px; }
}
.c-metabolic { --c: var(--c-metabolic); }
.c-cellular { --c: var(--c-cellular); }
.c-endocrine { --c: var(--c-endocrine); }
.c-neuro { --c: var(--c-neuro); }
.c-melano { --c: var(--c-melano); }
.c-supplies { --c: var(--c-supplies); }
.ptable-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; color: var(--mute); font-size: 14px; }

/* ---------- Verification (home) ---------- */
.verify-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.verify-side { grid-column: 1 / span 5; }
.verify-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.verify-side h2 { font-size: clamp(40px, 5vw, 78px); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.verify-side p { margin-top: 24px; color: var(--night-mute); max-width: 44ch; font-size: 17px; }
.lookup { margin-top: 32px; display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px; max-width: 460px; transition: border-color .2s; }
.lookup:focus-within { border-color: #fff; }
.lookup input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; color: #fff; font-family: var(--mono); font-size: 14px; }
.lookup input::placeholder { color: rgba(255,255,255,.4); }
.verify-list { grid-column: 7 / -1; display: grid; gap: 16px; }
@media (max-width: 900px) { .verify-side, .verify-list { grid-column: 1 / -1; } .verify-sticky { position: static; } }

.slip { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; position: relative; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--cobalt)); border-radius: 4px 4px 0 0; }
.slip-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--mute); flex-wrap: wrap; }
.slip-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.slip-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.slip-name a:hover { color: var(--cobalt); }
.slip-purity { text-align: right; }
.slip-purity strong { display: block; font-size: clamp(44px, 4.6vw, 68px); font-weight: 500; letter-spacing: -.055em; line-height: .85; font-variant-numeric: tabular-nums; }
.slip-purity strong small { font-size: .45em; letter-spacing: -.02em; margin-left: 2px; }
.slip-purity span { display: block; margin-top: 8px; color: var(--mute); }
.slip dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.slip dl div { padding: 12px 12px 0 0; }
.slip dl div:nth-child(n+4) { border-top: 1px solid var(--line); margin-top: 12px; }
.slip dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.slip dd { margin-top: 3px; font-size: 14.5px; font-weight: 500; }
.slip-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.slip-foot .mono { color: var(--mute); }
.slip.dim { opacity: .3; }
.slip[hidden] { display: none; }
@media (max-width: 560px) { .slip { padding: 20px; grid-template-columns: 1fr; } .slip-purity { text-align: left; } .slip dl { grid-template-columns: 1fr 1fr; } .slip dl div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 10px; } }

/* ---------- Handling (helix) ---------- */
.helix-sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.helix-stage { grid-column: 1 / span 6; position: relative; aspect-ratio: 1 / 1.04; max-height: 640px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.helix-stage canvas { width: 100%; height: 100%; }
.helix-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; color: var(--mute); pointer-events: none; }
.helix-cap b { color: var(--ink); font-weight: 500; }
.helix-seq { position: absolute; left: 18px; top: 16px; right: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.helix-seq select { appearance: none; -webkit-appearance: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 32px 8px 14px; cursor: pointer; }
.helix-copy { grid-column: 8 / -1; }
.helix-copy h2 { font-size: clamp(36px, 4.4vw, 66px); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.helix-copy > p { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.spec-list { margin-top: 36px; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-list .n { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.spec-list strong { font-weight: 500; font-size: 18px; letter-spacing: -.015em; }
.spec-list p { color: var(--mute); font-size: 14.5px; margin-top: 4px; }
.spec-list .v { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }
@media (max-width: 900px) { .helix-stage, .helix-copy { grid-column: 1 / -1; } }

/* ---------- Protocol ---------- */
.protocol { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.protocol li { padding: 24px 24px 0 0; position: relative; }
.protocol li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.protocol .n { font-size: clamp(56px, 6vw, 96px); font-weight: 500; letter-spacing: -.06em; line-height: .85; color: var(--paper-3); transition: color .5s; }
.protocol li:hover .n { color: var(--cobalt); }
.protocol h3 { margin-top: 28px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.protocol p { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 32ch; }
.protocol .chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; background: transparent; }
.chip.off { color: var(--mute); border-style: dashed; }
@media (max-width: 900px) {
  .protocol { grid-template-columns: 1fr 1fr; }
  .protocol li:nth-child(3) { padding-left: 0; border-left: 0; }
  .protocol li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 560px) { .protocol { grid-template-columns: 1fr; } .protocol li, .protocol li + li { padding-left: 0; border-left: 0; } .protocol li + li { border-top: 1px solid var(--line); margin-top: 24px; } .protocol .n { font-size: 52px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--paper); }
.calc-in { grid-column: 1 / span 6; padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; align-content: start; }
.calc-out { grid-column: 7 / -1; background: var(--black); color: #fff; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; min-height: 420px; }
@media (max-width: 900px) { .calc-in, .calc-out { grid-column: 1 / -1; } .calc-out { min-height: 0; } }
.field { display: grid; gap: 8px; }
.field > span, .field > label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 500; }
.field > span small, .field > label small { font-family: var(--mono); font-size: 11px; color: var(--mute); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.input, .calc-input, .calc-select, .select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 4px;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; outline: 0;
}
.input:hover, .calc-input:hover, .calc-select:hover, .select:hover { border-color: rgba(11,11,12,.4); }
.input:focus, .calc-input:focus, .calc-select:focus, .select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(27,79,209,.16); }
select.calc-select, select.select, select.input { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; padding-right: 40px; cursor: pointer; }
.calc-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: #fff; }
.seg button, .seg label { height: 46px; display: grid; place-items: center; font-size: 14px; font-weight: 500; border-left: 1px solid var(--line); transition: background .2s, color .2s; cursor: pointer; }
.seg > :first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button.on, .seg label:has(input:checked) { background: var(--ink); color: #fff; }
.calc-big { font-size: clamp(64px, 8vw, 120px); font-weight: 500; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.calc-big small { font-size: .3em; letter-spacing: -.01em; color: var(--night-mute); margin-left: 6px; }
.calc-lbl { color: var(--night-mute); margin-bottom: 18px; }
.calc-sub { margin-top: 12px; color: var(--night-mute); font-size: 14px; }
.syringe { margin: 32px 0 8px; position: relative; height: 54px; }
.syr-body { position: absolute; left: 0; right: 40px; top: 10px; height: 34px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 4px 2px 2px 4px; overflow: hidden; }
.syr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(111,151,255,.6), var(--cobalt-night)); transition: width .7s var(--ease); }
.syr-ticks { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, transparent 1px 10%); }
.syr-ticks::after { content: ""; position: absolute; inset: 0 0 50% 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 2%); }
.syr-needle { position: absolute; right: 0; top: 25px; width: 40px; height: 2px; background: rgba(255,255,255,.55); }
.syr-needle::before { content: ""; position: absolute; left: 0; top: -9px; width: 8px; height: 20px; border: 1.5px solid rgba(255,255,255,.55); border-left: 0; border-radius: 0 3px 3px 0; }
.syr-scale { display: flex; justify-content: space-between; margin-right: 40px; font-family: var(--mono); font-size: 10.5px; color: var(--night-mute); }
.calc-grid { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--night-line); }
.calc-grid div { padding: 14px 14px 0 0; }
.calc-grid div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--night-line); }
.calc-grid div:nth-child(n+3) { border-top: 1px solid var(--night-line); margin-top: 14px; }
.calc-grid .k { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--night-mute); }
.calc-grid .v { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-warn { margin-top: 18px; padding: 12px 14px; border-radius: 4px; background: rgba(180, 83, 42, .18); border: 1px solid rgba(232, 140, 98, .45); color: #ffc6ad; font-size: 14px; }
.calc-hint { color: var(--night-mute); }
.fine { margin-top: 16px; color: var(--mute); font-size: 13px; max-width: 80ch; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq-aside { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
@media (max-width: 900px) { .faq-aside, .faq-list { grid-column: 1 / -1; } }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: grid; grid-template-columns: 40px 1fr 28px; gap: 12px; align-items: center; padding: 22px 0; cursor: pointer; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .n { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .02em; }
.qa summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: transform .35s var(--ease); }
.qa summary .pm::after { transform: rotate(90deg); }
.qa[open] summary .pm { background: var(--ink); color: #fff; border-color: var(--ink); }
.qa[open] summary .pm::after { transform: rotate(0); }
.qa summary:hover { color: var(--cobalt); }
.qa .a { padding: 0 40px 24px 52px; color: var(--ink-2); font-size: 16px; max-width: 72ch; }
.qa .a a { color: var(--cobalt); border-bottom: 1px solid; }
@media (max-width: 560px) { .qa summary { grid-template-columns: 30px 1fr 28px; } .qa .a { padding-left: 42px; padding-right: 0; } }

/* ---------- Closing band ---------- */
.closer { padding: clamp(80px, 12vw, 180px) 0; text-align: left; border-top: 1px solid var(--line); }
.closer a.big { display: inline-flex; align-items: center; gap: .18em; font-size: clamp(56px, 11vw, 188px); font-weight: 500; letter-spacing: -.065em; line-height: .86; transition: color .3s; }
.closer a.big svg { width: .55em; height: .55em; transition: transform .5s var(--ease); }
.closer a.big:hover { color: var(--cobalt); }
.closer a.big:hover svg { transform: translate(.08em, -.08em); }
.closer p { margin-top: 28px; color: var(--mute); max-width: 52ch; }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: #fff; padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.ftr-brand p { margin-top: 18px; color: var(--night-mute); max-width: 38ch; font-size: 14.5px; }
.ftr-brand a.mail { display: inline-block; margin-top: 18px; font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); }
.ftr-brand a.mail:hover { border-color: #fff; }
.ftr h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-mute); font-weight: 400; margin-bottom: 16px; }
.ftr-col a { display: block; padding: 5px 0; font-size: 15px; color: rgba(255,255,255,.86); transition: color .2s; }
.ftr-col a:hover { color: var(--cobalt-night); }
.ftr .logo-mark { background: #fff; color: var(--ink); }
.ftr .logo-word span { color: var(--night-mute); }
.ftr-word { font-size: min(18.6vw, 272px); font-weight: 600; letter-spacing: -.07em; line-height: .76; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); white-space: nowrap; user-select: none; margin: 0 0 -.06em -.04em; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--night-line); color: var(--night-mute); font-size: 12.5px; }
.ftr-bottom a:hover { color: #fff; }
.ftr-warn { border-top: 1px solid var(--night-line); padding: 22px 0; color: var(--night-mute); font-size: 13px; display: grid; grid-template-columns: 160px 1fr; gap: 20px; }
.ftr-warn b { color: #fff; font-weight: 500; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } .ftr-warn { grid-template-columns: 1fr; gap: 8px; } }
.ftr-min { padding-top: 0; }
.ftr-min .ftr-bottom { border-top: 0; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(11,11,12,.42); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; backdrop-filter: blur(2px); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(480px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .6s var(--ease-io), visibility .6s; visibility: hidden; }
.cart-drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 80px rgba(0,0,0,.12); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-header h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.cart-header h3 .mono { color: var(--mute); }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s; }
.cart-close:hover { background: var(--paper-2); }
.cart-close svg { width: 18px; height: 18px; }
.cart-ship { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cart-ship strong { color: var(--ink); font-weight: 600; }
.cart-ship-bar { margin-top: 10px; height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.cart-ship-bar span { display: block; height: 100%; background: var(--cobalt); border-radius: 4px; transition: width .6s var(--ease); }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item-media { width: 84px; height: 96px; background: var(--black); border-radius: 4px; overflow: hidden; position: relative; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-media .sym { position: absolute; left: 6px; top: 5px; font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,.6); }
.cart-item-name { font-weight: 500; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.cart-item-meta { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.qty-control { margin-top: 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 34px; }
.qty-control button { width: 34px; height: 32px; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); border-radius: 999px; }
.qty-control button:hover { color: var(--cobalt); }
.qty-control span { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 13px; }
.cart-item-right { text-align: right; }
.cart-item-price { font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.cart-item-remove { margin-top: 6px; font-size: 12.5px; color: var(--mute); border-bottom: 1px solid transparent; }
.cart-item-remove:hover { color: var(--warn); border-color: currentColor; }
.cart-empty { padding: 56px 8px; text-align: center; color: var(--mute); display: grid; justify-items: center; gap: 14px; }
.cart-empty .ring { width: 72px; height: 72px; border-radius: 50%; border: 1px dashed var(--line-2); display: grid; place-items: center; }
.cart-empty .ring svg { width: 26px; height: 26px; }
.cart-empty p { color: var(--ink); font-size: 18px; font-weight: 500; }
.cart-empty small { font-size: 14px; max-width: 30ch; }
.cart-footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.cart-subtotal .label { font-size: 15px; color: var(--ink-2); }
.cart-subtotal .val { font-size: 28px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cart-note { margin: 6px 0 16px; font-size: 13px; color: var(--mute); }
.cart-foot-links { margin-top: 12px; display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.cart-foot-links a:hover { color: var(--ink); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(0,0,0,.2); transition: opacity .35s, transform .45s var(--ease), visibility .35s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--cobalt); }

/* ---------- Search palette ---------- */
.pal { position: fixed; inset: 0; z-index: 110; display: none; }
.pal.open { display: block; }
.pal-bg { position: absolute; inset: 0; background: rgba(11,11,12,.5); backdrop-filter: blur(4px); animation: fadein .25s; }
.pal-box { position: relative; margin: min(14vh, 120px) auto 0; width: min(640px, calc(100% - 24px)); background: var(--paper); border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.35); overflow: hidden; animation: palin .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } }
@keyframes palin { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 18px; height: 18px; color: var(--mute); flex: none; }
.pal-in input { flex: 1; height: 62px; border: 0; outline: 0; background: transparent; font-size: 19px; letter-spacing: -.01em; }
.pal-in kbd { font-family: var(--mono); font-size: 11px; padding: 4px 7px; border-radius: 6px; background: var(--paper-2); color: var(--mute); }
.pal-list { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.pal-group { padding: 10px 10px 6px; color: var(--mute); }
.pal-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 6px; }
.pal-item.sel { background: var(--paper-2); }
.pal-item .sym { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; background: var(--c, var(--ink)); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.03em; }
.pal-item .sym.pg { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.pal-item .sym.pg svg { width: 16px; height: 16px; }
.pal-item strong { display: block; font-weight: 500; font-size: 15.5px; }
.pal-item small { display: block; color: var(--mute); font-size: 13px; margin-top: 1px; }
.pal-item .r { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-align: right; }
.pal-empty { padding: 36px 16px; text-align: center; color: var(--mute); }
.pal-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.pal-foot kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 5px; border-radius: 4px; background: var(--paper-2); margin-right: 4px; }
@media (max-width: 560px) { .pal-box { margin-top: 12px; } .pal-foot { display: none; } }

/* ---------- Research gate ---------- */
.lp-gate { position: fixed; inset: 0; z-index: 200; background: var(--night); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-y: auto; }
.lp-gate-art { position: relative; overflow: hidden; background: #000; }
.lp-gate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .92; }
.lp-gate-art .mono { position: absolute; left: 24px; bottom: 22px; color: var(--night-mute); }
.lp-gate-card { align-self: center; padding: clamp(28px, 5vw, 72px); max-width: 620px; }
.lp-gate-card .logo { margin-bottom: 44px; }
.lp-gate-card .logo-mark { background: #fff; color: var(--ink); }
.lp-gate-card .logo-word span { color: var(--night-mute); }
.lp-gate-card h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: .95; letter-spacing: -.045em; font-weight: 500; }
.lp-gate-lead { margin-top: 18px; color: var(--night-mute); font-size: 16.5px; max-width: 46ch; }
.lp-gate-options { margin: 32px 0 26px; display: grid; gap: 10px; }
.lp-gate-check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--night-line); border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.88); transition: border-color .2s, background .2s; }
.lp-gate-check:hover { border-color: rgba(255,255,255,.3); }
.lp-gate-check:has(input:checked) { border-color: var(--cobalt-night); background: rgba(111,151,255,.08); }
.lp-gate-check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.45); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lp-gate-check input:checked { background: var(--cobalt); border-color: var(--cobalt); }
.lp-gate-check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.lp-gate-error { margin-top: 12px; min-height: 1.4em; color: #ffb59a; font-size: 14px; }
.lp-gate-fine { margin-top: 28px; color: rgba(255,255,255,.38); font-size: 12.5px; }
@media (max-width: 860px) { .lp-gate { grid-template-columns: minmax(0, 1fr); align-content: start; } .lp-gate-art { height: 30vh; min-height: 200px; } .lp-gate-art img { object-fit: contain; } .lp-gate-art .mono { display: none; } .lp-gate-card { padding-top: 28px; } .lp-gate-card .logo { margin-bottom: 28px; } }

/* ---------- Page head (inner pages) ---------- */
.phead { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.phead-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--mute); margin-bottom: clamp(20px, 3vw, 36px); }
.phead-meta a:hover { color: var(--ink); }
.phead-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.phead h1 { grid-column: 1 / span 8; font-size: clamp(48px, 7.4vw, 124px); line-height: .9; letter-spacing: -.058em; font-weight: 500; }
.phead h1 .serif-i { color: var(--cobalt); }
.phead p { grid-column: 9 / -1; color: var(--ink-2); font-size: 16.5px; max-width: 42ch; }
@media (max-width: 900px) { .phead h1, .phead p { grid-column: 1 / -1; } }

/* ---------- Shop / Index page ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(241,240,236,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
.toolbar .tcount { color: var(--mute); margin-right: auto; }
.toolbar .tcount b { color: var(--ink); font-weight: 500; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; min-width: 0; padding: 2px; margin: -2px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cat i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cat em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.cat:hover { border-color: var(--ink); }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat.on em { color: rgba(255,255,255,.6); }
.tools { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.tsearch { position: relative; }
.tsearch svg { position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--mute); pointer-events: none; }
.tsearch input { height: 38px; width: 200px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding: 0 14px 0 36px; font-size: 14px; outline: 0; transition: border-color .2s, width .3s var(--ease); }
.tsearch input:focus { border-color: var(--cobalt); width: 240px; }
.tselect { height: 38px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 34px 0 14px; font-size: 14px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; cursor: pointer; outline: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.toggle input { appearance: none; -webkit-appearance: none; width: 30px; height: 18px; border-radius: 999px; background: var(--paper-3); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(12px); }
.views { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.views button { width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--mute); }
.views button svg { width: 15px; height: 15px; }
.views button.on { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .toolbar .tcount { display: none; }
  .tools { flex-wrap: wrap; }
  .tools .tsearch { flex: 1 1 100%; }
  .tools .tselect { flex: 1; max-width: none; }
  .tools .tsearch input, .tools .tsearch input:focus { width: 100%; }
}
@media (max-width: 560px) { .toggle span { display: none; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 16px; color: var(--mute); }
.results-bar b { color: var(--ink); font-weight: 500; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; }
.empty-state h3 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.empty-state p { margin: 10px 0 22px; color: var(--mute); }

/* List view */
.plist { border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: 56px 92px minmax(0, 2.2fr) minmax(0, 1.6fr) 120px 110px 132px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .25s; }
.prow:hover { background: rgba(255,255,255,.45); }
.prow .ix { font-family: var(--mono); font-size: 12px; color: var(--mute); padding-left: 4px; }
.prow-media { width: 92px; height: 92px; background: var(--black); border-radius: 4px; overflow: hidden; position: relative; }
.prow-media img { width: 100%; height: 100%; object-fit: contain; }
.prow-media .sym { position: absolute; left: 6px; top: 5px; font-weight: 600; font-size: 12px; color: var(--c); background: rgba(255,255,255,.92); border-radius: 3px; padding: 1px 5px; letter-spacing: -.02em; }
.prow-name a { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.prow-name a:hover { color: var(--cobalt); }
.prow-name p { margin-top: 4px; color: var(--mute); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-name .cat-tag { display: flex; width: max-content; align-items: center; gap: 6px; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.prow-name .cat-tag i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; background: transparent; transition: background .2s, color .2s, border-color .2s; }
.size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.so { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(11,11,12,.35); }
.size.on.so { color: rgba(255,255,255,.7); }
.size.static { cursor: default; }
.prow .stock { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.prow .stock.out { color: var(--mute); }
.prow .stock .dot { width: 6px; height: 6px; }
.prow .price { font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prow .price small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--mute); font-weight: 400; letter-spacing: .02em; }
@media (max-width: 1100px) {
  .prow { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "m n p" "m s a"; gap: 10px 16px; }
  .prow .ix, .prow .stock-cell { display: none; }
  .prow-media { grid-area: m; width: 80px; height: 96px; }
  .prow-name { grid-area: n; }
  .prow .sizes { grid-area: s; }
  .prow .price { grid-area: p; text-align: right; }
  .prow .act { grid-area: a; justify-self: end; }
}

/* ---------- Product dossier ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mute); padding: 22px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.dossier { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(56px, 7vw, 96px); }
.d-media { grid-column: 1 / span 6; }
.d-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.d-plate { position: relative; background: var(--black); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 4.4; color: #fff; isolation: isolate; }
.d-plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 45% at 50% 50%, rgba(27,79,209,.18), transparent 70%); }
.d-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s; }
.d-plate img.swap { opacity: 0; }
.d-plate-top { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; color: var(--night-mute); }
.d-plate-sym { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; gap: 12px; }
.d-plate-sym b { width: 64px; height: 64px; border-radius: 4px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 600; letter-spacing: -.05em; }
.d-plate-sym span { color: var(--night-mute); line-height: 1.5; }
.badge-verified { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.badge-verified svg { width: 13px; height: 13px; color: #7fd6ac; }
.d-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.d-thumbs button { width: 78px; height: 78px; border-radius: 4px; background: var(--black); overflow: hidden; border: 2px solid transparent; position: relative; transition: border-color .2s; }
.d-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.d-thumbs button span { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,.75); }
.d-thumbs button.on { border-color: var(--cobalt); }
.d-info { grid-column: 7 / -1; padding-left: clamp(0px, 2vw, 32px); }
@media (max-width: 960px) { .d-media, .d-info { grid-column: 1 / -1; } .d-sticky { position: static; } .d-info { padding-left: 0; } }
.d-cat { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.d-cat i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.d-title { margin-top: 16px; font-size: clamp(44px, 5.6vw, 88px); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.d-short { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 48ch; }
.d-buybox { margin-top: 30px; border-top: 1px solid var(--ink); }
.d-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.d-price { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.d-price small { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .02em; font-weight: 400; margin-left: 10px; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ok); font-style: normal; }
.stock-line.out { color: var(--warn); }
.stock-line .dot { width: 7px; height: 7px; }
.d-opt { padding: 20px 0; border-bottom: 1px solid var(--line); }
.d-opt-label { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 12px; }
.d-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.d-size { position: relative; padding: 14px 14px 12px; border-radius: 4px; border: 1px solid var(--line-2); text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; background: #fff; }
.d-size strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.d-size small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.d-size:hover { border-color: var(--ink); }
.d-size.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.d-size.so strong { color: var(--mute); }
.d-size.so::after { content: "Restocking"; position: absolute; right: 8px; top: 8px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); }
.d-size.static { cursor: default; }
.d-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 20px 0 14px; }
.qty-lg { margin: 0; height: 56px; }
.qty-lg button { width: 46px; height: 54px; font-size: 18px; }
.qty-lg span { min-width: 30px; font-size: 15px; }
.d-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.d-assure div { background: var(--paper); padding: 14px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.d-assure b { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; font-weight: 400; margin-bottom: 4px; }
@media (max-width: 560px) { .d-assure { grid-template-columns: 1fr; } }
.d-disc { margin-top: 14px; font-size: 13px; color: var(--mute); }
.d-sec { margin-top: clamp(40px, 5vw, 64px); }
.d-sec-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.d-sec-h .n { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.d-sec-h h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.d-sec > p { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 62ch; }
.d-sec > p a { color: var(--cobalt); border-bottom: 1px solid; }
.spec-table { display: grid; }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding-top: 2px; }
.spec-row dd { font-size: 15.5px; font-weight: 500; word-break: break-word; }
.spec-row dd.seq { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: .06em; }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }
.coa-panel { margin-top: 18px; background: var(--black); color: #fff; border-radius: 6px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.coa-panel .p strong { display: block; font-size: 64px; font-weight: 500; letter-spacing: -.06em; line-height: .85; }
.coa-panel .p strong small { font-size: .42em; }
.coa-panel .p span { display: block; margin-top: 8px; color: var(--night-mute); }
.coa-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.coa-panel dt { font-family: var(--mono); font-size: 10.5px; color: var(--night-mute); text-transform: uppercase; letter-spacing: .05em; }
.coa-panel dd { margin-top: 2px; font-size: 14.5px; font-weight: 500; }
.coa-panel .acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--night-line); }
.coa-panel .acts .mono { color: var(--night-mute); }
@media (max-width: 640px) { .coa-panel { grid-template-columns: 1fr; } .coa-panel dl { grid-template-columns: 1fr 1fr; } }
.coa-none { margin-top: 18px; padding: 20px; border: 1px dashed var(--line-2); border-radius: 6px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.coa-none p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.related { border-top: 1px solid var(--line); }
.pdp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .5s var(--ease); }
.pdp-sticky { visibility: hidden; }
.pdp-sticky.show { transform: none; visibility: visible; }
.pdp-sticky strong { display: block; font-size: 15px; font-weight: 500; }
.pdp-sticky span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--night-mute); }
@media (min-width: 961px) { .pdp-sticky { left: auto; right: 24px; bottom: 24px; width: 420px; } }

/* ---------- Verification page ---------- */
.v-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.v-stats div { padding: 26px 20px 26px 0; }
.v-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.v-stats strong { display: block; font-size: clamp(30px, 3.4vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.v-stats span { display: block; margin-top: 10px; color: var(--mute); }
@media (max-width: 760px) { .v-stats { grid-template-columns: 1fr 1fr; } .v-stats div:nth-child(3) { padding-left: 0; border-left: 0; } .v-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.v-search { display: flex; align-items: center; gap: 12px; padding: 24px 0; flex-wrap: wrap; }
.v-search .tsearch { flex: 1; max-width: 520px; }
.v-search .tsearch input { width: 100%; height: 48px; font-size: 15px; }
.v-search .tsearch input:focus { width: 100%; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.v-grid .slip { border: 1px solid var(--line); }
.v-grid .slip-name { font-size: 24px; white-space: nowrap; }
.v-grid .slip-purity strong { font-size: clamp(40px, 3.6vw, 54px); }
@media (max-width: 480px) { .v-grid { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.two > :first-child { grid-column: 1 / span 5; }
.two > :last-child { grid-column: 7 / -1; }
@media (max-width: 900px) { .two > :first-child, .two > :last-child { grid-column: 1 / -1; } }
.h2 { font-size: clamp(32px, 3.8vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }

/* ---------- Prose / support ---------- */
.support { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 128px); }
.snav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 2px; }
.snav .mono { color: var(--mute); margin-bottom: 10px; }
.snav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, padding .3s var(--ease); }
.snav a:hover { color: var(--ink); padding-left: 4px; }
.snav a.active { color: var(--cobalt); }
.snav a.active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
@media (max-width: 860px) {
  .support { grid-template-columns: 1fr; }
  .snav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .snav .mono { display: none; }
  .snav a { flex: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
  .snav a:hover { padding-left: 14px; }
  .snav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .snav a.active::after { display: none; }
}
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose a { color: var(--cobalt); border-bottom: 1px solid; }
.prose ul:not(.ticks):not(.xs) { padding-left: 0; display: grid; gap: 10px; }
.prose ul:not(.ticks):not(.xs) li { position: relative; padding-left: 22px; }
.prose ul:not(.ticks):not(.xs) li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--ink); }
.ticks, .xs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li, .xs li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ticks li::before, .xs li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4fd1' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }
.xs li::before { background: #f3e1d8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4532a' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 9px no-repeat; }
.callout { padding: 20px 22px; border-left: 3px solid var(--cobalt); background: #fff; border-radius: 0 4px 4px 0; }
.callout strong { display: block; font-weight: 600; margin-bottom: 4px; }
.callout p { font-size: 15px; }
.kv { border-top: 1px solid var(--ink); }
.kv div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding-top: 2px; }
.kv b { font-weight: 500; }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; gap: 4px; } }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stats3 div { background: var(--paper); padding: 22px; }
.stats3 strong { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.stats3 span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); }
@media (max-width: 560px) { .stats3 { grid-template-columns: 1fr; } }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .cols2 { grid-template-columns: 1fr; } }
.mail-card { display: grid; gap: 6px; padding: 28px; border-radius: 6px; background: var(--ink); color: #fff; transition: background .3s; border-bottom: 0 !important; }
.prose a.mail-card { color: #fff; }
.mail-card:hover { background: var(--cobalt); }
.mail-card .mono { color: var(--night-mute); }
.mail-card strong { font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.mail-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; }
.mail-card .go svg { width: 16px; height: 16px; }

/* ---------- Checkout ---------- */
.co { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 112px); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.co-steps { display: flex; gap: 0; margin-bottom: 32px; border-top: 1px solid var(--line); }
.co-steps li { flex: 1; padding-top: 12px; border-top: 2px solid transparent; margin-top: -1px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.co-steps li span { display: block; font-size: 10.5px; margin-bottom: 2px; }
.co-steps li.done { border-color: var(--ink); color: var(--ink); }
.co-steps li.current { border-color: var(--cobalt); color: var(--cobalt); }
.co h1, .co .co-title { font-size: clamp(38px, 4.4vw, 64px); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.co-sub { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.checkout-form { margin-top: 32px; }
.checkout-form.compact { margin-top: 24px; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-field { display: grid; gap: 7px; }
.checkout-field > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.checkout-field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .checkout-fields { grid-template-columns: 1fr; } }
.co-legend { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-legend .mono { color: var(--mute); }
.co-legend h2 { font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.co-group + .co-group { margin-top: 32px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check-ack { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 26px 0 22px; padding: 16px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check-ack input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cobalt); }
.checkout-error { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: #fbe9e1; color: #8a3a19; font-size: 14px; }
.checkout-error:empty { display: none; }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: 6px; position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; }
/* Mobile summaries must scroll normally so they cannot cover the checkout form. */
@media (max-width: 960px) { .checkout-layout { grid-template-columns: 1fr; } [data-manual-checkout] .checkout-summary { order: -1; } .checkout-summary { position: static; } }
/* Mobile summaries must scroll normally so they cannot cover the checkout form. */
.summary-block { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.summary-block h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.checkout-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checkout-line:last-child { border-bottom: 0; }
.checkout-line strong { display: block; font-weight: 500; font-size: 15px; }
.checkout-line span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.checkout-line b { font-weight: 500; font-variant-numeric: tabular-nums; }
.discount-code-row { display: flex; gap: 8px; }
.discount-code-row .calc-input { height: 46px; font-family: var(--mono); text-transform: uppercase; font-size: 14px; }
.discount-code-row .btn { --bh: 46px; border-radius: 4px; }
.discount-code-message { margin-top: 8px; font-size: 13.5px; }
.discount-code-message:empty { display: none; }
.discount-code-message.error { color: #a43d14; }
.discount-code-message.success { color: var(--ok); }
.payment-methods { display: grid; gap: 8px; }
.payment-method { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 4px; text-align: left; background: #fff; transition: border-color .2s, box-shadow .2s; }
.payment-method:hover:not(.disabled) { border-color: var(--ink); }
.payment-method.active { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.payment-method.disabled { opacity: .5; cursor: not-allowed; background: var(--paper); }
.payment-method strong { display: block; font-weight: 500; font-size: 15px; }
.payment-method small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.35; margin-top: 1px; }
.payment-method em { font-style: normal; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.payment-method.active em { color: var(--cobalt); }
.payment-icon { width: 52px; height: 36px; display: grid; place-items: center; }
.payment-logo { display: grid; place-items: center; width: 52px; height: 36px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: -.01em; color: #fff; background: var(--ink); }
.payment-logo-venmo { background: #008cff; }
.payment-logo-paypal { background: #003087; }
.payment-logo-zelle { background: #6d1ed4; }
.payment-logo-cashapp { background: #00d632; font-size: 16px; }
.payment-logo-card { background: #3a3a3e; }
.payment-logo-crypto { background: #f7931a; }
.payment-logo-generic { background: var(--paper-3); color: var(--ink); }
.checkout-totals { padding: 18px 24px; display: grid; gap: 8px; }
.checkout-totals div { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.checkout-totals b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.checkout-totals .total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--ink); align-items: baseline; }
.checkout-totals .total span { font-weight: 500; }
.checkout-totals .total b { font-size: 30px; letter-spacing: -.035em; }
.checkout-note { padding: 0 24px 22px; font-size: 13px; color: var(--mute); }
.payment-instruction-card .checkout-note, .d-info .checkout-note { padding: 0; margin-top: 14px; }
.checkout-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: 6px; }
.checkout-empty h1 { font-size: clamp(36px, 4vw, 56px); }
.checkout-empty p { margin: 12px 0 24px; color: var(--mute); }
.payment-instruction-card { margin-top: 28px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; padding: 6px 22px 22px; }
.instruction-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.instruction-row span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.instruction-row strong { font-weight: 500; font-size: 17px; word-break: break-all; font-variant-numeric: tabular-nums; }
.copy-btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; }
.copy-btn:hover { border-color: var(--ink); }
@media (max-width: 560px) { .instruction-row { grid-template-columns: 1fr auto; } .instruction-row span { grid-column: 1 / -1; } }
.payment-copy { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.payment-action { margin-top: 16px; }
.payment-action:empty { display: none; }
.zelle-qr-card { text-align: center; }
.zelle-qr-card img { margin: 0 auto; max-width: 240px; height: auto; }
.zelle-qr-card figcaption { margin-top: 8px; font-size: 14px; color: var(--mute); }
.zelle-confirmation-fields { border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin: 0 0 16px; }
.zelle-confirmation-fields legend { font-weight: 500; padding: 0 6px; }
.order-meta { display: grid; gap: 8px; }
.order-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.order-meta span { color: var(--mute); }
.order-meta b { font-weight: 500; word-break: break-all; text-align: right; }
.payment-verified { padding: 40px 0; }
.payment-verified h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.payment-verified p { margin: 14px 0 24px; color: var(--ink-2); max-width: 52ch; }
.status { min-height: 70vh; display: grid; place-items: center; padding: 64px 0; }
.status-card { max-width: 640px; }
.status-card .co-steps { margin-bottom: 40px; }
.status-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; margin-bottom: 28px; }
.status-mark.warn { background: var(--paper-3); color: var(--ink); }
.status-mark svg { width: 30px; height: 30px; }
.status-card h1 { font-size: clamp(44px, 6vw, 88px); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.status-card p { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.status-card .fine { font-size: 13px; color: var(--mute); }
.status-actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Fallback molecule art (core moleculeSVG) */
.mol { width: 70%; height: 70%; margin: 15%; }
.protocol.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .protocol.three { grid-template-columns: 1fr; } .protocol.three li, .protocol.three li + li { padding-left: 0; border-left: 0; } .protocol.three li + li { border-top: 1px solid var(--line); margin-top: 24px; } }
.prose .faq-list { border-top: 1px solid var(--ink); }
.checkout-field small { font-weight: 400; }

.coil-key { position: absolute; left: 18px; right: 18px; bottom: 44px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); font-size: 10.5px; pointer-events: none; }
.coil-key span { display: inline-flex; align-items: center; gap: 6px; }
.coil-key span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
@media (max-width: 560px) { .coil-key { display: none; } }
.nf { min-height: 64vh; display: grid; align-content: center; padding: 64px 0; }
.nf .code { font-size: clamp(120px, 24vw, 340px); font-weight: 500; letter-spacing: -.07em; line-height: .8; color: var(--paper-3); }
.nf h1 { margin-top: 24px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.nf p { margin-top: 14px; color: var(--ink-2); max-width: 48ch; }
.nf .status-actions { margin-top: 28px; }
@media (max-width: 560px) {
  .payment-method { grid-template-columns: 44px 1fr; }
  .payment-method em { grid-column: 2; }
  .payment-icon, .payment-logo { width: 44px; }
}


/* Desktop keyboard access and responsive input/overlay improvements. */
.tile:focus-within { background: var(--black); color: #fff; }
.tile:focus-within .tile-top, .tile:focus-within .tile-meta { color: var(--night-mute); }
.tile:focus-within .tile-top b, .tile:focus-within .tile-sym { color: #fff; }
.tile:focus-within .tile-img, .tile:focus-within .tile-add { opacity: 1; transform: none; }
.tile:focus-within { outline: 2px solid var(--cobalt); outline-offset: -2px; }
.tile-add { width: 44px; height: 44px; }
.cart-header, .cart-footer, .cart-ship { flex-shrink: 0; }
.cart-items { min-height: 0; }
.cart-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.menu { overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.menu-top { flex-shrink: 0; }
.pal-box { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.pal-in, .pal-foot { flex-shrink: 0; }
.pal-in input, .pal-item > span { min-width: 0; }
.pal-list { min-height: 0; overscroll-behavior: contain; }
.pal-item strong, .pal-item small { overflow-wrap: anywhere; }
@media (pointer: coarse), (max-width: 640px) {
  .search-btn, .icon-btn, .cart-close, .spec-nav button, .views button { min-width: 44px; min-height: 44px; }
  .cat, .tselect, .toggle, .size, .seg button, .d-thumbs button { min-height: 44px; }
  .qty-control { height: 44px; }
  .qty-control button { width: 44px; height: 42px; }
  .tile-add { opacity: 1; transform: none; width: 44px; height: 44px; }
  .input, .calc-input, .calc-select, .select, .tsearch input, .tselect { font-size: 16px; }
  .tsearch input { min-height: 44px; }
}
/* Keep the photo-first layout on touch-only phones; mouse users retain hover previews at every width. */
@media (max-width: 640px) and (hover: none) and (any-hover: none) {
  .tile { min-height: 300px; }
  .tile-img { position: relative; right: auto; top: auto; width: 100%; height: 120px; margin: 12px 0 0; object-position: center; background: var(--black); border-radius: 3px; opacity: 1; transform: none; flex: none; }
  .tile-sym { position: absolute; left: 20px; top: 52px; margin: 0; font-size: 24px; color: #fff; }
  .tile-name { padding-right: 0; overflow-wrap: anywhere; }
  .tile-meta { padding-right: 0; padding-bottom: 44px; }
  .tile-add { bottom: 12px; }
  .tile:focus-within .tile-sym { transform: none; }
}
@media (max-width: 640px) {
  .pdp-sticky { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .hdr-actions { gap: 5px; }
  .prow { grid-template-columns: 68px minmax(0, 1fr); grid-template-areas: "m n" "m s" "p a"; gap: 12px; padding: 20px 0; }
  .prow-media { width: 68px; height: 88px; }
  .prow-name a { font-size: 18px; overflow-wrap: anywhere; }
  .prow .price { grid-column: 1 / -1; padding-right: 100px; text-align: left; font-size: 19px; }
  .prow .act { align-self: end; }
  .prow .act .btn { min-height: 44px; min-width: 84px; }
  .pal-in input { font-size: 16px; }
  .pal-item { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .pal-item .sym { width: 32px; height: 32px; }
  .cart-header, .cart-footer { padding-left: 16px; padding-right: 16px; }
  .cart-items { padding-left: 16px; padding-right: 16px; }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
  .cart-item-media { width: 60px; height: 80px; }
  .cart-item-name { font-size: 15px; overflow-wrap: anywhere; }
  .cart-item-remove { min-height: 44px; }
}
@media (max-height: 540px) and (max-width: 1020px) {
  .menu nav { margin-top: 14px; }
  .menu nav a { font-size: 26px; padding: 10px 0; }
  .menu-foot { padding-top: 20px; }
  .lp-gate-art { display: none; }
  .lp-gate-card { align-self: start; }
}

@media (max-width: 380px) {
  .hdr .wrap { gap: 8px; }
  .hdr .logo { gap: 7px; }
  .hdr .logo-mark { width: 26px; height: 26px; }
  .hdr .logo-word b { font-size: 13px; letter-spacing: .08em; }
  .hdr .logo-word span { font-size: 8px; letter-spacing: .04em; }
  .hdr .cart-btn { padding: 0 6px; gap: 4px; min-height: 44px; }
  .hdr .cart-count { min-width: 18px; height: 22px; padding: 0 4px; font-size: 11px; }
}

.resource-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.resource-link { display: block; padding: 24px; border: 1px solid var(--line); }
.resource-link h3 { margin: 12px 0; }
.resource-link p { color: var(--mute); line-height: 1.6; }
.resource-link:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }

@media (min-width: 1021px) {
  .hero-copy { padding-top: 20px; }
  .hero-title { font-size: clamp(64px, 6.6vw, 112px); margin-top: clamp(24px, 3vw, 44px); }
  .hero-stats { padding-top: 32px; }
}

/* Calculator workspace: shared bone / ink / cobalt tokens. */
.calculator-page .phead { padding-top: 36px; padding-bottom: 30px; }
.calculator-page .sec-tight { padding-top: 28px; }
.calculator-page h1 { font-size: clamp(38px, 4.8vw, 68px); letter-spacing: -.055em; line-height: 1.05; }
.calculator-intro { margin-top: 16px; color: var(--mute); font-size: 17px; max-width: 760px; }
.calculator-page .calc-in { gap: 22px; padding: 28px; }
.calculator-page .calc-in h2, .calc-reference h2 { font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
.calc-quantity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-quantity-row .field { align-content: start; }
.calc-amount-row { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 0; }
.calc-amount-row .input { border-radius: 4px 0 0 4px; }
.calc-amount-row .seg { border-radius: 0 4px 4px 0; border-left: 0; }
.calc-amount-row .seg button { height: 50px; }
.calc-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.calc-quick button { min-height: 36px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; background: #fff; }
.calculator-page .seg button.on, .calc-quick button.on { background: var(--cobalt); color: #fff; }
.calculator-page button:focus-visible { outline: 3px solid var(--cobalt-night); outline-offset: 3px; }
.calculator-page [aria-invalid="true"] { border-color: var(--warn); }
.calc-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.calc-actions span { font-size: 12px; color: var(--mute); }
.calc-reset { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 14px; }
.calculator-page .calc-out { padding: 32px; }
.calculator-page .calc-big { font-size: clamp(46px, 4.8vw, 72px); line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.calculator-page .calc-big small { font-size: .65em; color: #fff; }
.calculator-page .calc-lbl { margin-bottom: 8px; font-size: 12px; }
.calc-unit-result { color: var(--cobalt-night); margin: 8px 0 0; font-size: 18px; }
.calc-unit-result strong { font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; overflow-wrap: anywhere; }
.calc-unit-result strong { margin-right: 6px; }
.calc-ruler { margin: 32px 0 26px; }
.calc-ruler-track { height: 20px; position: relative; background: repeating-linear-gradient(90deg,rgba(255,255,255,.6) 0 1px,transparent 1px 2%); border-left: 1px solid #fff; border-right: 1px solid #fff; }
.calc-ruler-track span { position: absolute; left: 0; top: 0; height: 10px; background: var(--cobalt); border-radius: 0 2px 2px 0; }
.calc-ruler-labels { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--mono); color: #ccc; }
.calculator-page .calc-grid { padding-top: 6px; margin-top: 0; }
.calculator-page .calc-grid .v { font-size: 23px; overflow-wrap: anywhere; }
.calculator-page .calc-grid .k { font-size: 11px; }
.calc-copy { margin-top: 28px; width: 100%; min-height: 48px; padding: 10px; border: 1px solid #ccc; border-radius: 4px; color: #fff; font-size: 15px; }
.calc-copy:hover:enabled { background: #202020; }
.calc-copy:disabled { opacity: .35; cursor: default; }
.calc-copy-status { font-size: 12px; margin-top: 7px; min-height: 17px; color: var(--night-mute); }
.calc-copy-fallback { height: 150px; margin-top: 8px; padding: 12px; font-size: 13px; }
.calc-basis { font-size: 13px; color: var(--ink-2); background: var(--cobalt-soft); padding: 12px; border-left: 2px solid var(--cobalt); }
.calc-empty { font-size: 32px; margin: 30px 0 18px; }
.calc-reference { border: 1px solid var(--line-2); border-radius: 6px; padding: 24px 28px 18px; margin: 20px 0; }
.calc-reference-head { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.calc-reference-head p { color: var(--mute); font-size: 13px; }
.calc-table-wrap { overflow-x: auto; }
.calc-reference table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc-reference th, .calc-reference td { padding: 12px; border-top: 1px solid var(--line); width: 33.333%; font-weight: 400; }
.calc-reference thead { font: 11px var(--mono); color: var(--mute); text-transform: uppercase; }
.calc-reference .current { background: rgba(27,79,209,.055); }
.calc-reference small { display: block; font-size: 11px; color: var(--mute); margin-top: 3px; }
.calc-reference .fine { margin-top: 14px; }
@media(max-width:900px) {
  .calculator-page .calc-in, .calculator-page .calc-out { padding: 24px; }
}
@media(max-width:500px) {
  .calculator-page .phead { padding-top: 26px; }
  .calculator-page .calc-in, .calculator-page .calc-out { padding: 20px; }
  .calc-quantity-row { gap: 12px; }
  .calc-quantity-row label { flex-wrap: wrap; gap: 4px; }
  .calc-amount-row { grid-template-columns: minmax(0,1fr) 126px; }
  .calc-quick { grid-template-columns: repeat(2,1fr); }
  .calc-reference { padding: 20px 12px 14px; }
  .calc-reference-head { display: block; padding: 0 4px; }
  .calc-reference-head p { margin-top: 8px; }
  .calc-reference th, .calc-reference td { padding: 10px 5px; }
  .calculator-page .calc-grid .v { font-size: 21px; }
}
