/* ============================================================
   QUANTUM CELL LABS — site styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* tonal blacks (cool-neutral) */
  --bg-0: #0c0c0d;
  --bg-1: #111113;
  --bg-2: #161619;
  --bg-3: #1c1c20;
  --bg-card: #15151a;
  --bg-elev: #1a1a1f;

  /* metallic neutrals */
  --silver: #e8e8e6;
  --silver-2: #c9c9c5;
  --silver-3: #9a9a96;
  --platinum: #b6b6b2;
  --line: rgba(232, 232, 230, 0.08);
  --line-2: rgba(232, 232, 230, 0.14);
  --line-bright: rgba(232, 232, 230, 0.28);

  /* text */
  --t1: #ededeb;
  --t2: #b8b8b4;
  --t3: #80807c;
  --t4: #56565a;

  /* one cool accent — restrained */
  --accent: oklch(0.78 0.06 220);   /* cool steel-blue */
  --accent-dim: oklch(0.78 0.06 220 / 0.18);

  /* type */
  --f-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-serif: 'Fraunces', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* layout */
  --container: 1280px;
  --container-tight: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-sans);
  background: var(--bg-0);
  color: var(--t1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--silver); color: var(--bg-0); }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* film grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.92" numOctaves="2" seed="5"/><feColorMatrix values="0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0.5 0"/></filter><rect width="180" height="180" filter="url(%23n)" opacity="0.35"/></svg>');
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ─── utilities ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--silver-3);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.serif { font-family: var(--f-serif); font-weight: 300; letter-spacing: -0.01em; font-style: italic; }
.mono { font-family: var(--f-mono); }

.hairline { height: 1px; background: var(--line); border: 0; }

/* metallic shine on text */
.metal {
  background: linear-gradient(180deg, #f4f4f1 0%, #cecec9 45%, #888884 60%, #ededea 80%, #c9c9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(12, 12, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(1.05); }
.nav-logo-text {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.nav-logo-text .dim { color: var(--silver-3); font-weight: 400; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  border-radius: 100px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--t1); background: var(--line); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--t3);
  letter-spacing: 0.06em;
}
.nav-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.72 0.14 145);
  box-shadow: 0 0 10px oklch(0.72 0.14 145 / 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--silver);
  color: var(--bg-0);
  border: 1px solid var(--silver);
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -16px rgba(232, 232, 230, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-bright); background: var(--line); }

.btn-lg { padding: 16px 28px; font-size: 14px; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 100px; }
.menu-btn span { display: block; width: 16px; height: 1px; background: var(--t1); margin: 4px auto; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 120px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #1a1a1f 0%, #0c0c0d 60%);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-glyph {
  position: absolute;
  top: 50%; left: 50%;
  width: min(92vh, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -45%);
  background: url('assets/qcl-flower-of-life.png') no-repeat center / contain;
  opacity: 0.10;
  filter: brightness(2) contrast(0.8);
  mix-blend-mode: screen;
  animation: floatGlyph 18s ease-in-out infinite;
}
@keyframes floatGlyph {
  0%, 100% { transform: translate(-50%, -45%) rotate(0deg); }
  50% { transform: translate(-50%, -47%) rotate(2deg); }
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,232,230,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,232,230,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-bg-glow.a { background: oklch(0.55 0.05 220 / 0.15); top: -200px; left: -200px; }
.hero-bg-glow.b { background: oklch(0.55 0.04 30 / 0.10); bottom: -200px; right: -200px; }

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  width: 100%;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  margin-bottom: 36px;
}
.hero-meta-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
}
.hero-meta-divider { width: 1px; height: 12px; background: var(--line-2); }
.hero-meta-tag.dim { color: var(--t3); }

.hero h1 {
  font-family: var(--f-sans);
  font-size: clamp(44px, 8.4vw, 124px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
  max-width: 18ch;
}
.hero h1 .ser {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--t2);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* hero specs band — bottom */
.hero-specs {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 13, 0.4);
  backdrop-filter: blur(8px);
}
.hero-specs-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-spec {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-spec:first-child { border-left: none; }
.hero-spec-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
}
.hero-spec-v {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--t1);
  letter-spacing: -0.02em;
}
.hero-spec-v .unit { font-size: 12px; color: var(--t3); margin-left: 4px; font-family: var(--f-mono); }

