@font-face{font-family:'Geist Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations'),url(fonts/geist-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations'),url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist Mono Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations'),url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Mono Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations'),url(fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* AminoStudy design tokens — owned by the orchestrator. Builders: extend, do not rename. */
@property --mx   { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --my   { syntax: '<percentage>'; inherits: true; initial-value: 24%; }
@property --spec { syntax: '<number>';     inherits: true; initial-value: 0; }
:root {
  /* surface + ink */
  --paper: #EEF2FA; --paper-2: #E3E9F6; --paper-hi: #F8FAFF;
  --ink: #0A1630; --ink-2: #2A3752; --ink-3: #57647E; --ink-4: #8590A6; --line: #D7DEEB;
  /* brand */
  --brand: #2447D8; --brand-2: #1B36A8; --brand-3: #4D6BEE; --brand-ink: #16308F;
  --aqua: #4FD1D9; --aqua-ink: #0E6A74; --violet: #8B6CF0;
  --ok: #0F7A55; --warn: #B4610A; --bad: #B3261E;
  --ok-bg: #DDF3E8; --warn-bg: #FCEBD2; --bad-bg: #FADCD9; --info-bg: #DFE7FB;
  /* category hue (set per page on <body data-cat>) drives aurora + accents */
  --cat-h: 262; --cat: oklch(0.56 0.19 var(--cat-h)); --cat-soft: oklch(0.90 0.06 var(--cat-h)); --cat-glow: oklch(0.80 0.13 var(--cat-h) / .55);
  /* rim light for glass edges */
  --rim-a: oklch(0.83 0.12 205 / .9); --rim-b: oklch(0.72 0.16 300 / .55);
  /* type */
  --font: 'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* shape */
  --r-ctl: 10px; --r-card: 18px; --r-lg: 26px; --r-xl: 32px; --pill: 999px;
  --gutter: clamp(16px, 4vw, 40px); --max: 1200px; --nav-h: 64px; --sec-pad: clamp(72px, 10vw, 120px);
  /* depth */
  --ring: 0 0 0 1px rgb(10 22 48 / .07);
  --drop: 0 1px 2px rgb(10 22 48 / .05), 0 18px 40px -20px rgb(10 22 48 / .24);
  --drop-lg: 0 2px 4px rgb(10 22 48 / .04), 0 30px 60px -28px rgb(10 22 48 / .34);
  /* motion */
  --ease: cubic-bezier(.23, 1, .32, 1); --expo: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); --inout: cubic-bezier(.77, 0, .175, 1);
}
body[data-cat="Metabolic & Weight"]        { --cat-h: 205; }
body[data-cat="Healing & Recovery"]        { --cat-h: 162; }
body[data-cat="Growth Hormone Axis"]       { --cat-h: 262; }
body[data-cat="Cognitive & Mood"]          { --cat-h: 292; }
body[data-cat="Longevity & Mitochondrial"] { --cat-h: 232; }
body[data-cat="Sexual Health & Hormonal"]  { --cat-h: 350; }
body[data-cat="Skin, Hair & Tanning"]      { --cat-h: 48; }
body[data-cat="Immune & Inflammation"]     { --cat-h: 182; }
body[data-cat="Vitamins & Support"]        { --cat-h: 128; }
body[data-cat="Prescription & Oral"]       { --cat-h: 20; }

/* Glass surface: translucent fill + blur, inset highlights, a rim-light gradient edge, and a specular
   highlight that follows the pointer (JS sets --mx/--my/--spec on pointermove). */
.glass {
  position: relative; isolation: isolate; border-radius: var(--r-card);
  background: linear-gradient(rgb(255 255 255 / .76), rgb(255 255 255 / .5));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .5), var(--ring), var(--drop);
  transition: --mx .55s var(--ease), --my .55s var(--ease), --spec .45s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease);
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgb(255 255 255 / .85), rgb(255 255 255 / .14) 48%, transparent 74%);
  opacity: calc(.3 + var(--spec) * .7); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.25px;
  background: linear-gradient(125deg, var(--rim-a) 0%, transparent 34%, transparent 66%, var(--rim-b) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc(.55 + var(--spec) * .45); }
@media (prefers-reduced-motion: reduce) { .glass { transition: none; } }

/* AminoStudy site styles. Extends tokens.css (concatenated before this file). */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font);
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: oklch(0.85 0.09 var(--cat-h) / .6); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "zero", "tnum"; letter-spacing: -0.01em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--pill); transition: top .2s var(--ease); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; }
.ico.big { width: 28px; height: 28px; }
.nil { color: var(--ink-4); }

/* ------------------------------------------------------------------ type */
.micro { font: 500 11px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.micro .ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: .98; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--brand); background: linear-gradient(100deg, var(--brand) 10%, oklch(0.55 0.2 calc(var(--cat-h) + 0)) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body:not([data-cat]) .h1 em, body:not([data-cat]) .h2 em, body:not([data-cat]) .h3 em { background: linear-gradient(100deg, var(--brand-2) 0%, var(--brand) 45%, #2a8fd0 100%); -webkit-background-clip: text; background-clip: text; }
.lede { color: var(--ink-3); font-size: 17px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.lede.lg { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .idx { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgb(10 22 48 / .6); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(36 71 216 / .14); }
body[data-cat] .eyebrow .dot { background: var(--cat); box-shadow: 0 0 0 4px var(--cat-glow); }
.fine { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ atmosphere */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background:
  radial-gradient(120% 80% at 50% -10%, var(--paper-hi), transparent 60%), var(--paper); }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; opacity: .62; }
.aurora .b1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax; background: radial-gradient(closest-side, oklch(0.78 0.13 262 / .75), transparent); animation: drift1 46s var(--inout) infinite alternate; }
.aurora .b2 { width: 54vmax; height: 54vmax; right: -20vmax; top: 4vmax; background: radial-gradient(closest-side, oklch(0.86 0.10 200 / .8), transparent); animation: drift2 38s var(--inout) infinite alternate; }
.aurora .b3 { width: 48vmax; height: 48vmax; left: 18vmax; bottom: -26vmax; background: radial-gradient(closest-side, oklch(0.82 0.10 300 / .55), transparent); animation: drift3 57s var(--inout) infinite alternate; }
.aurora .b4 { width: 30vmax; height: 30vmax; right: 12vmax; bottom: 6vmax; background: radial-gradient(closest-side, oklch(0.9 0.07 180 / .6), transparent); animation: drift4 31s var(--inout) infinite alternate; }
body[data-cat] .aurora .b1 { background: radial-gradient(closest-side, oklch(0.80 0.12 var(--cat-h) / .8), transparent); }
body[data-cat] .aurora .b2 { background: radial-gradient(closest-side, oklch(0.86 0.09 calc(var(--cat-h) + 35) / .75), transparent); }
body[data-cat] .aurora .b3 { background: radial-gradient(closest-side, oklch(0.84 0.09 calc(var(--cat-h) - 40) / .5), transparent); }
body[data-cat] .aurora .b4 { background: radial-gradient(closest-side, oklch(0.9 0.07 var(--cat-h) / .55), transparent); }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, 14vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-10vmax, -12vmax, 0) scale(1.15); } }
@keyframes drift4 { to { transform: translate3d(-16vmax, -8vmax, 0) scale(1.25); } }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brand), var(--aqua)); box-shadow: 0 0 12px rgb(79 209 217 / .7); }

/* ------------------------------------------------------------------ nav */
/* --nav-cur: current nav height; the compound section-tab row sticks a fixed --stack-gap below it. */
html { --nav-top: 12px; --nav-cur: var(--nav-h); --stack-gap: 10px; }
html.is-scrolled { --nav-cur: 56px; }
.nav-wrap { position: sticky; top: var(--nav-top); z-index: 50; padding-inline: var(--gutter); height: var(--nav-h); margin-top: 12px; }
.nav { margin-inline: auto; max-width: var(--max); height: var(--nav-h); border-radius: var(--pill); display: flex; align-items: center; gap: 12px; padding: 0 10px 0 20px;
  transition: max-width .6s var(--spring), box-shadow .4s var(--ease), background .4s var(--ease), height .4s var(--ease); }
