* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mint: #f2fbf6;
    --mint-deep: #e6f5ef;
    --panel: #ffffff;
    --panel-hi: #f8fdfb;
    --bio-ink: #0a1f1a;
    --green: #00c853;
    --green-hi: #4ade80;
    --cyan: #06b6d4;
    --cyan-hi: #22d3ee;
    --red: #dc2626;
    --red-hi: #f87171;
    --purple: #8b5cf6;
    --purple-hi: #a78bfa;
    --ink: #0a1f1a;
    --muted: #5a7a70;
    --grad: linear-gradient(120deg, #00c853, #06b6d4, #8b5cf6);
    --grad-gc: linear-gradient(90deg, #00c853, #06b6d4);
    --grad-cg: linear-gradient(90deg, #06b6d4, #00c853);
    --grad-pr: linear-gradient(120deg, #8b5cf6, #dc2626);
    --grad-rg: linear-gradient(120deg, #dc2626, #00c853);
    --grad-gc3: linear-gradient(120deg, #00c853, #06b6d4, #8b5cf6);
    --grad-wm: linear-gradient(160deg, #ffffff, #e6f5ef);
    --colony: radial-gradient(rgba(0,200,83,0.05) 1.5px, transparent 1.5px);
    --grain: radial-gradient(rgba(10,31,26,0.015) 1px, transparent 1px);
    --barcode: repeating-linear-gradient(90deg, rgba(10,31,26,0.55) 0 1px, transparent 1px 3px, rgba(10,31,26,0.32) 1px 2px, transparent 2px 6px);
    --head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    --shadow: 0 1px 3px rgba(10,31,26,0.04), 0 4px 14px rgba(10,31,26,0.06);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--mint);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono-tag, .mono-pill, .mono-hint { font-family: var(--mono); }

/* Tone tokens shared by petri dishes, cells, tubes, molecules and colonies */
.tone-green  { --ring: rgba(0,200,83,0.55);  --ring-soft: rgba(0,200,83,0.16);  --tc: var(--green); }
.tone-cyan   { --ring: rgba(6,182,212,0.55); --ring-soft: rgba(6,182,212,0.16); --tc: var(--cyan); }
.tone-purple { --ring: rgba(139,92,246,0.55);--ring-soft: rgba(139,92,246,0.16);--tc: var(--purple); }
.tone-red    { --ring: rgba(220,38,38,0.55); --ring-soft: rgba(220,38,38,0.16); --tc: var(--red); }

/* ===== Header ===== */
.bc-header {
    position: sticky; top: 0; z-index: 60;
    height: 76px;
    background: var(--bio-ink);
    border-bottom: 3px solid transparent;
    border-image: var(--grad-gc3) 1;
}
.bc-header-inner {
    max-width: 1280px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; padding: 0 24px; position: relative;
}
.bc-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.bc-helix { position: relative; width: 16px; height: 34px; flex: 0 0 auto;
    background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.22) 0 1px, transparent 1px 7px); }
.bc-helix::before, .bc-helix::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.bc-helix::before { left: 2px; background: var(--green); animation: helix-a 3.2s ease-in-out infinite; }
.bc-helix::after { right: 2px; background: var(--purple); animation: helix-b 3.2s ease-in-out infinite; }
@keyframes helix-a { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.66); } }
@keyframes helix-b { 0%,100% { transform: scaleY(0.66); } 50% { transform: scaleY(1); } }

.bc-brand-block { display: flex; flex-direction: column; gap: 2px; }
.bc-logo { display: flex; align-items: baseline; gap: 7px; line-height: 1; }
.bc-logo-bio { font-family: var(--head); font-style: italic; font-weight: 900; color: #fff; font-size: 24px; letter-spacing: 0.02em; }
.bc-logo-circuit { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--green); font-size: 18px; letter-spacing: 0.12em; }
.bc-tagline { color: var(--cyan); font-size: 10px; letter-spacing: 0.16em; }

.bc-nav { display: flex; align-items: center; gap: 26px; }
.bc-nav a { font-size: 15px; transition: transform .2s, opacity .2s; }
.bc-nav a:hover { transform: translateY(-2px); }
.bc-nav-1 { font-family: var(--head); font-style: italic; color: #fff; }
.bc-nav-2 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--green); letter-spacing: 0.1em; }
.bc-nav-3 { font-family: var(--head); font-style: italic; color: var(--cyan); }
.bc-nav-4 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--purple-hi); letter-spacing: 0.1em; }

