/* SwarmHarm: dark artwork-led opening, warm editorial research sections.
   One font family; no animated effects or product-dashboard styling. */
:root {
  color-scheme: light;
  --bg: #f8f4eb;
  --text: #2c2519;
  --muted: #544d41;
  --line: #d0cbc1;
  --accent: #a94024;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font);
  --mono: var(--font);
}
* { box-sizing: border-box; }
button, input, select, textarea { font-family: var(--font); }
code, pre, kbd, samp, svg text { font-family: var(--font); }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.18; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.1vw, 38px); text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow, .rq-label { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.eyebrow { color: var(--muted); margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
::selection { background: var(--accent); color: var(--bg); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; }
.nav-inner nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16.5px; font-weight: 500; color: var(--muted); }
.nav-inner nav a:hover { color: var(--text); }
.status { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--muted); }
.status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* The approved swarm artwork is the visual signature, not a product card. */
.hero-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; padding-block: 44px; }
.hero-copy, .hero-art { min-width: 0; }
.hero-copy h1 { font-size: clamp(56px, 6.5vw, 88px); letter-spacing: -0.04em; line-height: 1.1; }
.hero-tagline { font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin-top: 22px; }
.hero-tagline span { color: var(--accent); }
.hero-description { max-width: 49ch; color: var(--muted); margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; margin-top: 24px; padding: 8px 0; font-size: 16.5px; font-weight: 600; line-height: 1.5; color: var(--text); border-bottom: 1px solid var(--accent); }
.button:hover { color: var(--accent); }
.hero-art img { width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1; object-fit: contain; }

/* An editorial surface distinguishes the research page from a product page. */
.section {
  color-scheme: light;
  --bg: #2c2519;
  --text: #dcd7ce;
  --muted: #a59f95;
  --line: #453f32;
  --accent: #d67c64;
  padding-block: 52px;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.section-heading { margin-bottom: 32px; }
.section-heading > p { max-width: 68ch; margin-top: 14px; color: var(--muted); }
.numbered-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 15px; align-items: start; }
.section-number { color: var(--accent); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; padding-top: 7px; }
.numbered-heading > p { grid-column: 2; }
.heading-continuation { display: block; margin-top: 9px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.4; font-weight: 400; letter-spacing: -.01em; }

/* Open research rows, not a set of sales or dashboard cards. */
.research-grid { border-top: 1px solid var(--line); }
.rq-card { display: grid; grid-template-columns: 56px minmax(220px, 0.9fr) minmax(0, 1.2fr); gap: 28px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.rq-card > * { min-width: 0; }
.rq-label { color: var(--accent); padding-top: 5px; font-weight: 600; }
.rq-card p { color: var(--muted); max-width: 62ch; }

/* Plain, high-contrast comparison table. */
.table-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.protocol-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.protocol-table th:nth-child(1) { width: 23%; }
.protocol-table th:nth-child(2) { width: 28%; }
.protocol-table th:nth-child(3) { width: 49%; }
.protocol-table thead th { padding: 16px 20px; font-size: 16.5px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.protocol-table td, .protocol-table tbody th { padding: 22px 20px; vertical-align: top; border-top: 1px solid var(--line); }
.protocol-table tbody th { font-size: 17px; font-weight: 600; }
.protocol-table tr > :first-child { padding-left: 0; }
.protocol-table tr > :last-child { padding-right: 0; }
.protocol-table td { color: var(--muted); }
.side-channel > th { color: var(--accent); }
.protocol-notes { max-width: 80ch; margin-top: 24px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.protocol-notes p + p { margin-top: 12px; }

/* Quiet footer, retaining project status and attribution. */
.site-footer { padding-block: 30px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top .brand { font-size: 22px; }
.back-top { font-size: 16.5px; color: var(--muted); }
.back-top { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; color: var(--muted); }
.footer-bottom p:last-child { width: 100%; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero-layout { gap: 32px; }
  .status { display: none; }
  .rq-card { grid-template-columns: 48px minmax(205px, 0.9fr) minmax(0, 1.2fr); gap: 24px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .nav-inner { min-height: 72px; gap: 20px; }
  .nav-inner nav { gap: 20px; }
  .brand { font-size: 21px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); padding-block: 44px; gap: 28px; }
  .hero-copy h1 { font-size: clamp(52px, 10vw, 78px); }
  .hero-tagline { font-size: 34px; }
  .hero-art { width: 100%; max-width: 280px; justify-self: center; }
  .section { padding-block: 52px; }
  .rq-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 22px; padding-block: 26px; }
  .rq-card p { grid-column: 2; }
  .footer-top { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 126px; }
  .nav-inner { flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 2px; }
  .nav-inner > .brand { min-height: 40px; }
  .nav-inner nav { justify-content: space-between; width: 100%; margin-left: 0; gap: 8px; }
  .nav-inner nav a { font-size: 16px; }
  .hero-layout { padding-block: 36px; gap: 24px; }
  .hero-tagline { font-size: 30px; }
  .eyebrow { margin-bottom: 20px; }
  .section { padding-block: 44px; }
  .section-heading { margin-bottom: 24px; }
  .numbered-heading { grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; }
  .rq-card { grid-template-columns: minmax(0, 1fr); gap: 10px; scroll-margin-top: 132px; }
  .rq-label { padding: 0; }
  .rq-card p { grid-column: 1; }
  .table-wrap { overflow-x: auto; }
  .protocol-table, .protocol-table tbody, .protocol-table tr, .protocol-table td, .protocol-table tbody th { display: block; width: 100%; }
  .protocol-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .protocol-table tbody th:nth-child(1) { width: 100%; padding: 20px 0 12px; border-top: 0; }
  .protocol-table td { padding: 0 0 16px; border-top: 0; }
  .protocol-table td:last-child { padding-bottom: 22px; }
  .protocol-table tr + tr { border-top: 1px solid var(--line); }
  .protocol-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--text); }
  .footer-top { gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .nav-inner nav { gap: 4px; }
  .nav-inner nav a { font-size: 15px; }
  .hero-copy h1 { font-size: 50px; }
  .hero-tagline { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root, .section { color-scheme: light; --bg: #fff; --text: #111; --muted: #444; --line: #bbb; --accent: #a7341b; }
  .site-header { position: static; }
  .nav-inner nav, .status, .button, .back-top { display: none; }
  .container { width: 100%; }
  .hero-layout { padding-block: 20px; }
  .section { padding-block: 26px; }
  .rq-card, tr { break-inside: avoid; }
}