.is-scrolled .nav { max-width: 920px; height: var(--nav-cur); background: linear-gradient(rgb(255 255 255 / .9), rgb(248 250 255 / .84)); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), var(--ring), var(--drop-lg); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.wm { font-weight: 640; font-size: 19px; letter-spacing: -0.045em; line-height: 1; }
.wm-b { color: var(--brand); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 9px 14px; border-radius: var(--pill); color: var(--ink-2); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; transition: background .25s var(--ease), color .25s var(--ease); }
.nav-links a:hover { background: rgb(10 22 48 / .05); color: var(--ink); }
.nav-links a[aria-current] { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgb(10 22 48 / .7); }
.nav-act { display: flex; align-items: center; gap: 6px; }
.nav-search { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: var(--pill); background: rgb(10 22 48 / .05); color: var(--ink-2); font-size: 14px; box-shadow: inset 0 1px 2px rgb(10 22 48 / .06); transition: background .2s; }
.nav-search:hover { background: rgb(10 22 48 / .08); }
.nav-search .ico { width: 16px; height: 16px; }
kbd { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: #fff; color: var(--ink-3); box-shadow: var(--ring), 0 1px 1px rgb(10 22 48 / .08); }
.nav-menu { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .nav { padding: 0 6px 0 16px; }
  .nav-links { display: none; }
  .nav-act { margin-left: auto; }
  .nav-menu { display: grid; }
  .nav-search span, .nav-search kbd { display: none; }
  .nav-search { width: 42px; padding: 0; justify-content: center; }
  .is-scrolled .nav { max-width: 100%; }
}

/* sheets (mobile menu, sections) */
.sheet, .search-dlg { position: fixed; inset: 0; z-index: 80; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(10 22 48 / .22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.sheet-panel { position: absolute; left: 12px; right: 12px; top: 12px; padding: 14px; border-radius: var(--r-lg); animation: sheetIn .5s var(--expo); max-height: calc(100vh - 24px); overflow: auto; background: linear-gradient(rgb(255 255 255 / .92), rgb(255 255 255 / .8)); }
.sec-panel { top: auto; bottom: 12px; max-width: 520px; margin-inline: auto; animation-name: sheetUp; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(10 22 48 / .06); }
.sheet-links { display: grid; gap: 4px; }
.sheet-links a { display: flex; align-items: center; gap: 14px; padding: 14px 14px; border-radius: 14px; color: var(--ink); font-size: 18px; font-weight: 550; letter-spacing: -0.02em; background: rgb(10 22 48 / .035); }
.sheet-links a .mono { font-size: 12px; color: var(--ink-3); }
.sheet-links a .ico { margin-left: auto; color: var(--ink-3); }
.sheet-links a[aria-current] { background: var(--ink); color: #fff; }
.sheet-links a[aria-current] .mono, .sheet-links a[aria-current] .ico { color: rgb(255 255 255 / .7); }
.sec-panel .sheet-links a { font-size: 15.5px; padding: 11px 14px; }
.sheet-search { width: 100%; margin-top: 10px; justify-content: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* search */
.search-panel { position: absolute; left: 50%; top: 12vh; width: min(640px, calc(100% - 24px)); translate: -50% 0; border-radius: var(--r-lg); padding: 10px; animation: sheetIn .45s var(--expo); background: linear-gradient(rgb(255 255 255 / .94), rgb(255 255 255 / .84)); }
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 16px; border-radius: 16px; background: rgb(10 22 48 / .045); box-shadow: inset 0 1px 3px rgb(10 22 48 / .08); color: var(--ink-3); transition: box-shadow .25s var(--ease), background .25s; }
.search-field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 8px 24px -12px rgb(36 71 216 / .5); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.search-field input::placeholder { color: var(--ink-3); opacity: .85; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field.sm { height: 42px; border-radius: 12px; }
.search-results { display: grid; gap: 2px; max-height: 56vh; overflow: auto; padding-top: 8px; }
.search-results:empty { padding: 0; }
.sr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.sr .cdot { width: 10px; height: 10px; }
.sr b { font-weight: 600; letter-spacing: -0.02em; }
.sr small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr span.micro { white-space: nowrap; }
@media (max-width: 560px) { .sr span.micro { display: none; } }
.sr[aria-selected="true"], .sr:hover { background: rgb(10 22 48 / .055); color: var(--ink); }
.sr-empty { padding: 18px 12px; color: var(--ink-3); font-size: 14px; }
.sr mark { background: oklch(0.9 0.08 205 / .7); color: inherit; border-radius: 3px; }

/* ------------------------------------------------------------------ controls */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: var(--pill); font-size: 15px; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), background .25s; }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 1px; }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--brand-3), var(--brand) 55%, var(--brand-2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 0 1px var(--brand-2), 0 14px 28px -12px rgb(36 71 216 / .7); }
.btn-primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 0 1px var(--brand-2), 0 20px 34px -12px rgb(36 71 216 / .75); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .38) 48%, transparent 62%); transform: translateX(-110%); animation: shimmer 5.5s var(--ease) infinite 1.5s; }
@keyframes shimmer { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.btn-ghost { color: var(--ink); background: rgb(255 255 255 / .7); box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop); }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 560; color: var(--brand); letter-spacing: -0.01em; }
.tlink .ico { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.tlink:hover .ico { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--ring), 0 1px 2px rgb(10 22 48 / .06); }
.chip.sm { height: 24px; padding: 0 9px; font-size: 12px; }
.chip.muted { background: rgb(10 22 48 / .04); box-shadow: none; color: var(--ink-3); }
.chip.link { color: var(--ink); transition: translate .25s var(--ease), box-shadow .25s; }
.chip.link:hover { translate: 0 -1px; box-shadow: var(--ring), var(--drop); }
.chip.t-bad { background: var(--bad-bg); color: var(--bad); box-shadow: none; white-space: normal; height: auto; min-height: 30px; padding: 6px 12px; line-height: 1.3; }
.chip b { font-weight: 500; color: var(--ink-3); }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--pill); font: 550 12.5px/1 var(--font); letter-spacing: -0.005em; white-space: nowrap; background: var(--tb, var(--info-bg)); color: var(--tc, var(--brand-ink)); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .04); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 18%, transparent); }
.t-ok { --tb: var(--ok-bg); --tc: var(--ok); --tl: oklch(0.62 0.13 160); }
.t-warn { --tb: var(--warn-bg); --tc: var(--warn); --tl: oklch(0.70 0.15 65); }
.t-bad { --tb: var(--bad-bg); --tc: var(--bad); --tl: oklch(0.60 0.19 27); }
.t-brand { --tb: var(--info-bg); --tc: var(--brand-ink); --tl: var(--brand-3); }
.t-aqua { --tb: oklch(0.93 0.05 200); --tc: var(--aqua-ink); --tl: oklch(0.76 0.11 200); }
.t-muted { --tb: rgb(10 22 48 / .06); --tc: var(--ink-2); --tl: oklch(0.75 0.02 260); }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: oklch(0.6 0.17 var(--cat-h)); box-shadow: 0 0 0 3px oklch(0.85 0.08 var(--cat-h) / .55); }

.well { border-radius: var(--r-card); background: rgb(10 22 48 / .045); box-shadow: inset 0 1px 3px rgb(10 22 48 / .08), inset 0 0 0 1px rgb(10 22 48 / .03); }

/* segmented control */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: rgb(10 22 48 / .055); box-shadow: inset 0 1px 3px rgb(10 22 48 / .09); max-width: 100%; overflow-x: auto; scrollbar-width: none; isolation: isolate; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--pill); white-space: nowrap; font: 500 13.5px/1 var(--mono); letter-spacing: -0.01em; color: var(--ink-3); transition: color .3s var(--ease); }
.seg button .ico { width: 15px; height: 15px; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: var(--tw, 0); transform: translateX(var(--tx, 4px)); border-radius: var(--pill); background: #fff; box-shadow: 0 1px 2px rgb(10 22 48 / .1), 0 6px 14px -6px rgb(10 22 48 / .3), inset 0 1px 0 #fff; transition: transform .5s var(--spring), width .5s var(--spring); }
.seg.sm button { height: 30px; padding: 0 12px; font-size: 12.5px; }
.no-anim .seg-thumb, .no-anim .tabs-thumb { transition: none !important; }

/* spec grid */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec > div:not(:nth-child(2n+1)) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec.cols-3 > div { padding-left: 16px; border-left: 1px solid var(--line); }
.spec.cols-3 > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.spec dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.spec dd { font-size: 14.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.spec dd.mono { font-size: 14px; }
.spec dd .u { color: var(--ink-3); }
@media (max-width: 640px) {
  .spec.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec.cols-3 > div { padding-left: 16px; border-left: 1px solid var(--line); }
  .spec.cols-3 > div:nth-child(3n+1) { padding-left: 16px; border-left: 1px solid var(--line); }
  .spec.cols-3 > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}

/* tables */
.tcard { padding: 8px; border-radius: var(--r-lg); margin-top: 18px; }
.tcard-head { display: flex; justify-content: space-between; padding: 12px 14px 10px; }
.tscroll { overflow-x: auto; border-radius: 14px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .06); }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.dt th, .dt td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.dt thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: rgb(10 22 48 / .03); white-space: nowrap; position: sticky; top: 0; }
.dt tbody tr:last-child > * { border-bottom: 0; }
.dt tbody th { font-weight: 560; }
.dt small { display: block; margin-top: 3px; font: 400 12px/1.35 var(--font); color: var(--ink-3); }
.dt .strong { font-weight: 600; color: var(--ink); }
.dt tbody tr { transition: background .3s var(--ease); }
.dt tbody tr.is-on { background: oklch(0.95 0.035 var(--cat-h) / .8); }
.tnotes { display: grid; gap: 8px; padding: 14px 14px 8px; font-size: 13.5px; color: var(--ink-2); }
.tnotes li { display: flex; gap: 10px; }
.tnotes .mono { flex: none; font-size: 12px; color: var(--ink-3); padding-top: 2px; min-width: 120px; }