.bc-live { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bc-live-1 { color: var(--green); font-size: 11px; letter-spacing: 0.1em; }
.bc-live-2 { color: var(--purple-hi); font-size: 10px; letter-spacing: 0.1em; }

.bc-fret { position: absolute; top: 50%; width: 40px; height: 12px; transform: translateY(-50%);
    border-top: 1px dashed rgba(255,255,255,0.28); }
.bc-fret-left { left: 0; } .bc-fret-right { right: 0; }

/* ===== Layout ===== */
.main-content { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
section { position: relative; }
.bc-head { text-align: center; margin: 56px 0 30px; }
.bc-head-line { display: block; width: 90px; height: 3px; margin: 0 auto 16px;
    border-radius: 3px; position: relative; overflow: hidden; }
.bc-line-gc { background: var(--grad-gc); }
.bc-line-cg { background: var(--grad-cg); }
.bc-line-pr { background: var(--grad-pr); }
.bc-line-rg { background: var(--grad-rg); }
.bc-line-gc3 { background: var(--grad-gc3); }
.bc-head-title { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--ink); letter-spacing: 0.01em; }
.bc-head-sub { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; margin-top: 8px; display: block; }

/* ===== Hero: Petri stack ===== */
.bc-hero { padding: 28px 0 10px; overflow-x: clip; }
.bc-petri-stack { position: relative; height: clamp(400px, 72vh, 640px); }
.bc-stack-glow { position: absolute; left: 12%; top: 8%; width: 46%; height: 70%; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,83,0.16), transparent 70%); filter: blur(30px); }
.bc-petri { position: absolute; aspect-ratio: 1 / 1; border-radius: 50%; display: block;
    transition: transform .4s cubic-bezier(.22,1,.36,1), filter .4s; }
.bc-petri-1 { width: 42%; left: 3%; bottom: 3%; z-index: 1; }
.bc-petri-2 { width: 38%; left: 31%; top: 2%; z-index: 2; }
.bc-petri-3 { width: 34%; right: 3%; top: 16%; z-index: 3; }
.bc-petri-rings { position: absolute; inset: -5%; border-radius: 50%; border: 2px dashed var(--ring);
    animation: bc-spin 30s linear infinite; }
