/* Dahlia Biosciences — site styles
   Direction: precision instrument meets lab notebook. Cool paper, ink type,
   accents drawn from the dahlia mark (cyan → blue → violet). */

:root {
  --ink: #0d1a2b;
  --ink-2: #2c3d53;
  --muted: #5f6f84;
  --faint: #8a97a8;
  --paper: #f2f5f8;
  --paper-2: #e7edf2;
  --plate: #ffffff;
  --line: #d4dde6;
  --line-strong: #b7c4d1;

  --cyan: #16b2d4;
  --blue: #1d6cae;
  --violet: #8b25c4;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 48%, var(--violet) 100%);

  --ok: #1f8a5b;
  --err: #b4234a;

  --f-display: "Open Sans", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Open Sans", "Avenir Next", "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 0 rgba(13, 26, 43, .04), 0 18px 40px -24px rgba(13, 26, 43, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(22, 178, 212, .25); }

/* Fine graph-paper grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 108, 174, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 108, 174, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.35em;
  border-radius: 999px;
  border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(13, 26, 43, .6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--grad { background: var(--grad); border-color: transparent; }
.btn--sm { font-size: .88rem; padding: .7em 1.1em; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link {
  font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 245, 248, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(242, 245, 248, .94); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(13, 26, 43, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--grad); border-radius: 2px; }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 76px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px;
  }
  .nav-open .nav-links a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-open .nav-links a[aria-current="page"]::after { display: none; }
  .nav-open .nav-links .mobile-cta { display: block; margin-top: 14px; }
  .nav-open .nav-links .mobile-cta a { border: 0; background: var(--ink); color: #fff; text-align: center; border-radius: 999px; }
}
.mobile-cta { display: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

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

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero-meta span:nth-child(2)::before { background: var(--blue); }
.hero-meta span:nth-child(3)::before { background: var(--violet); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Instrument panel */
.instrument {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.instrument::after {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; pointer-events: none;
  padding: 1px; background: var(--grad); opacity: .0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s;
}
.instrument:hover::after { opacity: .8; }
.inst-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inst-bar .rec { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 500; }
.inst-bar .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d8345f; box-shadow: 0 0 0 3px rgba(216, 52, 95, .15); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.plot-wrap { position: relative; padding: 18px 18px 8px 62px; }
.plot { position: relative; aspect-ratio: 440 / 402; border-left: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); }
.xticks, .yticks { position: absolute; pointer-events: none; font-family: var(--f-mono); font-size: .62rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.xticks { left: 0; right: 0; top: 100%; height: 22px; }
.xticks span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; line-height: 1; }
.xticks span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 5px; background: var(--ink-2); }
.yticks { top: 0; bottom: 0; right: 100%; width: 40px; }
.yticks span { position: absolute; right: 7px; transform: translateY(50%); line-height: 1; }
.yticks span::after { content: ""; position: absolute; right: -7px; top: 50%; width: 5px; height: 1px; background: var(--ink-2); }
.xticks sup { font-size: .75em; }
.plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot .gate {
  position: absolute; border: 1.5px solid var(--blue); border-radius: 2px;
  top: 1%; bottom: 4%; right: 1%;
  transition: left .8s var(--ease), right .8s var(--ease);
  background: rgba(29, 108, 174, .025);
}
.plot .gate-label {
  position: absolute; right: calc(1% + 10px); bottom: calc(4% + 10px); text-align: right;
  background: rgba(255, 255, 255, .88); padding: 6px 10px 4px; border-radius: 6px; z-index: 1;
  font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); letter-spacing: .02em; line-height: 1.3;
}
.plot .gate-label strong { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.axis-y, .axis-x { position: absolute; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.axis-y { left: 6px; top: 50%; transform: translate(0, -50%) rotate(-90deg); transform-origin: center; white-space: nowrap; width: 20px; display: flex; justify-content: center; }
.axis-x { position: static; display: flex; justify-content: center; padding: 22px 0 0; }
.axis-x b { font-weight: 500; color: var(--ink-2); }

.inst-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  border: 0; background: none; cursor: pointer; padding: 6px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s, color .2s;
}
.seg button .dot { width: 7px; height: 7px; border-radius: 50%; }
.seg button[aria-pressed="true"] { background: var(--plate); color: var(--ink); box-shadow: 0 1px 2px rgba(13, 26, 43, .12); }
.seg button:hover { color: var(--ink); }
.seg button { white-space: nowrap; }
@media (max-width: 520px) {
  .inst-bar [data-cond], .seg .chn { display: none; }
  .seg button { padding: 6px 10px; }
  .plot-wrap { padding-left: 54px; padding-right: 12px; }
}

/* ---------- Spec strip ---------- */
.specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.specs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.spec { padding: 28px 20px 26px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec .val { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; display: block; margin-bottom: 8px; }
.spec .val small { font-size: .5em; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 2px; }
.spec .lab { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 960px) {
  .specs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .spec:nth-child(-n+2) { border-top: 0; }
  .spec:last-child { grid-column: 1 / -1; }
}

/* ---------- Statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.big-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(7rem, 19vw, 15rem); line-height: .82; letter-spacing: -.06em; }
.big-num sup { font-size: .32em; vertical-align: top; letter-spacing: 0; margin-left: .05em; position: relative; top: .25em; }
.statement h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.statement p { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Applications (numbered rows) ---------- */
.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: app; }
.app {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr) 150px; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); position: relative;
  counter-increment: app;
}
.app::before { content: "0" counter(app); font-family: var(--f-mono); font-size: .8rem; color: var(--faint); letter-spacing: .08em; }
.app::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.app:hover::after { transform: scaleX(1); }
.app h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.025em; transition: transform .4s var(--ease); }
.app:hover h3 { transform: translateX(6px); }
.app p { margin: 0; color: var(--ink-2); }
.app .tag { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .app { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
  .app p { grid-column: 2; }
  .app .tag { display: none; }
}

/* ---------- How it works ---------- */
.how { background: var(--plate); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.figure { margin: 0; }
.figure .plate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 28px); }
.figure figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; display: flex; gap: 12px; }
.figure figcaption .mono { color: var(--blue); flex-shrink: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; color: #fff; background: var(--blue); }
.steps li:nth-child(1) .n { background: var(--cyan); }
.steps li:nth-child(3) .n { background: var(--violet); }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.compat { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .03em; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.cell .k { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px; display: block; }
.cell--a { grid-column: span 7; }
.cell--b { grid-column: span 5; background: var(--ink); color: #fff; border-color: var(--ink); }
.cell--b p { color: rgba(255, 255, 255, .75); }
.cell--b .k { color: var(--cyan); }
.cell--c { grid-column: span 5; }
.cell--d { grid-column: span 7; }
@media (max-width: 860px) { .cell--a, .cell--b, .cell--c, .cell--d { grid-column: 1 / -1; } }

/* Mini timeline inside "speed" cell */
.timebar { margin-top: 30px; }
.timebar .track { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.timebar .track span { display: block; height: 100%; transform-origin: left; }
.timebar .legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .68rem; color: rgba(255, 255, 255, .55); margin-top: 10px; }
/* Mini cell plot inside single-cell cell */
.cells-viz { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; max-width: 420px; }
.cells-viz i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.cells-viz i.on { background: var(--blue); border-color: var(--blue); }
.cells-viz i.on2 { background: var(--violet); border-color: var(--violet); }
.cells-viz i.on3 { background: var(--cyan); border-color: var(--cyan); }
.cell:hover .cells-viz i.on, .cell:hover .cells-viz i.on2, .cell:hover .cells-viz i.on3 { transform: scale(1.15); }
/* Channel bars */
.channels { margin-top: 28px; display: grid; gap: 10px; }
.channel { display: grid; grid-template-columns: 52px 1fr 48px; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); }
.channel .bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.channel .bar span { display: block; height: 100%; border-radius: 4px; }
/* Linear range sparkline */
.range-svg { margin-top: 24px; width: 100%; height: auto; max-height: 130px; }

/* ---------- Validation data viewer ---------- */
.viewer { display: grid; grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px 18px 0; cursor: pointer;
  display: grid; grid-template-columns: 36px 1fr; gap: 6px; align-items: baseline; position: relative;
  transition: color .2s;
  color: var(--muted);
}
.tab .i { font-family: var(--f-mono); font-size: .72rem; }
.tab .t { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; color: inherit; }
.tab .s { grid-column: 2; font-size: .84rem; color: var(--faint); }
.tab::before { content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform .35s var(--ease); }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.panel { background: var(--plate); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel.is-in { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel img { width: 100%; margin: 0 auto; border-radius: 6px; }
.panel .meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel h3 { margin-bottom: 6px; }
.panel .meta p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.result { text-align: right; }
.result strong { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1; }
.result span { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.panel .img-limit { max-width: 560px; margin: 0 auto; }
@media (max-width: 960px) {
  .viewer { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; display: block; white-space: nowrap; background: var(--plate); }
  .tab .i, .tab .s { display: none; }
  .tab .t { font-size: .95rem; }
  .tab::before { display: none; }
  .tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .panel .meta { grid-template-columns: 1fr; }
  .result { text-align: left; }
}

/* ---------- Products ---------- */
.products { background: var(--ink); color: #fff; overflow: hidden; }
.products .eyebrow { color: var(--cyan); }
.products .section-head p { color: rgba(255, 255, 255, .72); }
.products::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 37, 196, .35), transparent 70%); pointer-events: none; }
.products::after { content: ""; position: absolute; width: 800px; height: 800px; left: -360px; bottom: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 178, 212, .22), transparent 70%); pointer-events: none; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: stretch; position: relative; z-index: 1; }
.prod {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: clamp(26px, 3.4vw, 44px);
  background: rgba(255, 255, 255, .035); display: flex; flex-direction: column;
  transition: border-color .3s, background .3s;
}
.prod:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); }
.prod .type { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.prod:nth-child(3) .type { color: #c69af0; }
.prod h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 28px; line-height: 1; }
.prod ul { list-style: none; margin: 0 0 32px; padding: 0; flex: 1; }
.prod li { padding: 13px 0 13px 28px; border-top: 1px solid rgba(255, 255, 255, .12); position: relative; color: rgba(255, 255, 255, .85); font-size: .98rem; }
.prod li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 1.5px; background: var(--cyan); }
.prod:nth-child(3) li::before { background: #c69af0; }
.prod .btn { --bg: #fff; --fg: var(--ink); align-self: flex-start; }
.plus { display: grid; place-items: center; font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; color: rgba(255, 255, 255, .5); }
.order-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .16); }
.order-steps div { padding: 24px 24px 0 0; }
.order-steps .mono { color: var(--cyan); display: block; margin-bottom: 8px; }
.order-steps p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .96rem; }
.order-steps strong { color: #fff; font-weight: 600; }
/* Featured product sheet */
.sheet {
  position: relative; z-index: 1; margin-top: 28px;
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center;
  padding: clamp(24px, 3.4vw, 40px); border-radius: 20px;
  background: linear-gradient(rgba(13, 26, 43, .92), rgba(13, 26, 43, .92)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
.sheet-doc {
  display: flex; flex-direction: column; gap: 10px; aspect-ratio: 8.5 / 11; padding: 16px 14px;
  background: #fff; color: var(--ink); border-radius: 6px; text-decoration: none;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7); transform: rotate(-3deg); transition: transform .4s var(--ease);
}
.sheet:hover .sheet-doc { transform: rotate(0deg) translateY(-4px); }
.sheet-doc__tag { font-family: var(--f-mono); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.sheet-doc__title { font-family: var(--f-display); font-weight: 700; font-size: .86rem; line-height: 1.15; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet-doc__lines { display: grid; gap: 6px; margin-top: 4px; flex: 1; align-content: start; }
.sheet-doc__lines i { display: block; height: 4px; border-radius: 2px; background: #e3e9ef; }
.sheet-doc__lines i:nth-child(2) { width: 82%; }
.sheet-doc__lines i:nth-child(3) { height: 34px; background: linear-gradient(90deg, rgba(22, 178, 212, .25), rgba(139, 37, 196, .25)); }
.sheet-doc__lines i:nth-child(4) { width: 64%; }
.sheet-doc__foot { font-family: var(--f-mono); font-size: .52rem; color: var(--muted); }
.sheet-body .eyebrow { color: var(--cyan); }
.sheet-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 12px; }
.sheet-body p { color: rgba(255, 255, 255, .78); margin: 0 0 18px; max-width: 60ch; }
.sheet-parts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sheet-parts li { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 12px; font-size: .86rem; color: rgba(255, 255, 255, .85); }
.sheet-parts .mono { color: #c69af0; margin-right: 6px; font-size: .78rem; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.sheet-actions .link { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet-doc { width: 132px; }
}
@media (max-width: 860px) {
  .prod-grid { grid-template-columns: 1fr; }
  .plus { height: 56px; }
  .order-steps { grid-template-columns: 1fr; }
}

/* ---------- Resources list ---------- */
.res-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.res {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 28px 34px 0; text-decoration: none;
  border-bottom: 1px solid var(--line); position: relative;
}
.res + .res { padding-left: 28px; border-left: 1px solid var(--line); }
.res-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.res-list--4 .res h3 { font-size: 1.4rem; }
@media (max-width: 1100px) {
  .res-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-list--4 .res:nth-child(3) { padding-left: 0; border-left: 0; }
}
.res .mono { color: var(--muted); }
.res h3 { font-size: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.res h3 .arrow { font-family: var(--f-body); font-size: 1.2rem; transition: transform .3s var(--ease); color: var(--blue); }
.res:hover h3 .arrow { transform: translate(4px, -4px); }
.res p { margin: 0; color: var(--ink-2); }
.res-download { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 22px 26px; background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); }
.res-download p { margin: 0; color: var(--ink-2); }
.res-download strong { color: var(--ink); }
@media (max-width: 860px) {
  .res-list { grid-template-columns: 1fr; }
  .res + .res { padding-left: 0; border-left: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-side h2 { margin-bottom: 20px; }
.contact-side > p { color: var(--ink-2); font-size: 1.08rem; max-width: 40ch; }
.direct { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.direct a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.direct a span:first-child { font-weight: 600; }
.direct a span:last-child { font-family: var(--f-mono); font-size: .82rem; color: var(--blue); align-self: center; }
.direct a:hover span:last-child { text-decoration: underline; }

.form-card { background: var(--plate); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--violet); }
.field label .opt { font-weight: 400; color: var(--faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 108, 174, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); background: #fff6f8; }
.field .err { font-size: .8rem; color: var(--err); min-height: 0; display: none; }
.field.is-invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: .82rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.is-error { display: block; background: #fdecef; color: var(--err); border: 1px solid #f3c4cf; }
.form-success { display: none; text-align: left; padding: 20px 0 8px; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin-bottom: 20px; }
.form-success h3 { font-size: 1.8rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); max-width: 44ch; }
.is-sent .form-body { display: none; }
.is-sent .form-success { display: block; animation: panelIn .5s var(--ease); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
.is-sending .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--plate); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .6fr)) minmax(0, 1.2fr); gap: 40px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: .94rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.foot-col a:hover { color: var(--blue); }
.news h4 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; text-transform: none; color: var(--ink); margin-bottom: 8px; }
.news p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.news-row { display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px; transition: border-color .2s, box-shadow .2s; }
.news-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 108, 174, .14); }
.news-row input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 14px; font-size: .95rem; }
.news-row input:focus { outline: none; }
.news .msg { font-size: .85rem; margin-top: 10px; min-height: 1.3em; color: var(--muted); }
.news .msg.ok { color: var(--ok); }
.news .msg.bad { color: var(--err); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand, .news { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; margin-bottom: 24px; }
.page-hero .lede { max-width: 48ch; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--plate); font-weight: 500; font-size: .94rem; transition: border-color .2s, transform .2s var(--ease); }
.jump a:hover { border-color: var(--ink); transform: translateY(-2px); }
.jump a .mono { color: var(--blue); }

/* ---------- Protocol timeline ---------- */
.protocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.proto-list { list-style: none; margin: 0; padding: 0; position: relative; }
.proto-list::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--cyan), var(--blue), var(--violet)); }
.proto-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; position: relative; }
.proto-step:last-child { padding-bottom: 0; }
.proto-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--plate); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; position: relative; z-index: 1; transition: background .3s, color .3s, border-color .3s; }
.proto-step:hover .n { background: var(--ink); color: #fff; border-color: var(--ink); }
.proto-step h3 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin: 6px 0 8px; }
.proto-step h3 .dur { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em; color: var(--blue); background: rgba(29, 108, 174, .08); padding: 3px 8px; border-radius: 999px; }
.proto-step p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.pause { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: #fff7ec; border: 1px solid #f1d9b5; font-size: .88rem; color: #7a4d12; }
.pause b { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; padding-top: 2px; }
.opt-tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(139, 37, 196, .35); padding: 2px 7px; border-radius: 999px; }
.sticky { position: sticky; top: 100px; }
@media (max-width: 960px) { .protocol { grid-template-columns: 1fr; } .sticky { position: static; } }