/* skeleton for calculator mounts until calculator.js fills them */
#calc-planner:empty, #calc-recon:empty, .calc-helper:empty, .calc-mini:empty { position: relative; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(rgb(10 22 48 / .045), rgb(10 22 48 / .03)); box-shadow: inset 0 1px 3px rgb(10 22 48 / .07); }
#calc-planner:empty { min-height: 520px; }
#calc-recon:empty { min-height: 400px; }
.calc-helper:empty { min-height: 300px; }
.calc-mini:empty { min-height: 84px; }
#calc-planner:empty::before, #calc-recon:empty::before, .calc-helper:empty::before, .calc-mini:empty::before { content: ""; position: absolute; inset: 16px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 38% 14px no-repeat,
    linear-gradient(#fff, #fff) 0 30px / 70% 44px no-repeat,
    linear-gradient(#fff, #fff) 0 90px / 100% 44px no-repeat,
    linear-gradient(#fff, #fff) 0 150px / 52% 44px no-repeat;
  opacity: .75; border-radius: 10px; }
.calc-mini:empty::before { inset: 16px; background: linear-gradient(#fff, #fff) 0 0 / 28% 52px no-repeat, linear-gradient(#fff, #fff) 31% 0 / 22% 52px no-repeat, linear-gradient(#fff, #fff) 56% 0 / 18% 52px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 22% 52px no-repeat; }
#calc-planner:empty::after, #calc-recon:empty::after, .calc-helper:empty::after, .calc-mini:empty::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .6) 50%, transparent 80%); transform: translateX(-100%); animation: skel 1.8s var(--ease) infinite; }
@keyframes skel { to { transform: translateX(100%); } }

/* ------------------------------------------------------------------ reveal + motion */
.js .reveal { opacity: 0; translate: 0 14px; filter: blur(4px); transition: opacity .8s var(--ease), translate .9s var(--expo), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; filter: none; }
.glass.reveal.in:hover, a.glass:hover { translate: 0 -2px; }
.js .reveal.in.glass { transition: opacity .8s var(--ease), translate .3s var(--ease), filter .8s var(--ease), --mx .55s var(--ease), --my .55s var(--ease), --spec .45s var(--ease), box-shadow .3s var(--ease); }
.draw { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--expo) .2s; }
.in .draw, .draw.in, .in.draw { stroke-dashoffset: 0; }
html:not(.js) .draw { stroke-dashoffset: 0; }

/* molecule */
.mol { width: 100%; height: auto; overflow: visible; }
.mol .mb { stroke: oklch(0.55 0.12 var(--cat-h) / .55); stroke-width: 3; stroke-linecap: round; }
.mol .mb.side { stroke-width: 2; stroke-dasharray: 2 5; stroke: oklch(0.55 0.10 var(--cat-h) / .45); }
.mol .mr { fill: none; stroke: oklch(0.6 0.14 var(--cat-h) / .35); stroke-width: 1.4; stroke-dasharray: 3 4; }
.mol .mh { fill: #fff; opacity: .55; }
.mol .ml { font: 600 15px var(--mono); fill: rgb(255 255 255 / .92); text-anchor: middle; dominant-baseline: central; }
.mol-stage .mn circle:not(.mr):not(.mh) { filter: drop-shadow(0 10px 14px oklch(0.45 0.15 var(--cat-h) / .28)); }
.mol-stage .mol-in { animation: molFloat 14s var(--inout) infinite alternate; transform-origin: 50% 50%; transform-box: fill-box; }
.mol-stage .mn { animation: nodeBreath 6s var(--inout) infinite alternate; animation-delay: calc(var(--k) * -0.7s); transform-box: fill-box; transform-origin: center; }
.mol-stage .mn .mr { animation: spin 26s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes molFloat { 0% { transform: translateY(-6px) rotate(-1.4deg); } 100% { transform: translateY(8px) rotate(1.6deg); } }
@keyframes nodeBreath { to { transform: scale(1.07); } }
@keyframes spin { to { transform: rotate(360deg); } }
.js .mol-stage .mb { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--expo); }
.js .mol-stage .mb.side { stroke-dasharray: 2 5; stroke-dashoffset: 0; }
.js .in .mol-stage .mb:not(.side) { stroke-dashoffset: 0; }
.js .mol-stage .mn { opacity: 0; transition: opacity .7s var(--ease); transition-delay: calc(var(--k) * 45ms + 150ms); }
.js .in .mol-stage .mn { opacity: 1; }

/* ------------------------------------------------------------------ page heads */
.phead { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(28px, 4vw, 48px); }
.phead-txt { display: grid; gap: 22px; max-width: 880px; }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero-txt { display: grid; gap: 24px; min-width: 0; }
.hero-h { font-size: clamp(46px, 7.4vw, 96px); }
.hsearch { position: relative; max-width: 560px; z-index: 5; }
.hsearch .search-field { height: 60px; border-radius: 20px; padding-left: 20px; }
.hsearch .search-field.glass { box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop-lg); }
.hsearch .search-field:focus-within { box-shadow: 0 0 0 2px var(--brand), var(--drop-lg); }
.hsearch .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 18px; background: linear-gradient(rgb(255 255 255 / .95), rgb(255 255 255 / .88)); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick .micro { margin-right: 4px; }
.hero-vis { position: relative; aspect-ratio: 1 / .92; min-width: 0; }
.hv-stage { position: absolute; inset: 4% 6% 8% 4%; border-radius: var(--r-xl); display: grid; place-items: center; overflow: hidden; padding: 2%; }
.hv-stage .mol { transform: scale(1.15); }
.hv-stage .mol { position: relative; z-index: 1; }
.hv-card { position: absolute; border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop-lg); animation: bob 9s var(--inout) infinite alternate; }
.hv-name { font-size: 22px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.hv-num { font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.hv-a { left: -2%; top: 0; animation-delay: -2s; }
.hv-b { right: 0; bottom: 2%; animation-delay: -5s; max-width: 62%; }
.hv-c { right: 2%; top: 12%; animation-delay: -7s; }
@keyframes bob { to { transform: translateY(-10px); } }

.stage-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, oklch(0.94 0.05 var(--cat-h) / .9), transparent 70%),
    linear-gradient(rgb(10 22 48 / .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(10 22 48 / .045) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 100%); mask: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 100%); }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed oklch(0.6 0.12 var(--cat-h) / .28); translate: -50% -50%; animation: spin 80s linear infinite; }
.o1 { width: 46%; aspect-ratio: 1; } .o2 { width: 72%; aspect-ratio: 1; animation-duration: 120s; animation-direction: reverse; } .o3 { width: 98%; aspect-ratio: 1; border-style: solid; border-color: oklch(0.6 0.1 var(--cat-h) / .12); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-bottom: var(--sec-pad); }
.tile { border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tile .tlink { margin-top: auto; }
.spectrum { display: grid; gap: 10px; margin-top: auto; }
.spec-bar { display: flex; gap: 3px; height: 30px; }
.spec-bar a { border-radius: 8px; min-width: 10px; background: linear-gradient(180deg, oklch(0.82 0.11 var(--cat-h)), oklch(0.62 0.16 var(--cat-h))); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); transition: transform .3s var(--spring); }
.spec-bar a:hover { transform: translateY(-3px); }
.spectrum + .tlink { margin-top: 0; }
.tile-p { color: var(--ink-3); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 6px 16px 6px 0; display: grid; gap: 4px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat-n { font-size: clamp(38px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; color: var(--ink); }
.stat-s { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 13.5px; font-weight: 520; letter-spacing: -0.01em; background: oklch(0.97 0.02 var(--cat-h) / .7); box-shadow: inset 0 0 0 1px oklch(0.8 0.06 var(--cat-h) / .35); transition: translate .25s var(--ease), background .25s; min-width: 0; }
.cat span { flex: 1; min-width: 0; line-height: 1.25; }
.cat b { font-size: 12px; color: var(--ink-3); font-weight: 500; }
a.cat:hover { translate: 0 -1px; background: oklch(0.95 0.04 var(--cat-h) / .9); color: var(--ink); }
.cat.off { opacity: .62; background: rgb(10 22 48 / .03); box-shadow: none; }
.cat.off .cdot { background: oklch(0.8 0.03 var(--cat-h)); box-shadow: none; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.glist { display: grid; }
.glist li + li { border-top: 1px solid var(--line); }
.glist a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px 4px; color: var(--ink); transition: padding .3s var(--ease); }
.glist a:hover { padding-left: 10px; color: var(--ink); }
.glist .gi { font-size: 12px; color: var(--ink-3); }
.glist .gt b { display: block; font-weight: 580; letter-spacing: -0.02em; }
.glist .gt small { color: var(--ink-3); font-size: 13px; }
.glist .ico { color: var(--ink-3); width: 16px; }
.merge-mini { display: flex; align-items: center; gap: 0; }
.merge-mini > svg { width: 120px; height: 40px; flex: none; }
.merge-mini > svg path, .src-merge > svg path { stroke: var(--brand-3); stroke-width: 1.5; }
.mm-node { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--pill); background: #fff; box-shadow: var(--ring), var(--drop); font-size: 13px; font-weight: 550; white-space: nowrap; }
.mm-node .ico { width: 15px; height: 15px; color: var(--brand); }
.mm-node.dark { background: var(--ink); color: #fff; }
.mm-node.dark .ico { color: var(--aqua); }

/* status bar */
.sbar { display: grid; gap: 16px; }
.sbar-track { display: flex; gap: 3px; height: 14px; padding: 3px; border-radius: var(--pill); background: rgb(10 22 48 / .06); box-shadow: inset 0 1px 2px rgb(10 22 48 / .1); }
.sbar.big .sbar-track { height: 22px; }
.seg-s { width: var(--w); border-radius: var(--pill); background: linear-gradient(180deg, color-mix(in oklab, var(--tl) 70%, #fff), var(--tl)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); transform-origin: 0 50%; }
.js .seg-s { transform: scaleX(0); transition: transform 1.2s var(--expo); }
.js .in .seg-s { transform: none; }
.js .in .seg-s:nth-child(2) { transition-delay: .08s; } .js .in .seg-s:nth-child(3) { transition-delay: .16s; } .js .in .seg-s:nth-child(4) { transition-delay: .24s; } .js .in .seg-s:nth-child(5) { transition-delay: .32s; }
.sbar-leg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.sbar-leg li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sbar-leg li b { font-size: 15px; font-weight: 500; }
.sbar-leg li.zero { opacity: .5; }

/* compound cards */
.ccard { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); min-width: 0; }
.ccard:hover { color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .5), var(--ring), var(--drop-lg); }
.ccard-vis { position: relative; margin: 8px 8px 0; border-radius: 18px; aspect-ratio: 240 / 128; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 120% at 30% 0%, oklch(0.96 0.04 var(--cat-h)), oklch(0.90 0.07 var(--cat-h)) 70%, oklch(0.86 0.09 calc(var(--cat-h) + 25)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 0 0 1px oklch(0.8 0.08 var(--cat-h) / .35); }
.ccard-vis .mol { width: 92%; transition: transform .8s var(--expo); }
.ccard:hover .ccard-vis .mol { transform: scale(1.06) rotate(-1.5deg); }
.ccard-go { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .8); color: var(--ink); box-shadow: var(--ring); opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .4s var(--spring); }
.ccard-go .ico { width: 15px; height: 15px; }
.ccard:hover .ccard-go, .ccard:focus-visible .ccard-go { opacity: 1; transform: none; }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard-cat { display: flex; align-items: center; gap: 8px; }
.ccard-name { font-size: 22px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.ccard-class { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.ccard-tag { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ccard-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ccard-counts div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.ccard-counts dt { font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ccard-counts dd { font: 500 18px/1.3 var(--mono); letter-spacing: -0.03em; }
.ccard.compact .ccard-name { font-size: 19px; }

/* ------------------------------------------------------------------ library */
.lib { padding-bottom: var(--sec-pad); }
.lib-ctl { position: relative; z-index: 3; border-radius: var(--r-lg); padding: 14px; display: grid; gap: 12px; margin-bottom: 22px; }
.lib-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.lib-row .search-field { flex: 1 1 300px; }
.lib-sel { display: flex; gap: 10px; flex-wrap: wrap; }
.sel { position: relative; display: grid; gap: 2px; height: 52px; padding: 8px 36px 6px 14px; border-radius: 14px; background: #fff; box-shadow: var(--ring), 0 1px 2px rgb(10 22 48 / .06); min-width: 170px; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel .micro { font-size: 9.5px; }
.sel select { appearance: none; border: 0; background: none; outline: 0; font-size: 14px; font-weight: 520; padding: 0; cursor: pointer; }
.sel:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; max-width: 100%; }
.cat-chips::-webkit-scrollbar { display: none; }
.cchip { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 14px; border-radius: var(--pill); background: rgb(255 255 255 / .7); color: var(--ink-2); font-size: 13.5px; font-weight: 520; box-shadow: var(--ring); transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.cchip b { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.cchip:hover:not(:disabled) { background: #fff; }
.cchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgb(10 22 48 / .7); }
.cchip[aria-pressed="true"] b { color: rgb(255 255 255 / .7); }
.cchip:disabled { opacity: .42; cursor: default; }
.cchip.st .cdot { background: var(--tl); box-shadow: 0 0 0 3px var(--tb); }
.lib-foot { justify-content: space-between; padding: 0 4px; }
.lib-foot .micro b { color: var(--ink); font-size: 13px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lib-grid .ccard.is-out { display: none; }
.lib-empty { border-radius: var(--r-lg); padding: 40px; display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--ink-2); }
.lib-pend { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin-top: 28px; color: var(--ink-3); font-size: 14.5px; }

/* ------------------------------------------------------------------ compound */
.c-hero { padding-top: 22px; }
.crumbs { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 14px; border-radius: var(--pill); font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; max-width: 100%; }
.crumbs a { color: var(--ink-2); padding: 2px 4px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { width: 13px; height: 13px; color: var(--ink-4); }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; padding: 2px 4px; }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: stretch; }
.stage { border-radius: var(--r-xl); min-height: 520px; overflow: hidden; display: grid; place-items: center; padding: 64px 28px 96px; }
.stage-view { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; animation: fade .5s var(--ease); }
.stage-view .mol { max-width: 560px; }
.sheet-view img { max-height: 520px; width: auto; border-radius: 10px; box-shadow: var(--ring), var(--drop-lg); background: #fff; }
.stage-tag { position: absolute; left: 18px; top: 18px; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); }
.stage-stats { position: absolute; right: 18px; top: 18px; z-index: 2; display: flex; border-radius: 14px; padding: 8px 4px; }
.stage-stats div { display: grid; gap: 2px; padding: 0 12px; text-align: right; }
.stage-stats div + div { border-left: 1px solid var(--line); }
.stage-stats .micro { font-size: 9.5px; }
.stage-stats b { font-size: 19px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.stage-toggle { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 2; }
.stage-toggle .seg { background: rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--ring), var(--drop); }
.c-panel { border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.c-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink-2); }
.c-kicker .sep { color: var(--ink-4); }
.c-name { font-size: clamp(44px, 6.2vw, 84px); line-height: .96; font-weight: 640; letter-spacing: -0.055em; overflow-wrap: anywhere; text-wrap: balance;
  background: linear-gradient(170deg, var(--ink) 40%, oklch(0.38 0.14 var(--cat-h))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .04em; }
.c-aka { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); margin-top: -8px; }
.c-aka span + span::before { content: "/"; margin-right: 14px; color: var(--ink-4); }
.c-tag { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.38; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.c-sum { color: var(--ink-3); font-size: 15.5px; line-height: 1.6; }
.c-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.ev-row .pill { flex: none; }
.ev-row p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.glance { margin-top: 2px; }
.glance dd { font-size: 14px; }
.c-panel .cta-row { margin-top: auto; padding-top: 4px; }

/* section tabs */
.tabs-wrap { position: sticky; top: calc(var(--nav-top) + var(--nav-cur) + var(--stack-gap)); transition: top .4s var(--ease); z-index: 40; margin-top: 28px; padding-inline: var(--gutter); pointer-events: none; }
.tabs { pointer-events: auto; max-width: var(--max); margin-inline: auto; border-radius: var(--pill); padding: 5px; overflow: hidden; }
.tabs-track { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; isolation: isolate; }
.tabs-track::-webkit-scrollbar { display: none; }
.tabs-track a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; font-weight: 520; color: var(--ink-2); white-space: nowrap; transition: color .35s var(--ease); }
.tabs-track a .mono { font-size: 11px; color: var(--ink-4); transition: color .35s var(--ease); }
.tabs-track a:hover { color: var(--ink); }
.tabs-track a[aria-current] { color: #fff; }
.tabs-track a[aria-current] .mono { color: rgb(255 255 255 / .6); }
.tabs-thumb { position: absolute; z-index: 0; left: 0; top: 0; height: 38px; width: var(--tw, 0); transform: translateX(var(--tx, 0)); border-radius: var(--pill); background: var(--ink); box-shadow: 0 8px 18px -8px rgb(10 22 48 / .7), inset 0 1px 0 rgb(255 255 255 / .15); transition: transform .55s var(--spring), width .55s var(--spring); }

.csecs { padding-bottom: 120px; }
.csec { padding-top: var(--sec-pad); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.csecs .csec:first-child { padding-top: 56px; }
.opener { display: grid; gap: 16px; margin-bottom: clamp(26px, 3.4vw, 40px); max-width: 820px; }

.hero-num { font: 500 clamp(40px, 5.4vw, 68px)/1.02 var(--mono); letter-spacing: -0.06em; color: var(--ink); overflow-wrap: anywhere; }
.hero-num.long { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.045em; line-height: 1.12; }
.hero-num.xl-long { font-size: clamp(19px, 2vw, 25px); letter-spacing: -0.03em; line-height: 1.35; }
/* uses */
.bento-why { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.why { grid-column: span 2; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.why.lead { grid-column: span 4; background: radial-gradient(120% 140% at 100% 0%, oklch(0.93 0.06 var(--cat-h) / .85), rgb(255 255 255 / .55)); }
.bento-why .why:nth-child(4):last-child { grid-column: span 4; }
.bento-why .why:nth-child(5):last-child { grid-column: span 6; }
.why-n { font-size: 12px; color: oklch(0.45 0.14 var(--cat-h)); }
.why h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: auto; }
.why.lead h3 { font-size: clamp(24px, 2.4vw, 30px); }
.why p { color: var(--ink-3); font-size: 14.5px; }
.why.lead p { color: var(--ink-2); font-size: 15.5px; max-width: 54ch; }

/* mechanism */
.mech { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.mech-sum { border-radius: var(--r-lg); padding: clamp(22px, 2.8vw, 32px); display: grid; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); position: sticky; top: 150px; }
.mech-sum .ico { color: oklch(0.5 0.15 var(--cat-h)); }
.path, .steps { position: relative; display: grid; gap: 12px; counter-reset: s; }
.path li, .steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.path li:not(:last-child)::after, .steps:not(.h) li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: -12px; width: 2px; border-radius: 2px; background: linear-gradient(oklch(0.7 0.12 var(--cat-h) / .6), oklch(0.7 0.12 var(--cat-h) / .15)); transform-origin: top; }
.js .path li:not(:last-child)::after, .js .steps:not(.h) li:not(:last-child)::after { transform: scaleY(0); transition: transform 1s var(--expo) .3s; }
.js .path li.in:not(:last-child)::after, .js .steps:not(.h) li.in:not(:last-child)::after { transform: none; }
.path-n, .step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 10px 20px -10px rgb(10 22 48 / .7), inset 0 1px 0 rgb(255 255 255 / .15); position: relative; z-index: 1; }
.path-card, .step-card { border-radius: var(--r-card); padding: 16px 18px; display: grid; gap: 4px; }
.path-card h3, .step-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.path-card p, .step-card p { color: var(--ink-3); font-size: 14.5px; }

/* evidence */
.ev { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.ev-level { border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 16px; position: sticky; top: 150px; }
.ev-big { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.ev-note { color: var(--ink-2); font-size: 15px; }
.ladder { display: grid; gap: 4px; }
.ladder li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-4); }
.ladder li i { width: 100%; max-width: 120px; height: 8px; border-radius: 4px; background: rgb(10 22 48 / .07); flex: none; width: 40%; }
.ladder li.on i { background: linear-gradient(90deg, oklch(0.75 0.12 var(--cat-h)), oklch(0.58 0.16 var(--cat-h))); }
.ladder li.on { color: var(--ink-2); }
.ladder li.cur { color: var(--ink); font-weight: 600; }
.ladder { flex-direction: column-reverse; display: flex; }
.claims { display: grid; gap: 10px; }
.claim { border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 8px; }
.claim::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgb(255 255 255 / .85), rgb(255 255 255 / .14) 48%, transparent 74%), linear-gradient(90deg, color-mix(in oklab, var(--tl) 16%, transparent), transparent 35%); }
.claim-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.claim h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.claim p { color: var(--ink-3); font-size: 14.5px; }

/* optimize */
.opt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt li { border-radius: var(--r-card); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; font-size: 15px; color: var(--ink-2); }
.opt-n { font-size: 26px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; color: oklch(0.55 0.15 var(--cat-h)); }
.opt li:last-child:nth-child(odd) { grid-column: span 2; }

/* cautions */
.caut { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.caut-list { border-radius: var(--r-lg); padding: 8px 22px; }
.caut-list li { display: flex; gap: 14px; padding: 16px 0; font-size: 15px; color: var(--ink-2); }
.caut-list li + li { border-top: 1px solid var(--line); }
.caut-list .ico { color: var(--warn); margin-top: 2px; }
.avoid { border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.avoid .micro { color: var(--bad); }
.avoid-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* storage */
.store { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.store li { border-radius: var(--r-card); padding: 20px; display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); align-content: start; }
.store .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: oklch(0.94 0.04 var(--cat-h)); color: oklch(0.45 0.14 var(--cat-h)); }

/* stacks */
.stacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.stack { border-radius: var(--r-card); padding: 20px; display: grid; gap: 10px; color: var(--ink); align-content: start; }
.stack:hover { color: var(--ink); }
.stack-top { display: flex; align-items: center; gap: 12px; }
.stack-plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: none; background: oklch(0.93 0.05 var(--cat-h)); color: oklch(0.4 0.14 var(--cat-h)); font-size: 17px; }
.stack h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.stack-go { margin-left: auto; color: var(--brand); }
.stack-go .ico { width: 16px; }
.stack p { font-size: 14.5px; color: var(--ink-3); }

/* timeline */
.tl { position: relative; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(50px, 6vw, 72px); }
.tl-line { position: absolute; left: calc(clamp(28px, 3.6vw, 42px) - 1px); top: 44px; bottom: 44px; width: 2px; border-radius: 2px; background: linear-gradient(oklch(0.62 0.13 var(--cat-h) / .8), oklch(0.62 0.13 var(--cat-h) / .25)); transform-origin: top; }
.js .tl-line { transform: scaleY(0); transition: transform 1.6s var(--expo) .2s; }
.js .in > .tl-line { transform: none; }
.tl ol { display: grid; gap: 22px; }
.tl li { position: relative; display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; }
.tl-dot { position: absolute; left: calc(clamp(28px, 3.6vw, 42px) - clamp(50px, 6vw, 72px) - 6px); top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px oklch(0.62 0.15 var(--cat-h)), 0 0 0 8px oklch(0.88 0.06 var(--cat-h) / .5); }
.tl-year { font-size: 15px; font-weight: 500; color: oklch(0.42 0.14 var(--cat-h)); letter-spacing: -0.02em; }
.tl-ev { font-size: 15.5px; color: var(--ink-2); }

/* regulatory */
.reg { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; gap: 20px; align-items: flex-start; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink); max-width: 900px; letter-spacing: -0.01em; }
.reg .ico { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--ink); color: var(--aqua); }

/* dock */
.dock { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: var(--pill); max-width: calc(100% - 24px);
  translate: -50% 140%; opacity: 0; transition: translate .7s var(--spring), opacity .4s var(--ease); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), var(--ring), 0 24px 50px -18px rgb(10 22 48 / .45); background: linear-gradient(rgb(255 255 255 / .86), rgb(255 255 255 / .7)); }
.dock.show { translate: -50% 0; opacity: 1; }
.dock-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-size: 15px; }
.dock-dose { display: grid; padding: 0 14px; margin-left: 6px; border-left: 1px solid var(--line); min-width: 0; max-width: 240px; }
.dock-dose .micro { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-dose b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btns { display: flex; gap: 4px; }
.dbtn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: var(--pill); font-size: 13.5px; font-weight: 550; color: var(--ink); background: rgb(10 22 48 / .05); white-space: nowrap; transition: background .2s; }
.dbtn:hover { background: rgb(10 22 48 / .09); color: var(--ink); }
.dbtn .ico { width: 16px; height: 16px; }
.dbtn.dark { background: var(--ink); color: #fff; }
.dbtn.dark:hover { background: var(--ink-2); color: #fff; }

/* ------------------------------------------------------------------ calculator page */
.calc-shell { border-radius: var(--r-xl); padding: clamp(10px, 1.6vw, 18px); }
.recon-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.recon-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.formula { border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.formula p:not(.micro) { color: var(--ink-2); font-size: 15px; }
.formula-eq { font-size: clamp(15px, 1.5vw, 18px) !important; color: var(--ink) !important; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #fff !important; letter-spacing: -0.02em; line-height: 1.5; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), var(--drop); }
.big-n { font-size: 30px; font-weight: 500; letter-spacing: -0.05em; color: var(--brand); margin-right: 4px; }

/* ------------------------------------------------------------------ guides */
.gindex { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-bottom: 10px; }
.gcard { border-radius: var(--r-card); padding: 18px; display: grid; gap: 6px; color: var(--ink); align-content: start; }
.gcard:hover { color: var(--ink); }
.gcard .gi { font-size: 12px; color: var(--brand); }
.gcard b { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.gcard small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.gcard .ico { width: 16px; color: var(--ink-3); margin-top: 6px; transform: rotate(90deg); }
.steps { max-width: 820px; }
.steps.h { max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.h li { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; }
.steps.h .step-card { height: 100%; }
.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sol { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sol.rec { background: linear-gradient(180deg, rgb(255 255 255 / .92), rgb(237 242 255 / .75)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--brand-3), var(--drop-lg); }
.sol-badge { align-self: flex-start; padding: 5px 9px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 10px; }
.sol-f { text-transform: none; letter-spacing: 0; font-size: 12px; }
.sol h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.sol-use { color: var(--ink-2); font-size: 14.5px; }
.sol ul { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sol li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.sol li .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.facts > div { border-radius: var(--r-card); padding: 16px 18px; display: grid; gap: 6px; }
.facts dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.gsec .formula { margin-top: 16px; max-width: 640px; }
.syr { border-radius: var(--r-xl); padding: clamp(18px, 3vw, 34px); display: grid; gap: 22px; }
.syr-read { display: flex; align-items: flex-end; gap: 22px; }
.syr-eq { font-size: 34px; color: var(--ink-4); padding-bottom: 6px; }
.syr-svg { width: 100%; height: auto; overflow: visible; }
.syr-barrel { fill: rgb(255 255 255 / .55); stroke: rgb(10 22 48 / .35); stroke-width: 1.5; }
.syr-liq { fill: url(#syr-fill); transition: width .35s var(--ease); }
.syr-stop { fill: var(--ink); }
.syr-rod { fill: rgb(10 22 48 / .2); }
.syr-hub { fill: rgb(10 22 48 / .22); }
.syr-needle { stroke: rgb(10 22 48 / .5); stroke-width: 2; }
.syr-flange { fill: rgb(10 22 48 / .28); }
[data-syr-plunger] { transition: transform .35s var(--ease); }
.tk { stroke: rgb(10 22 48 / .4); stroke-width: 1; }
.tk-m { stroke: var(--ink); stroke-width: 1.6; }
.tk-l { font: 500 11px var(--mono); fill: var(--ink-3); text-anchor: middle; }
.syr-range { display: grid; gap: 10px; }
.syr-range input { width: 100%; accent-color: var(--brand); height: 28px; }

/* ------------------------------------------------------------------ methodology */
.src-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; }
.src { border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; height: 100%; }
.src h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; }
.src p:not(.micro) { color: var(--ink-3); font-size: 15px; }
.src-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--aqua); }
.src-merge { position: relative; height: 200px; display: grid; place-items: center; }
.src-merge > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.src-merge > svg path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.src-merge .mm-node { position: relative; z-index: 1; }
.src-grid > .src:last-child { order: 0; }
.cov { margin-top: 16px; border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 20px; }
.cov-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.cov-n b { font-size: clamp(40px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.cov-n span { font-size: 22px; color: var(--ink-3); letter-spacing: -0.03em; }
.cov-s { font-size: 13.5px; color: var(--ink-3); }
.cov-bar { height: 14px; padding: 3px; border-radius: var(--pill); background: rgb(10 22 48 / .06); box-shadow: inset 0 1px 2px rgb(10 22 48 / .1); }
.cov-bar i { display: block; height: 100%; width: var(--w); border-radius: var(--pill); background: linear-gradient(90deg, var(--brand-3), var(--aqua)); transform-origin: 0 50%; }
.js .cov-bar i { transform: scaleX(0); transition: transform 1.2s var(--expo) .2s; }
.js .in .cov-bar i { transform: none; }
.cov-pend { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.cov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sum-bar { padding: 20px; border-radius: var(--r-lg); margin-bottom: 14px; }
.stat-defs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sdef { border-radius: var(--r-card); padding: 18px; display: grid; gap: 12px; align-content: start; }
.sdef-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sdef-top b { font-size: 26px; font-weight: 500; letter-spacing: -0.05em; }
.sdef p { font-size: 14px; color: var(--ink-2); }
.xt { border-radius: var(--r-lg); padding: 8px; }
.xt-ctl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 8px 14px; align-items: center; }
.xt-ctl .search-field { flex: 0 1 260px; }
.xt-t { min-width: 980px; }
.xt .tscroll { max-height: 640px; overflow: auto; overscroll-behavior: contain; }
.xt .dt thead th { z-index: 2; background: #F3F6FC; }
.xt-t th a { color: var(--ink); }
.xt-t th a:hover { color: var(--brand); }
.xt-t .diff { color: var(--ink-2); min-width: 280px; }
.xt-t tr.is-out { display: none; }
.xt-empty { padding: 20px; color: var(--ink-3); }
.corr { display: grid; gap: 10px; }
.corr li { border-radius: var(--r-card); padding: 16px 20px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.corr-n { font-size: 12px; color: var(--ink-3); }
.corr h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.corr h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.corr-b p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.corr-o { display: flex; gap: 0; padding: 6px; border-radius: 12px; background: rgb(10 22 48 / .04); box-shadow: inset 0 1px 2px rgb(10 22 48 / .06); }
.corr-o div { padding: 4px 12px; display: grid; gap: 2px; }
.corr-o div + div { border-left: 1px solid var(--line); }
.corr-o dt { font: 500 9.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.corr-o dd { font-size: 14px; white-space: nowrap; }
.strike { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; color: var(--bad); }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.how { border-radius: var(--r-lg); padding: 22px; display: grid; gap: 12px; align-content: start; }
.how h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.how p { color: var(--ink-3); font-size: 14.5px; }

/* 404 */
.nf { padding-block: clamp(60px, 10vw, 140px); }
.nf-card { border-radius: var(--r-xl); padding: clamp(28px, 6vw, 72px); display: grid; gap: 22px; justify-items: start; overflow: hidden; }
.nf-code { position: absolute; right: -0.04em; bottom: -0.22em; font-size: clamp(140px, 26vw, 340px); line-height: 1; letter-spacing: -0.08em; color: oklch(0.6 0.15 262 / .1); pointer-events: none; z-index: -1; }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 40px; padding: 0 var(--gutter) 28px; }
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 40px 0 28px; border-top: 1px solid var(--line); }
.foot-brand { display: grid; gap: 12px; max-width: 380px; }
.foot-brand p { color: var(--ink-3); font-size: 14px; }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 80px); }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols h2 { margin-bottom: 4px; }
.foot-cols a { color: var(--ink-2); font-size: 14.5px; }
.foot-cols a:hover { color: var(--brand); }
.foot-line { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot-line .mono { font-size: 12px; }
.pg-compound .foot { padding-bottom: 100px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .gindex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-defs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.h { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock-dose { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-vis { max-width: 520px; width: 100%; margin-inline: auto; }
  .bento > .tile { grid-column: span 12; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 380px; }
  .mech, .ev, .caut, .recon-grid { grid-template-columns: minmax(0, 1fr); }
  .mech-sum, .ev-level, .recon-side { position: static; }
  .bento-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-why .why, .bento-why .why.lead, .bento-why .why:nth-child(4):last-child, .bento-why .why:nth-child(5):last-child { grid-column: span 1; }
  .bento-why .why.lead { grid-column: span 2; }
  .src-grid { grid-template-columns: 1fr; gap: 0; }
  .src-merge { height: 90px; }
  .src-merge > svg { display: none; }
  .src-merge::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--brand-3); }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .lib-grid, .feat-grid { grid-template-columns: 1fr; }
  .gindex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-grid, .opt, .stat-defs, .how-grid, .steps.h { grid-template-columns: 1fr; }
  .opt li:last-child:nth-child(odd) { grid-column: auto; }
  .bento-why { grid-template-columns: 1fr; }
  .bento-why .why.lead { grid-column: auto; }
  .why { min-height: 0; }
  .cov-top { grid-template-columns: minmax(0, 1fr); }
  .tl { padding-left: 46px; }
  .tl-line { left: 23px; }
  .tl-dot { left: -28px; }
  .tl li { grid-template-columns: 1fr; }
  .corr li { grid-template-columns: 28px minmax(0, 1fr); }
  .corr-o { grid-column: 1 / -1; justify-self: start; }
  .lib-sel { width: 100%; }
  .sel { flex: 1; min-width: 0; }
  .hv-card { padding: 10px 12px; }
  .hv-name { font-size: 18px; }
  .hv-num { font-size: 15px; }
  .dock { padding-left: 14px; }
  .dbtn span { display: none; }
  .dbtn { width: 42px; padding: 0; justify-content: center; }
  .dbtn.dark { width: auto; padding: 0 14px; }
  .dbtn.dark span { display: inline; }
  .stage-stats { display: none; }
  .stage { padding: 56px 16px 80px; min-height: 320px; }
  .c-name { font-size: clamp(40px, 12vw, 60px); }
  .syr-read .hero-num { font-size: 40px; }
}
@media (max-width: 420px) {
  .dock-name span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .gindex { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .btn { padding: 0 16px; font-size: 14.5px; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; filter: none; }
  .draw, .js .mol-stage .mb { stroke-dashoffset: 0 !important; }
  .js .mol-stage .mn { opacity: 1; }
  .js .seg-s, .js .tl-line, .js .cov-bar i { transform: none; }
  .js .path li::after, .js .steps li::after { transform: none !important; }
}

/* ================================================================== ROUND 2 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav-wrap { view-transition-name: site-nav; }
  .progress { view-transition-name: site-progress; }
  ::view-transition-old(root) { animation: vtOut .32s var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn .55s var(--expo) both; }
  ::view-transition-group(site-nav) { animation-duration: .45s; animation-timing-function: var(--expo); }
}
@keyframes vtOut { to { opacity: 0; filter: blur(6px); transform: translateY(-8px) scale(.995); } }
@keyframes vtIn { from { opacity: 0; filter: blur(8px); transform: translateY(14px); } }

/* ------------------------------------------------------------------ cursor glow */
.cglow { position: fixed; left: 0; top: 0; z-index: -1; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, oklch(0.86 0.10 var(--cat-h) / .55), oklch(0.9 0.08 calc(var(--cat-h) + 40) / .18) 55%, transparent);
  transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0); transition: opacity .8s var(--ease); will-change: transform; }
.has-glow .cglow { opacity: 1; }
@media (hover: none) { .cglow { display: none; } }

/* ------------------------------------------------------------------ headline gradient sweep */
.h1 em, .h2 em, .h3 em, .bh-t em { background-size: 240% 100% !important; animation: sweep 9s linear infinite; }
.h1 em, .h2 em, .h3 em, .bh-t em { background-image: linear-gradient(100deg, var(--brand) 0%, oklch(0.55 0.2 var(--cat-h)) 22%, #2a8fd0 38%, var(--aqua-ink) 46%, var(--brand) 60%, oklch(0.55 0.2 var(--cat-h)) 80%, var(--brand) 100%) !important; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes sweep { from { background-position: 0% 50%; } to { background-position: -240% 50%; } }

/* ------------------------------------------------------------------ magnetic + tilt */
.btn-primary { transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); transition: translate .3s var(--ease), box-shadow .3s var(--ease), background .25s, transform .5s var(--spring); }
.btn-primary.is-mag { transition: translate .3s var(--ease), box-shadow .3s var(--ease), transform .18s var(--ease); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.sm .ico { width: 16px; height: 16px; }
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .7s var(--expo), --mx .55s var(--ease), --my .55s var(--ease), --spec .45s var(--ease), box-shadow .3s var(--ease), opacity .8s var(--ease), translate .9s var(--expo), filter .8s var(--ease) !important; }
[data-tilt].is-tilt { transition: transform .12s linear, --mx .55s var(--ease), --my .55s var(--ease), --spec .45s var(--ease), box-shadow .3s var(--ease), opacity .8s var(--ease), translate .9s var(--expo), filter .8s var(--ease) !important; }

/* stronger, staggered entrances: blur to sharp */
.js .reveal { filter: blur(8px); translate: 0 18px; }
.js .glass.reveal:not(.in), .js .ccard.reveal:not(.in) { scale: .985; }
.js .glass.reveal, .js .ccard.reveal { transition: opacity .8s var(--ease), translate .9s var(--expo), filter .8s var(--ease), scale .9s var(--expo), --mx .55s var(--ease), --my .55s var(--ease), --spec .45s var(--ease), box-shadow .3s var(--ease); transition-delay: var(--d, 0ms); }

/* ------------------------------------------------------------------ rolling number tickers */
.tk { display: inline-flex; line-height: 1; vertical-align: baseline; }
.tk-d { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.tk-s { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1em)); transition: transform 1.4s var(--expo); transition-delay: calc(var(--k, 0) * 70ms); }
.tk-s > span { display: block; height: 1em; line-height: 1; text-align: center; }
.tk-x { display: inline-block; }
.stage-stats b .tk, .idx .tk { line-height: 1; }

/* ------------------------------------------------------------------ molecule: live */
.mol .mpulse { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px oklch(0.75 0.15 var(--cat-h))) drop-shadow(0 0 14px oklch(0.8 0.14 var(--cat-h) / .9)); }
.mol-live .mpulse { opacity: .95; }
.mol-live .mol-in { animation: none; }
.mol-live .mnp { will-change: transform; }

/* ------------------------------------------------------------------ nav account chip */
.nav-acct { display: inline-flex; align-items: center; height: 40px; border-radius: var(--pill); color: var(--ink); font-size: 14px; font-weight: 560; letter-spacing: -0.01em; transition: background .25s var(--ease), translate .3s var(--ease); }
.nav-acct .na-in { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; height: 40px; border-radius: var(--pill); background: #fff; box-shadow: var(--ring), 0 1px 2px rgb(10 22 48 / .06); }
.nav-acct .ico { width: 16px; height: 16px; color: var(--brand); }
.nav-acct:hover { color: var(--ink); translate: 0 -1px; }
.nav-acct.is-in .na-in { padding: 0 3px; background: none; box-shadow: none; }
.av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 600 13px/1 var(--mono); letter-spacing: .02em;
  background: linear-gradient(140deg, var(--brand-3), var(--brand) 45%, oklch(0.62 0.12 200)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(36 71 216 / .25), 0 8px 16px -8px rgb(36 71 216 / .7); }
.nav-acct[hidden], .sheet-acct[hidden] { display: none !important; }
.no-acct [data-acct-chip], .no-acct [data-acct-sheet] { display: none !important; }
.sheet-acct { width: 100%; margin-top: 8px; justify-content: center; }
@media (max-width: 860px) { .nav-acct .na-t { display: none; } .nav-acct .na-in { padding: 0; width: 42px; justify-content: center; } .nav-acct.is-in .na-in { width: auto; } }

/* ------------------------------------------------------------------ home: marquee */
.mq { overflow: hidden; padding: 6px 0 clamp(28px, 4vw, 44px); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 90s linear infinite; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
.mq-row { display: flex; gap: 10px; padding-right: 10px; }
.mq a { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: var(--pill); white-space: nowrap; color: var(--ink-2); font-size: 15px; font-weight: 540; letter-spacing: -0.02em;
  background: rgb(255 255 255 / .55); box-shadow: inset 0 1px 0 #fff, var(--ring); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, color .25s, translate .3s var(--spring); }
.mq a:hover, .mq a:focus-visible { background: #fff; color: var(--ink); translate: 0 -2px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ home: bento with strong headers */
.tile { --acc: oklch(0.56 0.18 var(--acc-h, 262)); }
.bento > .tile::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgb(255 255 255 / .85), rgb(255 255 255 / .14) 48%, transparent 74%),
  radial-gradient(120% 90% at 0% 0%, oklch(0.93 0.06 var(--acc-h, 262) / .75), transparent 55%); }
.bento > .tile { border-top: 0; }
.bento > .tile > .bh::after { content: ""; position: absolute; left: clamp(20px, 2.4vw, 30px); right: clamp(20px, 2.4vw, 30px); top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--acc), oklch(0.78 0.12 calc(var(--acc-h, 262) + 40)) 60%, transparent); opacity: .85; }
.bh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.bh-n { font-size: 56px; font-weight: 500; line-height: .9; letter-spacing: -0.07em; padding-right: .04em;
  background: linear-gradient(160deg, oklch(0.5 0.2 var(--acc-h, 262)) 10%, oklch(0.72 0.15 calc(var(--acc-h, 262) + 35)) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 14px oklch(0.6 0.16 var(--acc-h, 262) / .25)); }
.bh-txt { display: grid; gap: 4px; min-width: 0; }
.bh-t { font-size: clamp(24px, 2.2vw, 28px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.bh-t em { font-style: normal; }
.bh-l { font-size: 14.5px; color: var(--ink-3); line-height: 1.4; }
.bh-x { align-self: start; margin-top: 6px !important; }
.b-lib { grid-column: span 7; } .b-px { grid-column: span 5; } .b-calc { grid-column: span 7; } .b-xc { grid-column: span 5; } .b-guides { grid-column: span 6; } .b-stack { grid-column: span 6; }
.b-calc .fine { margin-top: auto; }
.cat-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cat-mini a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); padding: 3px 0; }
.cat-mini a:hover { color: var(--ink); }
.cat-mini .cdot { width: 7px; height: 7px; box-shadow: none; }
.cat-mini b { font: 500 11px/1 var(--mono); color: var(--ink-4); }
.pxl { display: grid; gap: 6px; }
.pxl a { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(90deg, oklch(0.96 0.03 var(--cat-h) / .85), rgb(255 255 255 / .55)); box-shadow: inset 0 0 0 1px oklch(0.82 0.06 var(--cat-h) / .4); transition: translate .3s var(--spring), background .25s; }
.pxl a:hover { translate: 4px 0; color: var(--ink); }
.pxl-t b { display: block; font-weight: 600; letter-spacing: -0.02em; font-size: 15.5px; }
.pxl-t small { color: var(--ink-3); font-size: 12.5px; }
.pxl-top { display: grid; justify-items: end; gap: 2px; text-align: right; max-width: 180px; }
.pxl-top .micro { font-size: 9.5px; }
.pxl-v { font-size: 12.5px; font-weight: 560; color: oklch(0.42 0.14 var(--cat-h)); line-height: 1.25; }
.pxl .ico { width: 16px; height: 16px; color: var(--ink-3); }
.hs-empty { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.hs-vis { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: rgb(10 22 48 / .045); box-shadow: inset 0 1px 3px rgb(10 22 48 / .07); }
.hs-vis i { height: 12px; border-radius: var(--pill); background: linear-gradient(90deg, oklch(0.75 0.12 var(--acc-h)), oklch(0.62 0.15 calc(var(--acc-h) + 30))); transform-origin: 0 50%; animation: hsBar 3.6s var(--inout) infinite alternate; }
.hs-vis i:nth-child(2) { width: 72%; animation-delay: -1.2s; opacity: .8; } .hs-vis i:nth-child(3) { width: 48%; animation-delay: -2.4s; opacity: .6; }
@keyframes hsBar { from { transform: scaleX(.55); } }
.hs-list { display: grid; gap: 6px; }
.hs-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .6); box-shadow: var(--ring); font-size: 14.5px; }
.hs-list li .mono { font-size: 11.5px; color: var(--ink-3); }
.hs-list li b { font-weight: 580; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-list li small { font: 500 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.hs-sum { font-size: 13.5px; color: var(--ink-3); }
.hs-cta { margin-top: auto; }

/* home: explorer showcase */
.hx { content-visibility: visible; }
.hx-panel { border-radius: var(--r-xl); padding: clamp(14px, 2.2vw, 26px); display: grid; gap: 18px; }
.hx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 4px 0; }
.hx-name { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.hx-name b { font-size: 22px; font-weight: 620; letter-spacing: -0.035em; }
.hx-name:hover { color: var(--ink); }

/* home: how it works, scroll-linked */
.hiw { padding-top: var(--sec-pad); }
.hiw-track { position: relative; }
.hiw-line { position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hiw-line i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brand), var(--aqua)); box-shadow: 0 0 10px rgb(79 209 217 / .7); }
.hiw-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hiw-step { display: grid; gap: 8px; align-content: start; }
.hiw-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--ink-3); box-shadow: var(--ring), var(--drop); transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--spring), box-shadow .5s; margin-bottom: 8px; }
.hiw-ic .ico { width: 22px; height: 22px; }
.hiw-step.on .hiw-ic { background: var(--ink); color: var(--aqua); transform: scale(1.06); box-shadow: 0 12px 24px -12px rgb(10 22 48 / .8); }
.hiw-step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.hiw-step > p:not(.micro) { color: var(--ink-3); font-size: 14.5px; max-width: 30ch; }
.feat { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.feat .tile-head { margin-bottom: 18px; }
.feat .feat-grid { margin-top: 0; }
.hv-proto { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink-2); }
.hv-proto b { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.hv-proto span { color: var(--ink-4); }

/* ------------------------------------------------------------------ protocol explorer */
.px { display: grid; gap: 18px; --labw: 280px; }
.px-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 580; letter-spacing: -0.01em; color: var(--ink); }
.px-sn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.px-count { margin-left: auto; }
.px-vhead { display: grid; gap: 12px; }
.px-vars { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 22px; background: rgb(10 22 48 / .05); box-shadow: inset 0 1px 3px rgb(10 22 48 / .09); overflow-x: auto; scrollbar-width: none; isolation: isolate; width: max-content; max-width: 100%; }
.px-vars::-webkit-scrollbar { display: none; }
.px-vars.one { padding: 0; background: none; box-shadow: none; }
.px-vars button, .pv-static { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 17px; text-align: left; color: var(--ink-3); transition: color .35s var(--ease); }
.pv-static { background: #fff; box-shadow: var(--ring), var(--drop); color: var(--ink); }
.px-vars button[aria-selected="true"] { color: var(--ink); }
.pv-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: oklch(0.93 0.04 var(--cat-h) / .8); color: oklch(0.45 0.13 var(--cat-h)); transition: background .4s var(--ease), color .4s, transform .5s var(--spring); }
.pv-ic .ico { width: 19px; height: 19px; }
.px-vars button[aria-selected="true"] .pv-ic, .pv-static .pv-ic { background: linear-gradient(150deg, oklch(0.66 0.15 var(--cat-h)), oklch(0.48 0.17 var(--cat-h))); color: #fff; transform: rotate(-6deg); box-shadow: 0 8px 14px -8px oklch(0.45 0.16 var(--cat-h)); }
.pv-t { display: grid; gap: 2px; }
.pv-t b { font-size: 15.5px; font-weight: 560; letter-spacing: -0.03em; color: inherit; }
.px-vars button[aria-selected="true"] .pv-t b, .pv-static .pv-t b { color: var(--ink); }
.pv-t small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.px-thumb { position: absolute; z-index: 0; left: 0; top: 0; width: var(--tw, 0); height: var(--th, 0); transform: translate(var(--tx, 0), var(--ty, 5px)); border-radius: 17px; background: #fff;
  box-shadow: 0 1px 2px rgb(10 22 48 / .1), 0 10px 22px -10px rgb(10 22 48 / .35), inset 0 1px 0 #fff; transition: transform .6s var(--spring), width .6s var(--spring), height .6s var(--spring); }
.px-panel { display: grid; gap: 16px; }
.px-panel.is-on { animation: pxIn .55s var(--expo); }
@keyframes pxIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }

/* dose scale */
.pxs { margin: 0; padding: 16px 18px 12px; border-radius: 20px; background: linear-gradient(rgb(255 255 255 / .72), rgb(255 255 255 / .5)); box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop); display: grid; gap: 10px; }
.pxs-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pxs-key { display: inline-flex; align-items: center; gap: 7px; }
.pxs-key i { width: 18px; height: 8px; border-radius: var(--pill); margin-left: 8px; }
.pxs-key i.k-sheet { background: var(--brand); } .pxs-key i.k-rep { background: linear-gradient(90deg, oklch(0.74 0.12 var(--cat-h)), oklch(0.56 0.16 var(--cat-h))); }
.pxs-plot { position: relative; padding-bottom: 24px; }
.pxs-axis { position: absolute; left: var(--labw); right: 14px; top: 0; bottom: 0; pointer-events: none; }
.pxs-axis i { position: absolute; left: var(--x); top: 0; bottom: 18px; border-left: 1px dashed rgb(10 22 48 / .11); }
.pxs-axis span { position: absolute; bottom: -20px; left: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.pxs-lanes { position: relative; display: grid; gap: 2px; }
.pxs-lane { display: grid; grid-template-columns: var(--labw) minmax(0, 1fr); align-items: center; min-height: 36px; border-radius: 10px; color: var(--ink); transition: background .25s var(--ease); padding-right: 14px; }
.pxs-lane:hover, .pxs-lane:focus-visible, .pxs-lane.is-hl { background: oklch(0.95 0.035 var(--cat-h) / .8); color: var(--ink); }
.pxs-lane.k-sheet:hover, .pxs-lane.k-sheet.is-hl, .pxs-lane.k-sheet:focus-visible { background: rgb(36 71 216 / .07); }
.pxs-lab { display: flex; align-items: center; padding-block: 4px !important; gap: 8px; padding: 0 12px 0 10px; min-width: 0; font-size: 13.5px; font-weight: 540; letter-spacing: -0.01em; }
.pxs-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.pxs-tag { flex: none; font: 500 9.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: oklch(0.42 0.13 var(--cat-h)); }
.k-sheet .pxs-name { color: var(--brand-ink); font-weight: 620; }
.pxs-track { position: relative; height: 36px; }
.pxs-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgb(10 22 48 / .06); }
.pxs-m { position: absolute; top: 50%; left: calc(var(--a) - 7px); width: calc(var(--b) - var(--a) + 14px); height: 14px; margin-top: -7px; border-radius: var(--pill);
  background: linear-gradient(90deg, oklch(0.76 0.12 var(--cat-h)), oklch(0.55 0.16 var(--cat-h))); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 4px 10px -4px oklch(0.5 0.15 var(--cat-h) / .7); transform-origin: 50% 50%; }
.k-sheet .pxs-m { background: linear-gradient(90deg, var(--brand-3), var(--brand)); box-shadow: 0 0 0 3px rgb(36 71 216 / .15), 0 4px 12px -4px rgb(36 71 216 / .8); }
.pxs-m.pt { border: 2px solid #fff; }
.pxs-v { position: absolute; top: 50%; left: calc(var(--b) + 12px); transform: translateY(-50%); font-size: 12px; color: var(--ink-2); white-space: nowrap; transition: opacity .4s var(--ease); }
.pxs-v.flip { left: auto; right: calc(100% - var(--a) + 12px); }
.k-sheet .pxs-v { color: var(--brand-ink); font-weight: 600; }
.pxs-foot { color: var(--ink-4); font-size: 10px; }
.js .pxs .pxs-m { opacity: 0; transform: translateX(-26px) scale(.3, .6); transition: transform .9s var(--spring), opacity .4s var(--ease); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js .pxs .pxs-v { opacity: 0; transition-delay: calc(var(--i) * 70ms + 400ms); }
.js .pxs.in .pxs-m { opacity: 1; transform: none; }
.js .pxs.in .pxs-v { opacity: 1; }
.pxs-lane:hover .pxs-m, .pxs-lane.is-hl .pxs-m { scale: 1 1.25; }

/* protocol cards */
.px-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pxc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-card); min-width: 0; scroll-margin-top: 160px;
  background: linear-gradient(rgb(255 255 255 / .78), rgb(255 255 255 / .52)); box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .35s var(--ease), translate .4s var(--spring); }
.pxc.k-sheet { background: linear-gradient(160deg, rgb(255 255 255 / .9), oklch(0.95 0.03 265 / .7)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px rgb(36 71 216 / .35), var(--drop); }
.pxc.is-hl { translate: 0 -3px; box-shadow: inset 0 1px 0 #fff, 0 0 0 2px oklch(0.6 0.15 var(--cat-h)), var(--drop-lg); }
.pxc.k-sheet.is-hl { box-shadow: inset 0 1px 0 #fff, 0 0 0 2px var(--brand), var(--drop-lg); }
.px-panel.is-on .pxc { animation: cardIn .7s var(--expo) both; animation-delay: calc(var(--i) * 55ms + 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(8px); } }
.pxc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pxc-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  background: oklch(0.93 0.05 var(--cat-h)); color: oklch(0.38 0.13 var(--cat-h)); }
.pxc-tag .ico { width: 13px; height: 13px; }
.pxc-tag.sheet { background: var(--brand); color: #fff; }
.pxc-tag.muted { background: rgb(10 22 48 / .05); color: var(--ink-3); }
.pxc-n { font-size: 11px; color: var(--ink-4); }
.pxc-title { font-size: 17px; font-weight: 620; letter-spacing: -0.025em; line-height: 1.25; }
.pxc-dose { font-size: 22px; line-height: 1.25; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); padding: 12px 14px; border-radius: 12px; background: rgb(10 22 48 / .04); box-shadow: inset 0 1px 2px rgb(10 22 48 / .06); overflow-wrap: anywhere; }
.pxc-dose.md { font-size: 18px; letter-spacing: -0.03em; } .pxc-dose.sm { font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.4; } .pxc-dose.xs { font-size: 14px; letter-spacing: -0.015em; line-height: 1.45; }
.k-sheet .pxc-dose { background: rgb(36 71 216 / .06); }
.pxc-meta { display: grid; gap: 6px; }
.pxc-meta div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pxc-meta dt .ico { width: 15px; height: 15px; margin-top: 2px; color: oklch(0.5 0.14 var(--cat-h)); }
.pxc-draw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, oklch(0.95 0.035 var(--cat-h) / .9), rgb(255 255 255 / .4)); box-shadow: inset 0 0 0 1px oklch(0.82 0.06 var(--cat-h) / .35); }
.pxc-draw b { font-size: 18px; font-weight: 560; letter-spacing: -0.04em; color: oklch(0.36 0.14 var(--cat-h)); }
.pxc-draw small { flex-basis: 100%; font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); }
.pxc-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line); }
.pxc-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 4px; }
.pxc-vote { display: flex; align-items: center; gap: 12px; }
.vbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border-radius: var(--pill); font-size: 13px; font-weight: 580; color: var(--ink); background: #fff; box-shadow: var(--ring), 0 1px 2px rgb(10 22 48 / .08); transition: background .3s var(--ease), color .3s, box-shadow .3s, transform .4s var(--spring); }
.vbtn .ico { width: 15px; height: 15px; color: var(--ink-4); transition: color .3s, transform .5s var(--spring); }
.vbtn:hover { box-shadow: var(--ring), var(--drop); }
.vbtn:active { transform: scale(.95); }
.vbtn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 16px -8px rgb(10 22 48 / .7); }
.vbtn[aria-pressed="true"] .ico { color: var(--aqua); transform: rotate(-8deg) scale(1.1); }
.vbtn[aria-busy="true"] { opacity: .6; }
.vmeter { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vbar { height: 6px; border-radius: var(--pill); background: rgb(10 22 48 / .07); overflow: hidden; }
.vbar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--w, 0)); background: linear-gradient(90deg, oklch(0.72 0.12 var(--cat-h)), oklch(0.55 0.16 var(--cat-h))); transition: transform .9s var(--spring); }
.k-sheet .vbar i { background: linear-gradient(90deg, var(--brand-3), var(--brand)); }
.pxc.is-top .vbar i { box-shadow: 0 0 8px oklch(0.7 0.14 var(--cat-h)); }
.vcount { font: 500 11.5px/1.2 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxc.is-top .vcount { color: oklch(0.38 0.13 var(--cat-h)); }
.pxc-add { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13.5px; font-weight: 580; color: var(--brand); padding: 4px 0; }
.pxc-add .ico { width: 15px; height: 15px; transition: transform .4s var(--spring); }
.pxc-add:hover .ico { transform: rotate(90deg); }
.px-more { justify-self: start; }
.px-intro { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); max-width: 900px; line-height: 1.55; }
.px-intro .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: oklch(0.5 0.14 var(--cat-h)); }