.bc-petri-rings::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed var(--ring); }
.bc-petri-rings::after { content: ''; position: absolute; inset: 19%; border-radius: 50%; border: 1px dashed var(--ring); }
.bc-petri.rings-2 .bc-petri-rings::after { display: none; }
@keyframes bc-spin { to { transform: rotate(360deg); } }
.bc-petri-bases { position: absolute; inset: 15%; border-radius: 50%; opacity: .55;
    background: repeating-conic-gradient(from 0deg, var(--ring) 0deg 0.8deg, transparent 0.8deg 72deg);
    -webkit-mask: radial-gradient(circle closest-side, transparent 16%, #000 22%);
    mask: radial-gradient(circle closest-side, transparent 16%, #000 22%); }
.bc-petri-disc { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--panel); box-shadow: inset 0 0 0 1px var(--ring-soft); }
.bc-petri-disc img { width: 100%; height: 100%; object-fit: cover; }
.bc-petri-veil { position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 36%, transparent 26%, rgba(10,31,26,0.72) 100%); }
.bc-petri-cap { position: absolute; left: 13%; right: 13%; bottom: 11%; text-align: center;
    background: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 14px; padding: 9px 12px; box-shadow: 0 6px 16px rgba(10,31,26,0.18); }
.bc-petri-cat { display: inline-block; font-size: 10px; letter-spacing: 0.1em; padding: 2px 10px;
    border-radius: 20px; background: var(--tc); color: #fff; }
.bc-petri-title { display: block; font-family: var(--head); font-style: italic; font-weight: 700;
    font-size: 18px; color: var(--bio-ink); margin-top: 6px; line-height: 1.15; }
.bc-petri-read { display: block; margin-top: 6px; text-align: right; color: var(--tc);
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.bc-petri-dot { position: absolute; right: 13%; top: 13%; width: 10px; height: 10px; border-radius: 50%;
    background: var(--tc); box-shadow: 0 0 0 4px var(--ring-soft); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.bc-petri:hover { transform: translateY(-8px); filter: drop-shadow(0 20px 34px var(--ring-soft)); }
.bc-petri:hover .bc-petri-rings { animation-duration: 6s; }
.bc-hero-hint { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; margin-top: 16px; }

/* Mobile hero: three fixed petri circles (<=130px) */
.bc-mob { display: none; }
.bc-mob-row { position: relative; width: 242px; height: 122px; margin: 2px auto; }
.bc-mpetri { position: absolute; border-radius: 50%; display: block;
    transition: transform .3s; }
.bc-mpetri-1 { width: 78px; height: 78px; left: 0; top: 30px; z-index: 1; }
.bc-mpetri-2 { width: 86px; height: 86px; left: 82px; top: 18px; z-index: 3; }
.bc-mpetri-3 { width: 78px; height: 78px; left: 164px; top: 30px; z-index: 2; }
.bc-mpetri-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--tc); }
.bc-mpetri-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--ring); }
.bc-mpetri-bases { position: absolute; inset: 11px; border-radius: 50%; opacity: .45;
    background: repeating-conic-gradient(from 0deg, var(--ring) 0deg 1deg, transparent 1deg 90deg);
    -webkit-mask: radial-gradient(circle closest-side, transparent 14%, #000 22%);
    mask: radial-gradient(circle closest-side, transparent 14%, #000 22%); }
.bc-mpetri-img { position: absolute; inset: 11px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--panel); }
.bc-mpetri-img img { width: 100%; height: 100%; object-fit: cover; }
.bc-mpetri-label { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1px;
    font-size: 7.5px; padding: 1px 6px; border-radius: 10px; background: var(--tc); color: #fff; white-space: nowrap; }
.bc-mpetri:hover { transform: translateY(-3px); }

/* ===== Cell grid ===== */
.bc-cell-section { padding: 10px 0 20px; }
.bc-cell-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bc-cell { position: relative; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; width: 100%; max-width: 202px; justify-self: center;
    min-height: 190px; padding: 26px 16px 24px; text-align: center;
    border-radius: 46% 54% 42% 58% / 52% 46% 54% 48%;
    background: linear-gradient(140deg, var(--ring-soft), rgba(255,255,255,0.92));
    border: 1.5px solid var(--ring);
    box-shadow: var(--shadow);
    transition: transform .35s, border-radius .5s, filter .35s; }
.bc-cell:hover { transform: translateY(-6px);
    border-radius: 54% 46% 56% 44% / 48% 56% 44% 52%;
    filter: drop-shadow(0 16px 26px var(--ring-soft)); }
.bc-cell-bumps { position: absolute; inset: 0; pointer-events: none; }
.bc-cell-bumps::before, .bc-cell-bumps::after { content: ''; position: absolute; border-radius: 50%; background: var(--tc); }
.bc-cell-bumps::before { width: 9px; height: 9px; top: 13%; left: 9%;
    box-shadow: 15px 5px 0 -1px var(--tc), -1px 20px 0 -2px var(--tc); }
.bc-cell-bumps::after { width: 8px; height: 8px; bottom: 15%; right: 11%; box-shadow: -13px 7px 0 -1px var(--tc); }
.bc-cell-nucleus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--tc), var(--ring)); color: #fff;
    box-shadow: 0 4px 12px var(--ring-soft); }
.bc-cell-nucleus svg { width: 23px; height: 23px; }
.bc-cell-body { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.bc-cell-name { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 15px; color: var(--bio-ink); }
.bc-cell-count { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.bc-cell-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 4px; }
.bc-cell-pill { font-family: var(--mono); font-size: 8.5px; padding: 2px 7px; border-radius: 20px; color: #fff; }
.bc-cell-pill.p0 { background: var(--tc); }
.bc-cell-pill.p1 { background: var(--bio-ink); }
.bc-cell-pill.p2 { background: var(--muted); }
.bc-cell-bases { display: block; width: 68%; height: 6px; margin-top: 8px;
    background: repeating-linear-gradient(90deg, var(--ring) 0 1px, transparent 1px 7px); }

/* ===== Centrifuge rail ===== */
.bc-tube-section { padding: 10px 0 20px; }
.bc-rail { position: relative; background: rgba(6,182,212,0.06); border: 1px dashed var(--green);
    border-radius: 18px; padding: 26px 18px 36px; }
.bc-tube-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; cursor: grab;
    scrollbar-width: thin; scrollbar-color: var(--cyan) transparent; }
.bc-tube-track.dragging { cursor: grabbing; }
.bc-tube-track::-webkit-scrollbar { height: 6px; }
.bc-tube-track::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 6px; }
.bc-rail-colony { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 16px;
    background-image: var(--colony); background-size: 14px 14px; pointer-events: none; }