/* ---------- Article (planning guide) ---------- */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: .72rem; color: var(--faint); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--blue); font-weight: 600; }
.article { max-width: 760px; }
.article section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.article section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.article p, .article li { color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.article strong { color: var(--ink); }
.article .figure { margin: 32px 0 8px; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; margin: 24px 0; border-radius: 12px; background: var(--plate); border: 1px solid var(--line); }
.callout .tag { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--blue); padding: 4px 9px; border-radius: 6px; align-self: start; }
.callout.v .tag { background: var(--violet); }
.callout p { margin: 0; font-size: .98rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1.5px; background: var(--blue); }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- FAQ ---------- */
.faq-head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.faq-search { position: relative; width: min(100%, 360px); }
.faq-search input { width: 100%; padding: 13px 16px 13px 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--plate); font-size: .98rem; }
.faq-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 108, 174, .14); }
.faq-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -.012em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .35s var(--ease), background .2s, border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq[open] summary .pm { background: var(--ink); border-color: var(--ink); }
.faq[open] summary .pm::before, .faq[open] summary .pm::after { background: #fff; }
.faq[open] summary .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--blue); }
.faq .ans { padding: 0 60px 24px 0; color: var(--ink-2); max-width: 78ch; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq[open] .ans { animation: panelIn .35s var(--ease); }
.faq-empty { display: none; padding: 40px 0; color: var(--muted); text-align: center; }
.faq-empty.show { display: block; }
.faq mark { background: rgba(22, 178, 212, .22); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; max-width: 1040px; }
.person:nth-child(3n+2) { margin-top: 56px; }
.person .photo { aspect-ratio: 1 / 1.08; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s var(--ease), filter .6s; filter: saturate(.92); }
.person:hover .photo img { transform: scale(1.04); filter: saturate(1.05); }
.person .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13, 26, 43, .18)); }
.person h3 { margin: 16px 0 4px; font-size: 1.3rem; }
.person p { margin: 0; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .person:nth-child(3n+2) { margin-top: 0; } .person:nth-child(even) { margin-top: 40px; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .person:nth-child(even) { margin-top: 0; } }

.channels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ch-card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.ch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.ch-card .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.ch-card h3 { font-size: 1.4rem; }
.ch-card p { color: var(--ink-2); margin: 0; flex: 1; }
.ch-card .addr { font-family: var(--f-mono); font-size: .9rem; color: var(--blue); margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .channels-grid { grid-template-columns: 1fr; } }

/* ---------- Micrograph band ---------- */
.micro { position: relative; border-radius: 20px; overflow: hidden; min-height: 260px; background: var(--ink); display: flex; align-items: flex-end; }
.micro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: screen; }
.micro .inner { position: relative; padding: clamp(24px, 4vw, 48px); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; width: 100%; background: linear-gradient(0deg, rgba(13, 26, 43, .85), transparent); }
.micro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 18ch; }
.micro .btn { --bg: #fff; --fg: var(--ink); }

/* ---------- Homepage v2 (content refresh) ---------- */
.hero-note { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.4; }
.hero-note strong { color: var(--ink); font-weight: 600; }
.hero-note .spark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.1rem; animation: spin 14s linear infinite; }
.art-top, .art-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.art-top { margin-bottom: 12px; }
.art-top span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.art-top span:first-child::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.art-bottom { margin-top: 14px; }
.art-bottom > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.art-bottom strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--ink); }
.art-label { text-align: right; color: var(--blue); }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: clamp(40px, 6vw, 72px); padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-bottom a { text-decoration: none; color: var(--ink-2); }
.hero-bottom a:hover { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .hero-note .spark { animation: none; } }