/* ─── SHOWCASE ─── */
.showcase {
  position: relative;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.showcase-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}
.showcase-vial {
  position: relative;
  z-index: 2;
  height: 640px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 60px 60px rgba(0,0,0,0.6)) drop-shadow(0 0 80px rgba(232,232,230,0.06));
}
.showcase-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.78 0.04 220 / 0.18) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
}
.showcase-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 560px;
  z-index: 1;
}
.showcase-rings circle {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}
.showcase-readouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.readout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--silver-3);
  text-transform: uppercase;
}
.readout::before {
  content: '';
  width: 28px; height: 1px; background: var(--line-bright);
}
.readout-r::before { display: none; }
.readout-r::after {
  content: '';
  width: 28px; height: 1px; background: var(--line-bright);
}
.readout .val { color: var(--silver); font-weight: 500; }
.readout.r1 { top: 14%; left: 6%; }
.readout.r2 { top: 38%; left: 0; }
.readout.r3 { bottom: 22%; left: 4%; }
.readout.r4 { top: 22%; right: 4%; }
.readout-r { flex-direction: row-reverse; }
.readout.r5 { top: 50%; right: 0; }
.readout.r6 { bottom: 16%; right: 6%; }

.showcase-content { padding-right: 20px; }
.showcase-content .eyebrow { margin-bottom: 28px; }
.showcase-content h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.showcase-content h2 .ser { font-family: var(--f-serif); font-style: italic; font-weight: 300; }
.showcase-content p {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 24px;
}
.showcase-spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
  border: 1px solid var(--line);
}
.showcase-spec-list li {
  background: var(--bg-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.showcase-spec-list .k {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
}
.showcase-spec-list .v { font-size: 15px; color: var(--t1); }

/* ─── SECTION HEADER ─── */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.sec-head h2 .ser { font-family: var(--f-serif); font-style: italic; font-weight: 300; }
.sec-head .right p {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 56ch;
}
.sec-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.sec-head.center .left { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.sec-head.center h2 { max-width: 22ch; }
.sec-head.center .right p { margin: 0 auto; }

.sec-head .left { display: flex; flex-direction: column; gap: 24px; }

/* ─── QEF PROTOCOL DIAGRAM ─── */
.qef {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.qef::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, oklch(0.78 0.04 220 / 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.qef-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
}
.qef-stage {
  padding: 36px 28px 32px;
  border-left: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.qef-stage:first-child { border-left: none; }
.qef-stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver-3), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.qef-stage:hover::before { opacity: 0.5; }

.qef-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.15em;
}
.qef-icon {
  width: 44px; height: 44px;
  color: var(--silver);
  margin-bottom: 8px;
}
.qef-stage h4 {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.qef-stage p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
  margin-top: auto;
}
.qef-stage .duration {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--silver-3);
  letter-spacing: 0.08em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* connecting flow line */
.qef-flow {
  position: absolute;
  top: 78px;
  left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright) 10%, var(--line-bright) 90%, transparent);
  z-index: 0;
  pointer-events: none;
}
.qef-flow-pulse {
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  filter: blur(1px);
  animation: flowPulse 5s linear infinite;
}
@keyframes flowPulse {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw)); }
}

/* ─── COMPOUND INDEX (interactive table) ─── */
.compounds { background: var(--bg-0); }
.compounds-tools {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}
.compounds-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.compounds-search svg { color: var(--t3); flex-shrink: 0; }
.compounds-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--t1);
  font-family: var(--f-sans);
  font-size: 14px;
  padding: 6px 0;
  min-width: 100px;
}
.compounds-search input::placeholder { color: var(--t3); }
.compounds-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cf {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--t2);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.cf:hover { border-color: var(--line-bright); color: var(--t1); }
.cf.active { background: var(--silver); color: var(--bg-0); border-color: var(--silver); }
.compounds-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.05em;
  padding-left: 8px;
}
.compounds-count strong { color: var(--silver); font-weight: 500; }

