/* Layout concept: "clinical label" — porcelain surfaces, night-lab bands, spec-sheet detailing */
:root {
  --porcelain: #EEF1F0;
  --paper: #F8F9F8;
  --ink: #0C1A1D;
  --ink-2: #3C4A4E;
  --mute: #66767A;
  --line: rgba(12, 26, 29, .12);
  --line-strong: rgba(12, 26, 29, .22);
  --night: #081114;
  --night-2: #0E1C20;
  --night-line: rgba(220, 236, 240, .12);
  --on-night: #E7EEEF;
  --on-night-2: #9DB0B4;
  --cobalt: #3B57B5;
  --brand: #5D6C94;
  --photo-bg: #FEFAF9;
  --cobalt-ink: #2C4392;
  --cobalt-soft: #E0E5F4;
  --glow: #A3B3EC;
  --sema: #3B57B5;
  --tirz: #0F8C7A;
  --reta: #C2410C;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --r: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--porcelain);
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cobalt); color: #fff; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(var(--gutter), 32px); padding-right: max(var(--gutter-r), 32px);
}
@media (max-width: 700px) {
  .wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
}

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.mono, .eyebrow, .tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.night .eyebrow { color: var(--on-night-2); }
.night .eyebrow::before { background: var(--glow); box-shadow: 0 0 0 4px rgba(163,179,236,.18); }
em.ital { font-style: normal; color: var(--cobalt); }
.night em.ital { color: var(--glow); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: .005em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn .arr {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); transition: transform .4s var(--ease);
}
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn-primary { --bg: var(--cobalt); }
.btn-primary:hover { --bg: var(--cobalt-ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost .arr { background: var(--ink); color: #fff; }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-ghost:hover .arr { background: rgba(255,255,255,.16); }
.night .btn-ghost { --fg: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
.night .btn-ghost .arr { background: var(--on-night); color: var(--night); }
.night .btn-ghost:hover { --bg: var(--on-night); --fg: var(--night); }
.night .btn-ghost:hover .arr { background: var(--night); color: var(--on-night); }
.btn-light { --bg: var(--on-night); --fg: var(--night); }
.btn-light .arr { background: var(--night); color: var(--on-night); }
.btn-light:hover { --bg: #fff; }
.link-u { background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--night); color: var(--on-night-2);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}
.announce .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.announce b { color: var(--on-night); font-weight: 500; }
.announce .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3BD39B; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px #3BD39B; }
@media (max-width: 760px) { .announce .hide-sm { display: none; } }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.site-header.scrolled { background: rgba(238,241,240,.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.on-night:not(.scrolled) { color: var(--on-night); }
.site-header.on-night:not(.scrolled) .logo-mark { --c: var(--on-night); }
.site-header.on-night:not(.scrolled) .nav > a::after, .site-header.on-night:not(.scrolled) .nav-top::after { background: var(--on-night); }
.site-header.on-night:not(.scrolled) .menu-btn span { background: var(--on-night); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.logo-mark { --c: var(--ink); color: var(--c); width: 30px; height: 30px; }
.logo small { font-family: var(--f-mono); font-stretch: 100%; font-size: 10px; font-weight: 400; letter-spacing: .1em; opacity: .6; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .nav-top { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; }
.nav > a::after, .nav .nav-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav .nav-top:hover::after, .nav .nav-top[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { height: 44px; font-size: 14px; padding: 0 16px 0 20px; }
.header-cta .btn .arr { width: 24px; height: 24px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
body.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--on-night);
  padding: calc(140px + env(safe-area-inset-top, 0px)) var(--gutter-r) 40px var(--gutter);
  display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
body.menu-open .mobile-nav { clip-path: inset(0 0 0 0); }
body.menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .site-header .logo-mark { --c: var(--on-night); }
body.menu-open .menu-btn span { background: var(--on-night); }
.mobile-nav a { font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: 40px; letter-spacing: -.04em; border-bottom: 1px solid var(--night-line); padding-block: 10px; }
.mobile-nav .mono { margin-top: auto; color: var(--on-night-2); }
@media (max-width: 920px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 480px) { .header-cta .btn { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding-block: clamp(80px, 11vw, 160px); }
.night { background: var(--night); color: var(--on-night); }
.night .lede { color: var(--on-night-2); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head > * { min-width: 0; }
.sec-head .eyebrow { margin-bottom: 22px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--on-night); margin-top: -76px; padding-top: 76px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--night-line); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; }
.js-anim .hero h1 .w > span { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.hero .lede { margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 100%; min-height: 320px; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage .readout {
  position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-night-2); border: 1px solid var(--night-line); background: rgba(8,17,20,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 12px; border-radius: 10px; line-height: 1.6;
}
.hero-stage .readout b { color: var(--on-night); font-weight: 500; display: block; }
.readout.r1 { top: 10%; left: 0; } .readout.r2 { bottom: 12%; right: 0; }
.hero-glow { position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -20vw; background: radial-gradient(closest-side, rgba(59,87,181,.35), transparent); pointer-events: none; }
.hero-meta { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--night-line); }
.hero-meta > div { padding: 22px 20px 26px 0; border-right: 1px solid var(--night-line); min-width: 0; }
.hero-meta > div + div { padding-left: 20px; }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta .k { color: var(--on-night-2); }
.hero-meta .v { font-family: var(--f-display); font-stretch: 115%; font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--night-line); }
  .hero-meta > div:nth-child(4) { border-top: 1px solid var(--night-line); }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 18px; padding: 22px 28px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line-strong); }
.pillar { padding: 36px 32px 40px 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--cobalt); }
.pillar .ico svg { width: 28px; height: 28px; }
.pillar p { color: var(--ink-2); font-size: 16px; }
.pillar .tag { color: var(--mute); margin-top: auto; padding-top: 12px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.p-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; transition: box-shadow .4s var(--ease), transform .6s var(--ease);
  transform-style: preserve-3d; min-width: 0;
}
.p-card:nth-child(4), .p-card:nth-child(5) { grid-column: span 3; }
.p-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(12,26,29,.35); }
.p-card .stage {
  position: relative; height: 300px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--mc) 16%, transparent), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.p-card .stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); opacity: .7; }
.p-card .vial { position: relative; height: 240px; width: auto; transition: transform .8s var(--ease); filter: drop-shadow(0 24px 24px rgba(12,26,29,.18)); }
.p-card:hover .vial { transform: translateY(-8px) rotate(-3deg); }
.p-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.p-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-card h3 { font-size: 1.45rem; }
.p-card .dose { font-family: var(--f-mono); font-size: 14px; color: var(--mc); font-weight: 500; white-space: nowrap; }
.p-card .cls { color: var(--ink-2); font-size: 15px; }
.p-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: #FBEDE6; color: #9A3412; box-shadow: inset 0 0 0 1px rgba(194,65,12,.25); }
.p-card .go { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .5s var(--ease); }
.p-card:hover .go, .p-card:focus-visible .go { transform: scale(1) rotate(-45deg); opacity: 1; }
.p-card .flag { position: absolute; top: 16px; left: 16px; }
@media (max-width: 980px) { .p-card, .p-card:nth-child(4), .p-card:nth-child(5) { grid-column: span 3; } .p-card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } .p-card, .p-card:nth-child(4), .p-card:nth-child(5) { grid-column: auto; } .p-card .stage { height: 260px; } .p-card .vial { height: 210px; } }

/* ---------- Receptor matrix ---------- */
.matrix-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--night-line); }
.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.matrix th, .matrix td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--night-line); font-variant-numeric: tabular-nums; }
.matrix thead th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 0; }
.matrix tbody th { font-family: var(--f-display); font-stretch: 115%; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.matrix tbody th small { display: block; font-family: var(--f-mono); font-stretch: 100%; font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--on-night-2); text-transform: uppercase; margin-top: 4px; }
.matrix td.c { text-align: center; }
.matrix td.mono { font-size: 13px; color: var(--on-night); text-transform: none; letter-spacing: .02em; }
.rdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--night-line); }
.rdot.on { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 16px rgba(163,179,236,.6); }
.matrix tbody tr { transition: background .3s; }
.matrix tbody tr:hover { background: rgba(255,255,255,.03); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; }
.process-sticky { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.steps { position: relative; display: flex; flex-direction: column; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-strong); }
.steps .bar { position: absolute; left: 27px; top: 28px; width: 1px; height: calc(var(--p, 0) * (100% - 56px)); background: var(--cobalt); }
.step { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 28px; padding-bottom: 64px; }
.step:last-child { padding-bottom: 0; }
.step .n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--f-mono); font-size: 14px; transition: background .4s, color .4s, box-shadow .4s; }
.step.lit .n { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 6px var(--cobalt-soft); }
.step .card { background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step .card p { color: var(--ink-2); }
.step .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; gap: 48px; } .process-sticky { position: static; } }