.specs-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .specs-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .specs-row--4 .spec:last-child { grid-column: auto; } }

.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.workflow { background: var(--plate); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.workflow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.workflow .k { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.wf-graphic { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.wf-stage { aspect-ratio: 1; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.wf-arrow { font-size: 1.2rem; color: var(--faint); }
.wf-rna { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 10%; }
.wf-rna span { width: 4px; border-radius: 2px; background: var(--cyan); animation: wave 2.4s var(--ease) infinite; }
.wf-rna span:nth-child(1) { height: 22%; } .wf-rna span:nth-child(2) { height: 38%; animation-delay: .1s; } .wf-rna span:nth-child(3) { height: 52%; animation-delay: .2s; }
.wf-rna span:nth-child(4) { height: 58%; animation-delay: .3s; } .wf-rna span:nth-child(5) { height: 48%; animation-delay: .4s; } .wf-rna span:nth-child(6) { height: 32%; animation-delay: .5s; }
.wf-rna span:nth-child(7) { height: 20%; animation-delay: .6s; } .wf-rna span:nth-child(8) { height: 30%; animation-delay: .7s; } .wf-rna span:nth-child(9) { height: 46%; animation-delay: .8s; }
.wf-rna span:nth-child(10) { height: 56%; animation-delay: .9s; } .wf-rna span:nth-child(11) { height: 50%; animation-delay: 1s; } .wf-rna span:nth-child(12) { height: 36%; animation-delay: 1.1s; } .wf-rna span:nth-child(13) { height: 24%; animation-delay: 1.2s; }
@keyframes wave { 50% { transform: scaleY(.55); opacity: .6; } }
.wf-cell::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1.5px solid var(--blue); background: rgba(29, 108, 174, .06); }
.wf-cell::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: rgba(29, 108, 174, .14); }
.wf-cell i { position: absolute; width: 9%; height: 9%; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(29, 108, 174, .16); animation: glow 2.4s var(--ease) infinite; }
.wf-cell i:nth-child(1) { left: 28%; top: 30%; } .wf-cell i:nth-child(2) { left: 62%; top: 26%; animation-delay: .4s; } .wf-cell i:nth-child(3) { left: 66%; top: 60%; animation-delay: .8s; }
.wf-cell i:nth-child(4) { left: 32%; top: 64%; animation-delay: 1.2s; background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 37, 196, .16); } .wf-cell i:nth-child(5) { left: 48%; top: 20%; animation-delay: 1.6s; background: var(--cyan); box-shadow: 0 0 0 4px rgba(22, 178, 212, .18); }
@keyframes glow { 50% { transform: scale(1.4); } }
.wf-plot i { position: absolute; width: 5px; height: 5px; margin: 0 0 -2px -2px; border-radius: 50%; background: var(--blue); opacity: .75; }
.wf-plot i.p { background: var(--violet); }
.wf-plot::before { content: ""; position: absolute; left: 12%; bottom: 12%; width: 1px; height: 76%; background: var(--ink-2); }
.wf-plot::after { content: ""; position: absolute; left: 12%; bottom: 12%; height: 1px; width: 76%; background: var(--ink-2); }
.wf-labels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wf-labels li { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2; }
.wf-labels .mono { color: var(--faint); font-weight: 400; }
.workflow .link { align-self: flex-start; font-weight: 600; }
.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; }
.features li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.features li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.features li:hover::after { transform: scaleX(1); }
.features .mono { color: var(--blue); padding-top: 6px; }
.features h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.025em; margin-bottom: 10px; }
.features p { margin: 0; color: var(--ink-2); }
@media (max-width: 960px) { .tech-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .wf-labels li { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .wf-rna span, .wf-cell i { animation: none; } }

.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.app-card .card-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.app-card .card-top span:last-child { color: var(--faint); }
.app-symbol { font-size: 2.6rem; line-height: 1; margin: 36px 0 24px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--plate); border: 1px solid var(--line); color: var(--blue); transition: transform .5s var(--ease); }
.app-card:nth-child(1) .app-symbol { color: var(--cyan); }
.app-card:nth-child(3) .app-symbol, .app-card:nth-child(4) .app-symbol { color: var(--violet); }
.app-card:nth-child(4) .card-top span:first-child { color: var(--violet); }
.app-card:nth-child(3) .card-top span:first-child { color: var(--violet); }
.app-card:hover .app-symbol { transform: rotate(18deg) scale(1.06); }
.app-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.025em; margin-bottom: 12px; }
.app-card p { color: var(--ink-2); margin: 0 0 24px; flex: 1; }
.app-card p:last-child { margin-bottom: 0; }
.app-card .link { align-self: flex-start; font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }

/* Cell & gene therapy spotlight */
.cgt { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.cgt-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.cgt-head .eyebrow { color: var(--violet); }
.cgt-head h3 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.035em; line-height: 1.02; }
.cgt-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.cgt-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; align-items: stretch; }
.cgt-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; }
.cgt-fig img { width: 100%; }
.cgt-fig figcaption { margin-top: 20px; }
.cgt-fig figcaption p { margin: 16px 0 0; color: var(--muted); font-size: .94rem; }
.cgt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cgt-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--paper); }
.cgt-stat strong { display: block; font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ink-2); letter-spacing: -.02em; }
.cgt-stat span { display: block; font-size: .82rem; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.cgt-stat--hi { background: linear-gradient(var(--plate), var(--plate)) padding-box, var(--grad) border-box; border-color: transparent; }
.cgt-stat--hi strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cgt-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cgt-points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: clamp(18px, 2.2vw, 24px); border-top: 1px solid var(--line); }
.cgt-points li:first-child { border-top: 0; }
.cgt-points .mono { color: var(--violet); padding-top: 3px; }
.cgt-points h4 { font-size: 1.08rem; margin-bottom: 6px; }
.cgt-points p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.cgt-compare { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
.cgt-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .94rem; }
.cgt-compare th, .cgt-compare td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); }
.cgt-compare thead th { border-top: 0; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.cgt-compare tbody th { font-weight: 600; color: var(--ink); }
.cgt-compare td { color: var(--ink-2); }
.cgt-compare .is-us { color: var(--blue); font-weight: 600; background: rgba(29, 108, 174, .05); }
.cgt-compare thead .is-us { color: var(--violet); background: rgba(139, 37, 196, .07); }
.cgt-note { margin-top: 16px; color: #fff; }
.cgt-note .sheet-doc__title { font-size: .8rem; }
@media (max-width: 960px) { .cgt-head, .cgt-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cgt-stats { grid-template-columns: 1fr; } }

/* Download form dialog */
html:has(dialog.gate[open]) { overflow: hidden; }
.gate { width: min(620px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.gate::backdrop { background: rgba(13, 26, 43, .62); backdrop-filter: blur(3px); }
.gate[open] { animation: panelIn .35s var(--ease); }
.gate-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
.gate-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--plate); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); z-index: 1; }
.gate-close:hover { border-color: var(--ink); color: var(--ink); }
.gate .eyebrow { color: var(--violet); margin-bottom: .8rem; }
.gate h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.025em; padding-right: 40px; margin-bottom: 10px; }
.gate-intro { color: var(--ink-2); margin: 0 0 22px; font-size: .96rem; }
.gate-intro .mono { display: block; margin-top: 4px; }
.gate .form-success .sheet-actions .link { color: var(--ink); }

.panel-k { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }

.micro { min-height: 380px; }
.micro .inner { align-items: flex-end; background: linear-gradient(0deg, rgba(13, 26, 43, .94) 25%, rgba(13, 26, 43, .6)); min-height: 380px; }
.micro h2 { margin: 16px 0 16px; }
.micro-p { color: rgba(255, 255, 255, .8); max-width: 52ch; margin: 0; font-size: 1.05rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.load-in > * { animation: loadIn 1s var(--ease) both; }
.load-in > *:nth-child(2) { animation-delay: .08s; }
.load-in > *:nth-child(3) { animation-delay: .16s; }
.load-in > *:nth-child(4) { animation-delay: .24s; }
.load-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes loadIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .form-card, .nav-toggle { display: none; }
  body::before { display: none; }
}