.compound-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-sans);
}
.compound-table thead {
  background: var(--bg-1);
}
.compound-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 14px 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.compound-table th:hover { color: var(--t1); }
.compound-table th .sort-arrow { opacity: 0.3; margin-left: 6px; transition: opacity .2s; }
.compound-table th.sorted .sort-arrow { opacity: 1; }

.compound-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--t1);
  vertical-align: middle;
  background: var(--bg-1);
  transition: background .2s ease;
}
.compound-table tbody tr { cursor: pointer; }
.compound-table tbody tr:hover td { background: var(--bg-2); }
.compound-table tbody tr:last-child td { border-bottom: 0; }
.compound-table tbody tr.expanded td { background: var(--bg-2); }

.ct-name {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.ct-name .ser { font-family: var(--f-serif); font-style: italic; color: var(--t3); margin-left: 6px; font-size: 13px; font-weight: 400; }
.ct-cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-3);
}
.ct-purity {
  font-family: var(--f-mono);
  color: var(--silver);
  font-size: 13px;
}
.ct-mass {
  font-family: var(--f-mono);
  color: var(--t2);
  font-size: 13px;
}
.ct-storage {
  font-family: var(--f-mono);
  color: var(--t2);
  font-size: 13px;
}
.ct-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
}
.ct-stock-pill.in {
  color: oklch(0.78 0.12 145);
  border-color: oklch(0.78 0.12 145 / 0.4);
}
.ct-stock-pill.in::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: oklch(0.72 0.14 145); }
.ct-stock-pill.low {
  color: oklch(0.82 0.12 70);
  border-color: oklch(0.82 0.12 70 / 0.4);
}
.ct-stock-pill.low::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: oklch(0.82 0.14 70); }

.ct-arrow { color: var(--t3); transition: transform .2s; }
tr.expanded .ct-arrow { transform: rotate(90deg); color: var(--silver); }

.ct-detail {
  background: var(--bg-2) !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--line);
}
.ct-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  padding: 28px 24px;
  align-items: start;
}
.ct-detail-inner h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
  margin-bottom: 8px;
}
.ct-detail-inner p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.65;
}
.ct-detail-inner .seq {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--silver-2);
  word-break: break-all;
  background: var(--bg-1);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-top: 8px;
  line-height: 1.4;
}
.ct-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── BATCH LOOKUP ─── */
.batch {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.batch-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.batch-content .eyebrow { margin-bottom: 24px; }
.batch-content h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.batch-content h2 .ser { font-family: var(--f-serif); font-style: italic; }
.batch-content p {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 32px;
}

.batch-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  font-family: var(--f-mono);
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.batch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.batch-card-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-3);
}
.batch-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.78 0.12 145);
}
.batch-card-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: oklch(0.72 0.14 145); box-shadow: 0 0 8px oklch(0.72 0.14 145 / 0.6); }

.batch-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.batch-input {
  flex: 1;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--t1);
  letter-spacing: 0.05em;
  outline: 0;
  transition: border-color .2s;
}
.batch-input:focus { border-color: var(--silver-3); }
.batch-input::placeholder { color: var(--t3); }
.batch-submit {
  padding: 14px 22px;
  background: var(--silver);
  color: var(--bg-0);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.batch-submit:hover { background: #fff; }

.batch-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.batch-result-row {
  background: var(--bg-1);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.batch-result-row.full { grid-column: 1 / -1; }
.batch-result-k {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t3);
}
.batch-result-v {
  font-size: 13px;
  color: var(--t1);
}
.batch-result-v.silver { color: var(--silver); font-weight: 500; }

.batch-coa-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-3);
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  width: fit-content;
  transition: all .2s;
  cursor: pointer;
}
.batch-coa-link:hover { border-color: var(--silver-3); color: var(--silver); }

/* ─── STANDARDS ─── */
.standards { background: var(--bg-0); }
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.std-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: border-color .25s ease, transform .25s ease;
}
.std-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.std-card-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.12em;
}
.std-card-icon {
  width: 36px;
  height: 36px;
  color: var(--silver);
}
.std-card h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.std-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
  margin-top: auto;
}