/* ------------------------------------------------------------------ compound page, round 2 */
.pg-compound { --sec-pad: clamp(56px, 7vw, 88px); }
.csec.sm { padding-top: 56px; }
.opener.sm { margin-bottom: 16px; }
.fn { border-radius: var(--r-xl); padding: 8px; }
.fn-tabs { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: var(--pill); background: rgb(10 22 48 / .05); box-shadow: inset 0 1px 3px rgb(10 22 48 / .08); overflow-x: auto; scrollbar-width: none; isolation: isolate; }
.fn-tabs::-webkit-scrollbar { display: none; }
.fn-tabs button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); font-size: 14px; font-weight: 540; color: var(--ink-2); white-space: nowrap; transition: color .35s var(--ease); }
.fn-tabs button .ico { width: 16px; height: 16px; color: var(--ink-4); transition: color .35s; }
.fn-tabs button[aria-selected="true"] { color: #fff; }
.fn-tabs button[aria-selected="true"] .ico { color: var(--aqua); }
.fn-thumb { position: absolute; z-index: 0; left: 0; top: 5px; height: 40px; width: var(--tw, 0); transform: translateX(var(--tx, 0)); border-radius: var(--pill); background: var(--ink); box-shadow: 0 8px 18px -8px rgb(10 22 48 / .7), inset 0 1px 0 rgb(255 255 255 / .15); transition: transform .55s var(--spring), width .55s var(--spring); }
.fn-body { padding: clamp(14px, 2vw, 22px); }
.fn-panel.is-on { animation: pxIn .5s var(--expo); }
.fn-panel:focus-visible { outline-offset: 6px; }
.fn .opt li, .fn .store li, .fn .stack { padding: 16px 18px; font-size: 14.5px; }
.fn .tl { padding-top: 22px; padding-bottom: 22px; }
.fn .reg { max-width: none; font-size: 16.5px; }
.fn .caut-list li { padding: 13px 0; font-size: 14.5px; }
.fn .glass { box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .5), var(--ring), 0 10px 24px -18px rgb(10 22 48 / .3); }
.rel-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rel { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 14px; border-radius: 16px; color: var(--ink); min-width: 0; }
.rel span { display: grid; gap: 1px; min-width: 0; }
.rel b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }
.rel small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.rel .ico { width: 15px; height: 15px; color: var(--ink-3); }
.rel:hover { color: var(--ink); }
.sstrip { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-radius: 22px; flex-wrap: wrap; }
.sstrip-img { flex: none; width: 64px; border-radius: 6px; overflow: hidden; box-shadow: var(--ring), var(--drop); transform: rotate(-4deg); transition: transform .5s var(--spring); background: #fff; }
.sstrip:hover .sstrip-img { transform: rotate(0) scale(1.06); }
.sstrip-t { flex: 1 1 220px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.sstrip-t b { color: var(--ink); font-weight: 600; }
.srcs-sec { padding-top: 40px !important; content-visibility: visible; }
.srcs { border-top: 1px solid var(--line); padding-top: 10px; }
.srcs > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; padding: 8px 4px; border-radius: 10px; color: var(--ink-3); }
.srcs > summary::-webkit-details-marker { display: none; }
.srcs > summary:hover { color: var(--ink); }
.srcs > summary .ico { width: 14px; height: 14px; margin-left: auto; transform: rotate(90deg); transition: transform .4s var(--spring); }
.srcs[open] > summary .ico { transform: rotate(-90deg); }
.srcs-kinds { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 11.5px/1.3 var(--mono); color: var(--ink-4); }
.srcs-list { columns: 2; column-gap: 40px; padding: 12px 4px 4px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.srcs-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; break-inside: avoid; padding: 0 0 9px; }
.srcs-list .mono { font-size: 10.5px; color: var(--ink-4); padding-top: 1px; }
.srcs-list p { overflow-wrap: anywhere; }
.srcs-list .pmid { font-size: 11px; padding: 0 5px; }
.srcs-list .ref-k { font: 500 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: rgb(10 22 48 / .05); color: var(--ink-3); white-space: nowrap; }
.srcs[open] .srcs-list { animation: pxIn .45s var(--expo); }

/* ------------------------------------------------------------------ round 2 responsive */
@media (max-width: 1100px) { .b-guides, .b-stack { grid-column: span 6; } }
@media (max-width: 960px) {
  .bento > .tile { grid-column: span 12; }
  .hiw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hiw-line { display: none; }
}
@media (max-width: 720px) {
  .px { --labw: 0px; }
  .pxs { padding: 14px 12px 10px; }
  .pxs-lane { grid-template-columns: minmax(0, 1fr); padding: 6px 8px 0; min-height: 0; }
  .pxs-lab { padding: 0; font-size: 12.5px; }
  .pxs-track { height: 28px; margin-right: 6px; }
  .pxs-axis { left: 8px; right: 14px; }
  .px-cards { grid-template-columns: minmax(0, 1fr); }
  .px-vars { width: 100%; }
  .px-vars button { padding: 8px 14px 8px 8px; }
  .pv-ic { width: 34px; height: 34px; }
  .bh { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .bh-n { font-size: 46px; }
  .bh-x { grid-column: 1 / -1; margin-top: 0 !important; }
  .hiw-steps { grid-template-columns: minmax(0, 1fr); }
  .hiw-step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .hiw-step .hiw-ic { grid-row: span 3; margin: 0; }
  .hs-empty { grid-template-columns: 1fr; }
  .hs-vis { max-width: 160px; }
  .pxl-top { display: none !important; }
  .srcs-list { columns: 1; }
  .sstrip .cta-row { width: 100%; }
  .fn { padding: 6px; }
  .fn-body { padding: 14px 8px; }
  .mq a { height: 36px; font-size: 14px; padding: 0 14px; }
}

/* ------------------------------------------------------------------ round 2 reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; width: auto; }
  .mq { overflow-x: auto; -webkit-mask: none; mask: none; }
  .mq-row[aria-hidden] { display: none; }
  .mq-row { flex-wrap: nowrap; }
  .js .pxs .pxs-m, .js .pxs .pxs-v { opacity: 1; transform: none; }
  .tk-s { transition: none; }
  .cglow { display: none; }
  [data-tilt] { transform: none !important; }
  .btn-primary { transform: none !important; }
  .h1 em, .h2 em, .h3 em, .bh-t em { animation: none; }
  .js .glass.reveal:not(.in), .js .ccard.reveal:not(.in) { scale: 1; }
}
.pg-home .bento { padding-bottom: 0; }

/* =====================================================================================================================
   Public pages (SEO layer): locked-section panel, FAQ, calculator ordering, about page.
   html[data-member] is set in <head> when a stored session exists (gate-snippet.mjs memberHint).
   ===================================================================================================================== */
.lock { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.lock.in-shell { padding: clamp(18px, 2.4vw, 28px); }
.lock-list { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.lock-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.lock-list .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--aqua); }
.lock-list h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lock-list p { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; margin-top: 2px; }
.lock-cta { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-card); background: rgb(10 22 48 / .045); box-shadow: inset 0 1px 3px rgb(10 22 48 / .08), inset 0 0 0 1px rgb(10 22 48 / .03); }
.lock-line { font-size: 17px; line-height: 1.4; font-weight: 560; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
@media (max-width: 820px) { .lock { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq-i { border-radius: var(--r-card); padding: 0; }
.faq-i > summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.faq-i > summary::-webkit-details-marker { display: none; }
.faq-i > summary h3 { flex: 1; font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.faq-i > summary .ico { flex: none; width: 16px; height: 16px; color: var(--ink-3); transform: rotate(90deg); transition: transform .4s var(--spring); }
.faq-i[open] > summary .ico { transform: rotate(-90deg); }
.faq-i > p { padding: 0 20px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 76ch; }
.faq-i.glass.reveal.in:hover { translate: none; }

.c-upd { margin-top: 14px; color: var(--ink-4); }
.habout-more, .about-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.calc-teaser { display: grid; gap: 14px; }
.acct-pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.acct-pts li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15px; }
.acct-pts .ico { flex: none; width: 18px; height: 18px; color: var(--brand); }

.deflist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.deflist > div { border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.deflist dt { font-weight: 600; letter-spacing: -0.015em; color: var(--ink); font-size: 17px; }
.deflist dd { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; display: grid; gap: 8px; }
.deflist dd small { color: var(--ink-4); font-size: 11.5px; }
.about-h3 { margin: 34px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pg-about .how-grid { margin-top: 18px; }
.pg-about .csec .cta-row { margin-top: 4px; }

/* Calculator: the open reconstitution tool leads for visitors, the planner leads for members. */
.calc-flow { display: flex; flex-direction: column; }
html[data-member] .calc-flow #planner { order: -1; }
.eyebrow .idx.when-in { display: none; }
html[data-member] .eyebrow .idx.when-out { display: none; }
html[data-member] .eyebrow .idx.when-in { display: inline-grid; }

/* A member who lands on a public version is moved to the full page by site.js; hold the public one back meanwhile.
   The animation reveals it after 3.5 s on its own if the script never runs. */
html[data-member] .pg-preview main { visibility: hidden; animation: pv-show 0s linear 3.5s forwards; }
@keyframes pv-show { to { visibility: visible; } }

/* Chemical identity: one full table for the compound, small cards for salts, variants or blend ingredients. */
.idn { display: grid; gap: 14px; }
.idn-card { border-radius: var(--r-card); padding: 22px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.idn-card header { display: grid; gap: 6px; }
.idn-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; }
.idn-card h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2, var(--line)); text-underline-offset: 3px; }
.idn-card h3 a:hover { text-decoration-color: currentColor; }
.idn-kind { color: var(--ink-3); }
.idn-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.idn-dl > div { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.idn-dl > div.wide { grid-column: 1 / -1; }
.idn-dl dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.idn-dl dd { font-size: 14.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.idn-dl dd.mono { font-family: var(--mono); font-size: 13.5px; }
.idn-dl dd .u, .idn-lbl { color: var(--ink-3); }
.idn-lbl { font-family: var(--sans, inherit); font-size: 12.5px; margin-left: 6px; }
.idn-dl sub, .idn-dl sup { font-size: .72em; line-height: 0; }
.idn-dl .seq { letter-spacing: .01em; }
.idn-x { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.idn-x:hover { text-decoration-color: currentColor; }
.idn-x .ico { width: 12px; height: 12px; }
.idn-note, .idn-src { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; max-width: 84ch; }
.idn-src { font-size: 12px; color: var(--ink-4); padding: 0 4px; }
.idn-sub { color: var(--ink-3); margin: 8px 4px 0; }
.idn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.idn-card.mini { padding: 18px 20px; gap: 12px; }
.idn-card.mini h3 { font-size: 16.5px; }
.idn-card.mini .idn-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idn-card.glass.reveal.in:hover { translate: none; }
@media (max-width: 860px) { .idn-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .idn-card { padding: 18px; } }