.bc-tube { position: relative; flex: 0 0 208px; display: flex; flex-direction: column;
    background: var(--panel);
    clip-path: polygon(40% 0, 60% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
    filter: drop-shadow(0 4px 12px rgba(10,31,26,0.08));
    transition: transform .3s, filter .3s; }
.bc-tube-cap { display: block; text-align: center; padding: 18px 0 8px; font-size: 11px; font-weight: 600;
    color: var(--bio-ink); background: linear-gradient(180deg, var(--ring-soft), rgba(255,255,255,0)); }
.bc-tube-body { display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 18px 0; text-align: center; }
.bc-tube-sample { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 15px; color: var(--bio-ink); }
.bc-tube-lab { font-size: 10px; color: var(--muted); }
.bc-tube-layers { display: block; width: 62%; height: 52px; margin: 10px 0; border-radius: 6px;
    background: linear-gradient(180deg, var(--tc) 0 33%, var(--ring) 33% 66%, var(--mint-deep) 66% 100%);
    background-size: 100% 150%; animation: layer-flow 3.6s ease-in-out infinite; }
@keyframes layer-flow { 0%,100% { background-position: 0 0; } 50% { background-position: 0 14px; } }
.bc-tube-len { font-size: 16px; font-weight: 600; color: var(--cyan); }
.bc-tube-age { font-size: 10px; color: var(--muted); }
.bc-tube-scale { display: block; height: 10px; margin: 12px 14px 0;
    background: repeating-linear-gradient(90deg, rgba(10,31,26,0.22) 0 1px, transparent 1px 8px); }
.bc-tube:hover { transform: translateY(-6px); filter: drop-shadow(0 14px 24px var(--ring-soft)); }

/* ===== Molecule arc ===== */
.bc-arc-section { padding: 10px 0 20px; }
.bc-arc { display: flex; justify-content: center; align-items: flex-start; gap: 22px; flex-wrap: wrap;
    padding: 44px 0 56px; }
.bc-mol { position: relative; width: 186px; padding: 16px 14px 18px; text-align: center; color: #fff;
    border-radius: 16px; background: linear-gradient(160deg, var(--purple), var(--red));
    box-shadow: 0 10px 24px rgba(139,92,246,0.28);
    transform: rotate(var(--ang)) translateY(var(--ty));
    transition: transform .35s, box-shadow .35s; }
.bc-mol:nth-child(even) { background: linear-gradient(160deg, var(--red), var(--purple)); }
.bc-mol-figure { display: block; width: 120px; height: 110px; margin: 0 auto 6px; }
.bc-mol-figure svg { width: 100%; height: 100%; overflow: visible; }
.bc-mol-figure line { stroke: rgba(255,255,255,0.6); stroke-width: 1.4; }
.bc-mol-atom { fill: rgba(255,255,255,0.92); }
.bc-mol-ring { fill: none; stroke: #fff; stroke-width: 2; }
.bc-mol-name { display: block; font-family: var(--head); font-style: italic; font-weight: 700; font-size: 13px; }
.bc-mol-field { display: block; font-size: 10px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.bc-mol-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.bc-mol-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.bc-mol-dots i.on { background: #fff; }
.bc-mol:hover { transform: rotate(0deg) translateY(calc(var(--ty) - 8px)); box-shadow: 0 18px 34px rgba(139,92,246,0.5); }
.bc-mol:hover .bc-mol-atom { animation: atom-pulse 1.4s ease-in-out infinite; }
@keyframes atom-pulse { 0%,100% { opacity: 0.92; } 50% { opacity: 0.45; } }

/* ===== Colony tags ===== */
.bc-colony-section { padding: 10px 0 20px; }
.bc-colony-field { position: relative; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 38px; padding: 48px 16px 36px; }
.bc-colony-field::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%;
    border-top: 1px dashed rgba(10,31,26,0.2); }
.bc-colony { position: relative; width: 104px; height: 104px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-align: center; background: linear-gradient(150deg, var(--tc), var(--ring)); color: #fff;
    box-shadow: 0 8px 20px var(--ring-soft); transition: transform .3s, box-shadow .3s; }
.bc-colony-spikes { position: absolute; inset: -16px; border-radius: 50%;
    background: repeating-conic-gradient(var(--ring) 0deg 3.4deg, transparent 3.4deg 30deg);
    -webkit-mask: radial-gradient(circle closest-side at 50% 50%, transparent 76%, #000 80%);
    mask: radial-gradient(circle closest-side at 50% 50%, transparent 76%, #000 80%); }
.bc-colony-kw { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 12px; }
.bc-colony-n { font-size: 10px; color: rgba(255,255,255,0.9); }
.bc-colony:hover { transform: scale(1.08); box-shadow: 0 14px 30px var(--ring-soft); }
.bc-colony:hover .bc-colony-spikes { animation: spike-pulse 1.2s ease-in-out infinite; }
@keyframes spike-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.bc-colony-hot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }
.bc-colony-hot strong { color: var(--red); }

/* ===== Masonry + sidebar ===== */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 40px; align-items: start; }
.masonry-section { padding: 10px 0; }
.masonry-stream { display: flex; flex-direction: column; gap: 24px; }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bc-card { position: relative; background: var(--grad-wm); border: 1px solid rgba(0,200,83,0.26);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s; }
.bc-card-barcode { position: absolute; top: 0; left: 0; right: 0; height: 8px; z-index: 3;
    background-image: var(--barcode); opacity: 0.8; transition: opacity .3s; }
.masonry-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.masonry-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.masonry-badge { position: absolute; top: 18px; left: 12px; background: var(--green); color: #fff;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 20px; }
.masonry-body { padding: 16px 16px 20px; }
.masonry-cat { color: var(--cyan); font-size: 11px; letter-spacing: 0.08em; }
.masonry-title { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); margin: 6px 0 10px; line-height: 1.4; }
.masonry-meta { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: rgba(90,122,112,0.95); }
.masonry-meta svg { width: 13px; height: 13px; color: var(--red); }
.masonry-read { position: absolute; right: 16px; bottom: 14px; background: var(--green); color: #fff;
    font-size: 11px; padding: 5px 14px; border-radius: 20px; opacity: 0; transform: translateY(6px);
    transition: opacity .3s, transform .3s; }
.bc-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,200,83,0.24); }
.bc-card:hover .masonry-img { transform: scale(1.06); }
.bc-card:hover .masonry-read { opacity: 1; transform: translateY(0); }
.bc-card:hover .bc-card-barcode { opacity: 1; }
.masonry-hidden { display: none; }
.masonry-ad-slot { position: relative; margin: 4px 0 18px; padding: 14px 0; }
.masonry-ad-slot::before, .masonry-ad-slot::after { content: ''; position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,200,83,0.6), transparent); }
.masonry-ad-slot::before { top: 0; }
.masonry-ad-slot::after { bottom: 0; }