/* ─── RESEARCH ─── */
.research { background: var(--bg-1); border-top: 1px solid var(--line); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.research-card {
  background: var(--bg-0);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .25s ease;
}
.research-card:hover { background: var(--bg-2, #0e1218); }
.research-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--silver);
  margin-bottom: 24px;
}
.research-figure {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  color: var(--t1);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.research-figure .research-unit {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 18px;
  color: var(--t3);
  margin-left: 4px;
  letter-spacing: 0;
}
.research-card h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.35;
  margin-bottom: 10px;
}
.research-card h4 .ser { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.research-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
  flex: 1;
}
.research-src {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.research-disclaimer {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--t3);
  max-width: 80ch;
}

/* ─── BOX FEATURE ─── */
.box-feature {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.box-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.box-feature-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-0);
}
.box-feature-img img {
  width: 100%;
  height: auto;
  display: block;
}
.box-feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  pointer-events: none;
  border-radius: 4px;
}
.box-feature-content h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 24px 0;
}
.box-feature-content h2 .ser { font-family: var(--f-serif); font-style: italic; }
.box-feature-content p {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 50ch;
}
.box-feature-list {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.box-feature-list li {
  background: var(--bg-1);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--t1);
}
.box-feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--silver);
  margin-left: 8px;
  border-radius: 50%;
}

/* ─── JOURNAL ─── */
.journal { background: var(--bg-0); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.journal-card {
  background: var(--bg-1);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: background .25s ease;
  min-height: 380px;
}
.journal-card:hover { background: var(--bg-2); }
.journal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.journal-meta .cat { color: var(--silver-3); }
.journal-meta .date { color: var(--t3); }
.journal-card h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--t1);
  font-family: var(--f-serif);
  font-style: italic;
}
.journal-card .ex {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.65;
  flex: 1;
}
.journal-card .read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-3);
  margin-top: 8px;
}
.journal-card:hover .read { color: var(--silver); }

/* ─── NEWSLETTER / CTA ─── */
.cta {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/qcl-flower-of-life.png') no-repeat center / contain;
  opacity: 0.04;
  filter: brightness(2);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cta h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 24px 0 24px;
}
.cta h2 .ser { font-family: var(--f-serif); font-style: italic; }
.cta p {
  color: var(--t2);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── DISCLAIMER ─── */
.disclaim {
  background: var(--bg-0);
  padding: 60px 0;
}
.disclaim-box {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.disclaim-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-3);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  white-space: nowrap;
}
.disclaim-text p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.disclaim-text p:last-child { margin-bottom: 0; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-0);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .nav-logo { margin-bottom: 24px; }
.footer-brand p {
  color: var(--t3);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 24px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--t3);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-3);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
  color: var(--t2);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--t1); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t4);
  letter-spacing: 0.06em;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--t4); transition: color .2s; }
.footer-legal a:hover { color: var(--t1); }

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-specs-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-spec:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .hero-spec:nth-child(4) { border-top: 1px solid var(--line); }
  .showcase-grid, .batch-grid, .box-feature-grid { grid-template-columns: 1fr; gap: 60px; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .qef-stages { grid-template-columns: repeat(2, 1fr); }
  .qef-stage { border-left: none; border-top: 1px solid var(--line); }
  .qef-stage:nth-child(odd) { border-right: 1px solid var(--line); }
  .qef-stage:nth-child(-n+2) { border-top: none; }
  .qef-flow { display: none; }
  .standards-grid { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .compounds-tools { grid-template-columns: 1fr; }
  .compounds-search { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 12px; }
}
@media (max-width: 700px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-status { display: none; }
  .nav-cta-text { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
  .hero-meta-divider { display: none; }
  .hero-specs-inner { grid-template-columns: 1fr; }
  .hero-spec { border-left: none; border-top: 1px solid var(--line); }
  .hero-spec:first-child { border-top: none; }
  .standards-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ct-detail-inner { grid-template-columns: 1fr; gap: 20px; }
  .compound-table th:nth-child(3),
  .compound-table th:nth-child(5),
  .compound-table td:nth-child(3),
  .compound-table td:nth-child(5) { display: none; }
  .disclaim-box { grid-template-columns: 1fr; gap: 16px; }
  .showcase-vial { height: 460px; }
  .showcase-readouts { display: none; }
  .showcase-spec-list { grid-template-columns: 1fr; }
}