/* ---------- Globe ---------- */
.globe-sec { overflow: hidden; }
.globe-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.globe-stage { position: relative; aspect-ratio: 1; max-width: 100%; }
.globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--night-line); }
.facts > div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--night-line); min-width: 0; }
.facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--night-line); }
.facts .k { color: var(--on-night-2); }
.facts .v { margin-top: 6px; font-size: 16px; }
@media (max-width: 860px) { .globe-grid { grid-template-columns: 1fr; } .globe-stage { max-width: 480px; width: 100%; margin-inline: auto; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cobalt); color: #fff; overflow: hidden; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 40px; align-items: end; padding-block: clamp(72px, 9vw, 130px); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 20px; max-width: 48ch; }
.cta-band .acts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .btn-light { --fg: var(--cobalt-ink); }
.cta-band .ring { position: absolute; right: -10%; top: -60%; width: 60vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.cta-band .ring.b { width: 40vw; right: 0; top: -30%; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 40px; padding-block: 80px 56px; }
.foot-top h4 { margin: 0 0 16px; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-top a:hover { color: var(--on-night); }
.foot-top .about-blurb { font-size: 15px; max-width: 40ch; margin-top: 16px; }
.foot-top .logo { color: var(--on-night); }
.foot-top .logo-mark { --c: var(--on-night); }
.disclaimer { border-top: 1px solid var(--night-line); padding-block: 24px; font-size: 13px; line-height: 1.6; max-width: 100ch; }
.wordmark { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; letter-spacing: -.06em; line-height: .78; font-size: clamp(5rem, 23vw, 22rem); color: transparent; -webkit-text-stroke: 1px rgba(220,236,240,.16); white-space: nowrap; user-select: none; margin-top: 8px; transform: translateY(12%); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid var(--night-line); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--night); color: var(--on-night); margin-top: -76px; padding-top: 76px; overflow: hidden; }
.page-hero .wrap { position: relative; padding-block: clamp(64px, 9vw, 130px) clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--on-night-2); margin-bottom: 32px; }
.crumbs a:hover { color: var(--on-night); }
.page-hero .hero-glow { top: -40vw; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.split .big { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1.2; }
.prose { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.portfolio-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.portfolio-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.portfolio-list li .mono { color: var(--mute); font-stretch: 100%; }
.standards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.std { background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.std .code { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 2.6rem; letter-spacing: -.04em; color: var(--cobalt); line-height: 1; }
.std p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .standards { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.pd-hero { background: var(--night); color: var(--on-night); margin-top: -76px; padding-top: 76px; overflow: hidden; }
.pd-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.pd-grid > * { min-width: 0; }
.pd-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.pd-stage .halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 55%, transparent), transparent); filter: blur(10px); opacity: .55; }
.pd-stage .orbit { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--night-line); animation: spin 60s linear infinite; }
.pd-stage .orbit.b { width: 62%; animation-duration: 40s; animation-direction: reverse; }
.pd-stage .vial { position: relative; height: 420px; width: auto; filter: drop-shadow(0 40px 40px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.pd-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.pd-hero h1 .dose { color: var(--mc-light); }
.pd-hero .lede { margin-top: 22px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pd-chips .chip { background: rgba(255,255,255,.05); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
.pd-chips .chip.warn { background: rgba(194,65,12,.18); color: #FDBA8C; box-shadow: inset 0 0 0 1px rgba(253,186,140,.3); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-right: 16px; }
.spec-table td { font-family: var(--f-mono); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pd-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
.pd-body > * { min-width: 0; }
.pd-block + .pd-block { margin-top: 56px; }
.pd-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 20px; }
.mech { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mech li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mech li:first-child { border-top: 1px solid var(--line); }
.mech li .mono { color: var(--mc); padding-top: 3px; }
.safety { background: #FBF1EC; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(194,65,12,.22); padding: 26px 28px; color: #5B2A12; display: flex; flex-direction: column; gap: 10px; }
.safety .mono { color: #9A3412; }
.coa-card { background: var(--ink); color: var(--on-night); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.coa-card p { color: var(--on-night-2); font-size: 15.5px; }
.coa-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.coa-card li { display: flex; gap: 10px; align-items: center; }
.coa-card li svg { width: 16px; height: 16px; color: var(--glow); flex: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .3s, transform .5s var(--ease); min-width: 0; }
.pager a:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -24px rgba(12,26,29,.3); transform: translateY(-3px); }
.pager a.next { text-align: right; }
.pager .mono { color: var(--mute); }
.pager .t { font-family: var(--f-display); font-stretch: 115%; font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .pd-grid, .pd-body { grid-template-columns: 1fr; }
  .pd-stage { min-height: 380px; order: -1; }
  .pd-stage .vial { height: 340px; }
  .coa-card { position: static; }
}
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; }
.contact-grid > * { min-width: 0; }
.info-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.info-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.info-list .mono { color: var(--mute); }
.info-list .v { font-size: 18px; }
.form { background: var(--paper); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--porcelain);
  border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.field .err { font-size: 13px; color: #B42318; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cobalt); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.form-status { font-size: 14.5px; }
.form-status.ok { color: #067647; }
.form-status.bad { color: #B42318; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { cursor: pointer; position: relative; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: all .25s; text-transform: none; letter-spacing: 0; font-family: var(--f-body); color: var(--ink); }
.chips-select input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chips-select input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- HCP gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px var(--gutter-r) 24px var(--gutter); background: rgba(8,17,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gate-card { width: 100%; max-width: 520px; background: var(--paper); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); animation: pop .6s var(--ease) both; }
.gate-card h2 { font-size: 1.9rem; }
.gate-card p { color: var(--ink-2); font-size: 15.5px; }
.gate-card .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Motion ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.js-anim .rv.in { animation: up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
.js-anim .fade-in { animation: up 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 500ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { transform: none; }
}

/* header over night hero */
.site-header.on-night:not(.scrolled) .btn-ghost { --fg: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
.site-header.on-night:not(.scrolled) .btn-ghost .arr { background: var(--on-night); color: var(--night); }
.site-header.on-night:not(.scrolled) .btn-ghost:hover { --bg: var(--on-night); --fg: var(--night); }
.hero-stage canvas { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.coa-card .btn { align-self: flex-start; }

/* ---------- Original logo ---------- */
.logo-img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- Product photos ---------- */
.p-card .stage img.photo { height: 250px; width: auto; max-width: 86%; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 24px 30px rgba(12,26,29,.22)); }
.pd-stage img.photo.big { height: auto; width: min(440px, 88%); max-height: 480px; object-fit: contain; border-radius: 20px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }

/* ---------- Company film ---------- */
.film { position: relative; display: block; aspect-ratio: 16 / 7; max-width: 100%; border-radius: 28px; overflow: hidden; background: radial-gradient(80% 120% at 80% 0%, rgba(59,87,181,.55), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(15,140,122,.35), transparent 60%), var(--night); color: var(--on-night); isolation: isolate; }
.film.has-poster { background: linear-gradient(180deg, rgba(8,17,20,.2), rgba(8,17,20,.75)), url(https://i.ytimg.com/vi/LPaRXxmrTxU/maxresdefault.jpg) center / cover, var(--night); }
.film-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); z-index: -1; }
.film.has-poster .film-grid { display: none; }
.film-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: var(--on-night); color: var(--night); transition: transform .5s var(--ease); }
.film-play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(231,238,239,.35); animation: ping 2.4s var(--ease) infinite; }
.film-play svg { width: 30px; height: 30px; margin-left: 4px; }
.film:hover .film-play { transform: scale(1.08); }
.film-cap { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.film-cap .mono { color: var(--on-night-2); }
.film-cap .t { font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.film-meta { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(22px, 3vw, 36px); color: var(--on-night-2); }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@media (max-width: 620px) { .film { aspect-ratio: 4 / 5; } .film-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; } }

/* ---------- Share ---------- */
.share { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--on-night-2); }
.share .mono { margin-right: 6px; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--night-line); color: var(--on-night); transition: background .3s, color .3s; }
.share a:hover { background: var(--on-night); color: var(--night); }
.share svg { width: 16px; height: 16px; }

/* ---------- Original logo (inline SVG, recoloured per surface) ---------- */
.logo-svg { height: 34px; width: auto; color: var(--brand); transition: color .4s var(--ease); }
.site-header.on-night:not(.scrolled) .logo-svg, body.menu-open .site-header .logo-svg, .site-footer .logo-svg { color: #DCE3F2; }
@media (max-width: 480px) { .logo-svg { height: 28px; } }

/* ---------- Original product photography ---------- */
.p-card .stage:has(.photo) { background: var(--photo-bg); }
.p-card .stage:has(.photo)::before { display: none; }
.p-card .stage img.photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 52%; border-radius: 0; filter: none; transition: transform 1s var(--ease); }
.p-card:hover .stage img.photo { transform: scale(1.06); }
.pd-stage img.photo.big { width: min(520px, 100%); height: auto; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: var(--photo-bg); filter: none; box-shadow: 0 50px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); animation: float 7s ease-in-out infinite; }
.p-card .stage img.photo { transform: scale(1.18); object-position: 50% 56%; }
.p-card:hover .stage img.photo { transform: scale(1.25); }
.pd-stage img.photo.big { animation-name: floatY; }
@keyframes floatY { 50% { transform: translateY(-12px); } }

/* ---------- Legal pages ---------- */
.legal { max-width: 900px; display: flex; flex-direction: column; }
.legal-block { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); }
.legal-block:last-child { border-bottom: 1px solid var(--line); }
.legal-block .mono { color: var(--cobalt); padding-top: 6px; }
.legal-block h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 12px; }
.legal-block p { color: var(--ink-2); max-width: 68ch; }
.legal-block a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .legal-block { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Availability badge (set from admin → Products) ---------- */
.avail { align-self: flex-start; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #E3F4EA; color: #067647; }
.avail[data-status="on-request"] { background: var(--cobalt-soft); color: var(--cobalt-ink); }
.avail[data-status="limited"] { background: #FBF0DC; color: #9A5B00; }
.avail[data-status="unavailable"] { background: #FBE7E4; color: #B42318; }
.pd-chips .chip.avail { box-shadow: none; }

/* ---------- Catalogue v2 (17 pens) ---------- */
:root { --photo-bg: #FEFEFE; }
.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
.p-card, .p-card:nth-child(4), .p-card:nth-child(5) { grid-column: auto; }
.p-card .stage { height: 230px; }
.p-card .stage img.photo { object-fit: contain; object-position: center; transform: none; padding: 18px 10px; }
.p-card:hover .stage img.photo { transform: scale(1.05); }
.p-card .cls { font-weight: 500; color: var(--ink); }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, minmax(0,1fr)); } .p-card:nth-child(5) { grid-column: auto; } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } .p-card .stage { height: 200px; } }
.p-card[hidden] { display: none !important; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter button { border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--f-body); cursor: pointer; transition: background .25s, color .25s; display: inline-flex; gap: 8px; align-items: center; }
.cat-filter button span { font: 12px var(--f-mono); color: var(--mute); }
.cat-filter button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.cat-filter button.on { background: var(--ink); color: #fff; box-shadow: none; }
.cat-filter button.on span { color: rgba(255,255,255,.65); }
.pd-stage img.photo.big { width: min(620px, 100%); aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 24px; background: var(--photo-bg); padding: 10px; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.benefit { background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.benefit h3 { font-size: 1.1rem; color: var(--mc); }
.benefit p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; } }
.dose-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.dose-table { width: 100%; border-collapse: collapse; }
.dose-table th, .dose-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dose-table th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.dose-table tbody tr:last-child td { border-bottom: 0; }
.dose-table td.mono { font-size: 14px; white-space: nowrap; }
.dose-table tr.one { background: color-mix(in srgb, var(--mc) 7%, transparent); }
.dose-table tr.one .chip { margin-left: 6px; background: var(--mc); color: #fff; box-shadow: none; }
.dose-table .bar-col { width: 34%; }
.dose-bar { display: block; height: 6px; background: var(--porcelain); border-radius: 999px; overflow: hidden; }
.dose-bar span { display: block; height: 100%; background: var(--mc); border-radius: 999px; }
.dose-note { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 560px) { .dose-table .bar-col { display: none; } }

/* ---------- Products mega menu ---------- */
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; }
.nav-top .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.has-mega.open .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); width: min(1080px, calc(100vw - 48px)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .25s; z-index: 70; color: var(--ink); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s; }
.mega-in { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.25fr) 230px; gap: 0; background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(8,17,20,.35); overflow: hidden; }
.mm-col { padding: 22px 22px 18px; min-width: 0; }
.mm-weight { border-right: 1px solid var(--line); }
.mm-others { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-content: start; }
.mm-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mm-h span { color: var(--ink-2); }
.mm-h:hover { color: var(--cobalt); }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mm-fam { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.mm-fam:last-child { border-bottom: 0; }
.mm-name { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; font-weight: 600; font-size: 15px; line-height: 1.25; }
.mm-name small { grid-column: 2; font-weight: 400; font-size: 12.5px; color: var(--mute); }
.mm-name:hover { color: var(--cobalt); }
.mm-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); grid-row: 1; }
.mm-doses { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 20px; }
.mm-doses a { font-family: var(--f-mono); font-size: 12.5px; padding: 4px 8px; border-radius: 7px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.mm-doses a span { font-size: 10px; margin-left: 2px; color: var(--mute); }
.mm-doses a:hover { background: var(--ink); color: #fff; }
.mm-doses a:hover span { color: rgba(255,255,255,.6); }
.mm-side { background: var(--night); color: var(--on-night); padding: 22px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.mm-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--night-line); transition: background .25s; }
.mm-card:hover { background: rgba(255,255,255,.09); }
.mm-card b { font-weight: 600; }
.mm-card > span:last-child { color: var(--on-night-2); font-size: 13.5px; line-height: 1.45; }
.mm-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--glow); color: var(--night); display: grid; place-items: center; }
.mm-ic svg { width: 20px; height: 20px; }
.mm-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14.5px; }
.mm-all .arr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--on-night); color: var(--night); }
.site-header.on-night:not(.scrolled) .mega { color: var(--ink); }
@media (max-width: 1120px) { .mega-in { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); } .mm-side { grid-column: 1 / -1; flex-direction: row; align-items: center; } .mm-card { flex: 1; } }

/* ---------- Mobile product menu ---------- */
.mobile-nav { overflow-y: auto; }
.m-prod summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: 40px; letter-spacing: -.04em; border-bottom: 1px solid var(--night-line); padding-block: 10px; display: flex; justify-content: space-between; align-items: center; }
.m-prod summary::-webkit-details-marker { display: none; }
.m-prod summary .mono { font-size: 12px; letter-spacing: .08em; color: var(--on-night-2); }
.m-groups { display: flex; flex-direction: column; gap: 18px; padding: 16px 0 20px; }
.m-group { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav .m-cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); border: 0; padding: 0; font-family: var(--f-mono); font-weight: 400; }
.m-fam { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; font-size: 16px; }
.m-doses { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-nav .m-doses a { font: 13px var(--f-mono); letter-spacing: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--night-line); }
.mobile-nav .m-all { font: 500 15px var(--f-body); letter-spacing: 0; border: 0; padding: 4px 0; color: var(--glow); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.calc-form { background: var(--paper); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.calc-form select, .num-in input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--porcelain); border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; outline: none; }
.calc-form select:focus, .num-in input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); background: #fff; }
.calc-form .lbl, .calc-form .field > label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.seg-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--porcelain); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-toggle label { position: relative; cursor: pointer; }
.seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle span { display: block; text-align: center; padding: 10px; border-radius: 9px; font-weight: 500; font-size: 14.5px; transition: background .2s, color .2s; }
.seg-toggle input:checked + span { background: var(--ink); color: #fff; }
.seg-toggle input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.num-in { position: relative; }
.num-in input { font-family: var(--f-display); font-stretch: 112%; font-size: 1.6rem; font-weight: 600; padding-right: 80px; font-variant-numeric: tabular-nums; }
.num-in span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 13px; color: var(--mute); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { border: 0; cursor: pointer; font: 500 14px var(--f-body); padding: 9px 13px; border-radius: 999px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.presets button small { font: 10.5px var(--f-mono); color: var(--mute); margin-left: 4px; text-transform: uppercase; }
.presets button:hover { background: var(--ink); color: #fff; }
.presets button:hover small { color: rgba(255,255,255,.6); }
.calc-note { font-size: 13.5px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 16px; }
.calc-out { --mc: var(--cobalt); background: var(--night); color: var(--on-night); border-radius: 24px; padding: clamp(22px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 22px; position: sticky; top: 110px; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 45%, transparent), transparent); pointer-events: none; }
.dial-wrap { position: relative; width: min(240px, 70%); aspect-ratio: 1; margin-inline: auto; }
.dial { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 12; }
.dial-bg { stroke: rgba(255,255,255,.08); }
.dial-fg { stroke: var(--mc); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .6s var(--ease), stroke .3s; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--mc) 70%, transparent)); }
.dial-tick { stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.dial-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.dial-c .big { font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial-c .mono { color: var(--on-night-2); }
.out-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--night-line); position: relative; }
.out-list > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--night-line); min-width: 0; }
.out-list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--night-line); }
.out-list > div#out-parts-row { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.out-list dt { color: var(--on-night-2); margin-bottom: 4px; }
.out-list dd { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.out-warn { background: rgba(245,184,92,.12); color: #F5C77E; border-radius: 12px; padding: 12px 14px; font-size: 14px; position: relative; }
.calc-out .btn { align-self: flex-start; position: relative; }
.calc-link { margin-top: 16px; }
.err { color: #B42318; font-size: 13px; min-height: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-out { position: relative; top: auto; } }
.calc-form .seg-toggle label, .calc-form .seg-toggle span { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 14.5px; color: inherit; }
.out-list > div:nth-child(5):last-of-type, .out-list > div:nth-child(5) { grid-column: 1 / -1; }