.load-more-wrap { display: flex; justify-content: center; align-items: center; margin: 30px 0 10px; position: relative; }
.load-more-btn { position: relative; display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: #fff; border: none; cursor: pointer;
    font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
    padding: 13px 30px; border-radius: 30px; box-shadow: 0 10px 26px rgba(0,200,83,0.4);
    transition: transform .25s, box-shadow .25s; }
.load-more-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,200,83,0.55); }
.load-ring { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.35); border-top-color: var(--cyan-hi);
    border-radius: 50%; opacity: 0; }
.load-more-btn.loading .load-ring { opacity: 1; animation: spin2 0.8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.infinite-ring { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(6,182,212,0.25);
    border-top-color: var(--cyan); border-radius: 50%; opacity: 0; }
.infinite-ring.spin { opacity: 1; animation: spin2 0.8s linear infinite; }
.scroll-sentinel { height: 1px; }

/* Sidebar widget */
.sidebar { position: sticky; top: 96px; }
.bc-widget { background: var(--panel); border-radius: 16px; padding: 20px 18px; box-shadow: var(--shadow);
    border: 1px solid rgba(6,182,212,0.22); }
.bc-widget-title { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--bio-ink);
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.bc-widget-title svg { width: 17px; height: 17px; color: var(--cyan); }
.bc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); animation: breathe 1.8s ease-in-out infinite; }
.bc-rank-list { display: flex; flex-direction: column; gap: 8px; }
.bc-rank-row { position: relative; display: flex; align-items: center; gap: 10px;
    background: var(--mint); border-radius: 10px; padding: 10px 12px 10px 16px; }
.bc-rank-bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--rc); }
.bc-rank-name { flex: 1; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--bio-ink); }
.bc-rank-count { color: var(--purple); font-size: 13px; font-weight: 600; }
.bc-widget-note { color: var(--muted); font-size: 10px; letter-spacing: 0.06em; margin-top: 12px; text-align: center; }

/* ===== Footer ===== */
.bc-footer { position: relative; background: var(--bio-ink); color: #fff; margin-top: 60px; overflow: hidden; }
.bc-footer-helix { display: block; height: 32px; opacity: 0.72;
    background-image:
        repeating-linear-gradient(90deg, rgba(0,200,83,0.6) 0 2px, transparent 2px 15px),
        repeating-linear-gradient(90deg, transparent 0 7px, rgba(139,92,246,0.6) 7px 9px, transparent 9px 15px);
    animation: plx 6s linear infinite; }
@keyframes plx { to { background-position: 15px 0; } }
.bc-footer-edge { display: block; height: 3px; background: linear-gradient(90deg, rgba(0,200,83,0.65), rgba(139,92,246,0.65)); }
.bc-footer-inner { max-width: 1280px; margin: 0 auto; padding: 34px 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bc-footer-brand { display: flex; flex-direction: column; gap: 6px; }
.bc-footer-logo { font-size: 24px; display: flex; align-items: baseline; gap: 7px; }
.bc-footer-bio { font-family: var(--head); font-style: italic; font-weight: 900; color: #fff; }
.bc-footer-circuit { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--green-hi); letter-spacing: 0.12em; font-size: 18px; }
.bc-footer-tagline { color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.1em; }
.bc-footer-nav { display: flex; gap: 28px; }
.bc-footer-nav a { font-size: 15px; transition: transform .2s; }
.bc-footer-nav a:hover { transform: translateY(-2px); }
.bc-footer-nav-1 { font-family: var(--sans); font-weight: 700; color: var(--green); }
.bc-footer-nav-2 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--cyan-hi); letter-spacing: 0.08em; }
.bc-footer-nav-3 { font-family: var(--head); font-style: italic; color: var(--purple-hi); }
.bc-footer-copy { color: rgba(255,255,255,0.45); font-size: 11px; letter-spacing: 0.06em; }

/* ===== Ad slots ===== */
.ad-slot { margin: 26px auto; }
.ad-slot-top, .ad-slot-bottom { background: rgba(0,200,83,0.05); border-radius: 12px; padding: 6px 0; }
.masonry-ad-slot { background: rgba(0,200,83,0.05); border-radius: 12px; }
#adv1 > div:first-child, #adv2 > div:first-child, #adv3 > div:first-child { color: var(--muted) !important; }

/* ===== Article detail ===== */
.article-main { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; }
.article-hero { position: relative; height: 56vh; min-height: 320px; max-height: 520px; margin: 24px 0 0;
    border-radius: 20px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 32%, rgba(0,200,83,0.35), transparent 62%), var(--mint); }
.article-hero-glow { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 70%); filter: blur(20px); }
.article-hero-helix { position: absolute; left: 10px; top: 0; bottom: 0; width: 14px; z-index: 2;
    background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.45) 0 1px, transparent 1px 9px); }
.article-hero-helix::before, .article-hero-helix::after { content: ''; position: absolute; top: 0; bottom: 0;
    width: 2px; border-radius: 2px; }
.article-hero-helix::before { left: 0; background: var(--green); animation: helix-a 3.2s ease-in-out infinite; }
.article-hero-helix::after { right: 0; background: var(--purple); animation: helix-b 3.2s ease-in-out infinite; }
.article-hero-actions { position: absolute; top: 18px; left: 18px; display: flex; gap: 12px; z-index: 3; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.82);
    border: 1px solid var(--green); color: var(--bio-ink); border-radius: 30px; padding: 8px 16px;
    font-family: var(--mono); font-size: 12px; cursor: pointer; transition: transform .25s; }
.hero-chip svg { width: 15px; height: 15px; }
.hero-chip:hover { transform: scale(1.08); }
.article-cover-wrap { position: absolute; inset: 0; }
.article-cover { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
    mask-image: linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); }

.article-headline { text-align: left; margin: 28px 0 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.mono-pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; }
.article-cat { border: 1px solid var(--green); color: var(--green); }
.detail-badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px;
    background: var(--green); color: #fff; }
.article-popularity { border: 1px solid var(--cyan); color: var(--cyan); }
.article-heat { border: 1px solid var(--red); color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.article-heat svg { width: 12px; height: 12px; }
.article-title { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.25; color: var(--ink); }
.at-bio { font-style: italic; font-weight: 900; color: var(--green); }
.at-paper { font-style: italic; font-weight: 500; color: var(--cyan); }
.article-meta-row { color: var(--muted); font-size: 12px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-dot { opacity: 0.5; }

/* DNA sequence bar */
.bc-seqbar-wrap { margin: 26px 0; }
.bc-seq-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
    margin-bottom: 8px; letter-spacing: 0.08em; }
.bc-seqbar { position: relative; height: 64px; border-radius: 8px; background: var(--bio-ink);
    overflow: hidden; display: flex; align-items: center; padding: 0 12px;
    box-shadow: var(--shadow); transition: transform .3s; }
.bc-seq-helix { position: absolute; inset: 0; opacity: 0.5;
    background: repeating-linear-gradient(90deg,
        transparent 0 10px, rgba(0,200,83,0.18) 10px 11px,
        transparent 11px 22px, rgba(139,92,246,0.18) 22px 23px,
        transparent 23px 34px); }
.bc-seq-bases { position: relative; display: flex; align-items: center; gap: 3px; width: 100%; height: 100%; }
.bc-seq-bases i { flex: 1 1 auto; height: 70%; border-radius: 2px; opacity: 0.9; }
.bc-seq-bases i.b-a { background: var(--green); }
.bc-seq-bases i.b-t { background: var(--cyan); }
.bc-seq-bases i.b-g { background: var(--purple); }
.bc-seq-bases i.b-c { background: var(--red); }
.bc-seqbar:hover { transform: scale(1.01); }
.bc-seqbar:hover .bc-seq-bases i { animation: base-blink 1.2s ease-in-out infinite; }
@keyframes base-blink { 0%,100% { opacity: 0.9; } 50% { opacity: 0.35; } }
.bc-seq-legend { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bc-seq-pill { font-size: 10px; padding: 3px 10px; border-radius: 20px; color: #fff; }
.bc-seq-pill.p-a { background: var(--green); }
.bc-seq-pill.p-t { background: var(--cyan); }
.bc-seq-pill.p-g { background: var(--purple); }
.bc-seq-pill.p-c { background: var(--red); }

/* Assay panel */
.bc-assay { position: relative; background: var(--panel); border: 1px solid var(--cyan);
    border-radius: 12px; padding: 26px 24px; margin: 26px 0; box-shadow: var(--shadow); overflow: hidden; }
.bc-assay-dots { position: absolute; top: 0; left: 0; right: 0; height: 14px;
    background-image: var(--colony); background-size: 14px 14px; }
.bc-assay-label { display: flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 12px;
    letter-spacing: 0.1em; margin: 8px 0 14px; }
.bc-assay-label svg { width: 16px; height: 16px; }
.bc-assay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bc-assay-name { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 20px; color: var(--bio-ink); }
.bc-assay-lab { font-size: 11px; color: var(--muted); }
.bc-assay-chart { display: flex; align-items: flex-end; gap: 24px; height: 150px; margin: 22px 0 10px; padding: 0 6px; }
.bc-assay-group { flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end; height: 100%; gap: 8px; }
.bc-assay-bar { width: 56%; max-width: 70px; border-radius: 6px 6px 0 0; min-height: 6px; }
.bc-assay-bar.tone-green { background: linear-gradient(180deg, var(--green-hi), var(--green)); }
.bc-assay-bar.tone-cyan { background: linear-gradient(180deg, var(--cyan-hi), var(--cyan)); }
.bc-assay-bar.tone-purple { background: linear-gradient(180deg, var(--purple-hi), var(--purple)); }
.bc-assay-cap { font-size: 10px; color: var(--muted); }
.bc-assay-concl { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.bc-assay-pill { display: block; font-size: 13px; padding: 9px 14px; border-radius: 10px;
    border-left: 3px solid var(--tc); background: var(--mint); color: var(--ink); }
.bc-assay-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

.article-body { max-width: 680px; margin: 20px auto; font-size: 18px; line-height: 1.8; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body p:nth-child(odd) { border-left: 3px solid var(--cyan); padding-left: 18px; }
.article-body p:first-of-type::first-letter { font-family: var(--head); font-weight: 700; font-size: 46px;
    color: var(--green); float: left; line-height: 0.8; padding: 6px 8px 0 0; }
.article-body img { border-radius: 14px; margin: 20px 0; width: 100%; }
.bio-term { color: var(--purple); border-bottom: 1px solid var(--purple); cursor: pointer; }
.bio-term:hover { background: rgba(139,92,246,0.14); }

.related-section { margin: 40px 0 10px; }
.related-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bc-related-card { position: relative; background: var(--panel); border: 1px solid rgba(0,200,83,0.28);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.bc-related-barcode { position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 2;
    background-image: var(--barcode); opacity: 0.8; }
.bc-related-img-wrap { height: 110px; overflow: hidden; }
.bc-related-img { width: 100%; height: 100%; object-fit: cover; }
.bc-related-body { padding: 12px 14px 16px; }
.bc-related-cat { color: var(--cyan); font-size: 10px; letter-spacing: 0.08em; }
.bc-related-title { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin: 6px 0 8px; line-height: 1.35; }
.bc-related-heat { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-family: var(--mono); font-size: 11px; }
.bc-related-heat svg { width: 12px; height: 12px; }
.bc-related-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,200,83,0.24); }

/* Drawers */
.term-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--panel); border-top: 3px solid var(--green); border-radius: 18px 18px 0 0;
    padding: 22px 24px 30px; box-shadow: 0 -14px 40px rgba(10,31,26,0.28);
    transform: translateY(120%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.term-drawer.open { transform: translateY(0); }
.term-drawer-close { position: absolute; top: 10px; right: 16px; border: none; background: none;
    font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
.term-drawer-text { font-size: 15px; color: var(--ink); line-height: 1.6; }

.cover-gallery { position: fixed; inset: 0; z-index: 90; background: rgba(10,31,26,0.94);
    display: none; align-items: center; justify-content: center; padding: 30px; }
.cover-gallery.open { display: flex; }
.cover-gallery img { max-width: 92%; max-height: 92%; border-radius: 12px; object-fit: contain; }
.cover-gallery-close { position: absolute; top: 20px; right: 26px; border: none; background: none;
    color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ===== Static pages ===== */
.static-main { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.back-btn { display: inline-block; color: var(--green); font-size: 13px; margin-bottom: 20px; }
.static-article { background: var(--panel); border: 1px solid rgba(0,200,83,0.24); border-radius: 16px; padding: 34px 32px; box-shadow: var(--shadow); }
.static-cat { border: 1px solid var(--green); color: var(--green); }
.static-title { font-family: var(--head); font-weight: 700; font-size: 30px; color: var(--ink); margin: 14px 0 20px; }
.static-content { font-size: 16px; line-height: 1.8; color: var(--ink); }
.static-content h2 { font-family: var(--head); font-size: 20px; color: var(--green); margin: 22px 0 8px; }
.static-content p { margin-bottom: 14px; }

/* ===== Reveal ===== */
.bc-reveal { opacity: 0; }
.bc-reveal.revealed { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bc-cell-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    .bc-nav { display: none; }
    .bc-head-title { font-size: 34px; }
    .bc-cell-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .bc-header { height: 64px; }
    .bc-fret { display: none; }
    .bc-header-inner { padding: 0 16px; }
    .bc-live { display: none; }
    .main-content { padding: 0 14px 40px; }
    .bc-petri-stack, .bc-hero-hint { display: none; }
    .bc-mob { display: block; }
    .bc-hero { padding: 2px 0; max-height: 130px; overflow: hidden; }
    .bc-cell-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bc-cell { min-height: 158px; }
    .bc-arc { gap: 30px 14px; }
    .bc-mol { width: 168px; }
    .bc-tube { flex-basis: 196px; }
    .bc-colony-field { gap: 30px; }
    .article-title { font-size: 26px; }
    .related-track { grid-template-columns: minmax(0, 1fr); }
    .bc-assay-name { font-size: 18px; }
    .bc-assay-chart { height: 120px; gap: 16px; }
    .hero-chip span { display: none; }
    .hero-chip { padding: 9px 11px; border-radius: 50%; }
    .bc-seqbar { height: 54px; }
}
@media (max-width: 600px) {
    .masonry-grid { grid-template-columns: minmax(0, 1fr); }
    .masonry-img-wrap { aspect-ratio: 1 / 1; }
    .bc-head-title { font-size: 28px; }
    .bc-colony { width: 92px; height: 92px; }
    .bc-colony-field { gap: 26px; }
}
