:root {
  color-scheme: dark;
  --ink: #f7f9f2;
  --muted: #c8d2c2;
  --muted-2: #aebaa8;
  --night: #06130f;
  --night-2: #0a1d16;
  --surface: #0f271e;
  --surface-2: #153327;
  --surface-3: #1b3c2f;
  --line: #315244;
  --line-soft: rgba(209, 229, 216, .14);
  --lime: #b8e54b;
  --lime-2: #83c83e;
  --amber: #f0c56a;
  --coral: #ff9076;
  --paper: #f2f1e8;
  --paper-ink: #102219;
  --paper-muted: #43584c;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 87% 3%, rgba(89, 167, 72, .14), transparent 28rem),
    radial-gradient(circle at 7% 27%, rgba(67, 139, 104, .11), transparent 32rem),
    var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
::selection { background: var(--lime); color: var(--night); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--lime);
  color: var(--night);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-tight { padding: 58px 0; }
.section-paper { background: var(--paper); color: var(--paper-ink); }
.section-forest { background: linear-gradient(145deg, #0a2118, #102d21); }
.section-header { max-width: 760px; margin-bottom: 38px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.section-header p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-paper .section-header p { color: var(--paper-muted); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-paper .eyebrow { color: #3c7622; }
.scientific { color: var(--muted); font-family: Georgia, serif; font-style: italic; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(218, 233, 222, .12);
  background: rgba(6, 19, 15, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 10px; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid var(--lime);
  border-radius: 50%;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--lime); }
.brand-mark::before { width: 13px; height: 3px; left: 8px; top: 13px; box-shadow: 0 -7px 0 var(--lime), 0 7px 0 var(--lime); }
.brand-mark::after { width: 3px; height: 15px; left: 13px; top: 7px; box-shadow: 14px 21px 0 0 var(--lime); transform: rotate(-38deg); transform-origin: bottom; }
.brand-text { font-size: 1.23rem; font-weight: 860; letter-spacing: -.035em; }
.brand-text span { color: var(--lime); }
.site-nav { display: flex; align-items: center; margin-left: auto; gap: 4px; }
.site-nav a { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.header-action { flex: none; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--lime);
  border-radius: 10px;
  background: var(--lime);
  color: #07120e;
  font-size: .92rem;
  font-weight: 840;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); background: #c9f25c; }
.button-secondary { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.button-secondary:hover { background: var(--surface-3); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-quiet:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button[disabled] { cursor: not-allowed; opacity: .45; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; overflow: clip; padding: 88px 0 74px; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -18rem;
  height: 30rem;
  opacity: .22;
  background-image: linear-gradient(rgba(177, 224, 181, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(177, 224, 181, .12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, black 35%);
  transform: perspective(650px) rotateX(63deg);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 700px; margin: 0 0 22px; font-size: clamp(3.2rem, 6vw, 6.4rem); line-height: .93; letter-spacing: -.064em; }
.hero-copy h1 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.hero-copy > p { max-width: 640px; margin: 0 0 30px; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: "✓"; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #6da94a; border-radius: 50%; color: var(--lime); font-size: .75rem; }

.lab-shell {
  position: relative;
  border: 1px solid #406253;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(20, 51, 39, .98), rgba(8, 26, 19, .98));
  box-shadow: var(--shadow);
  transform: rotate(.7deg);
}
.lab-shell::before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid rgba(215, 237, 222, .1); border-radius: 17px; }
.lab-top { display: flex; align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.lab-top::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 16px 0 0 var(--amber), 32px 0 0 var(--coral); margin-right: 32px; }
.lab-body { padding: 26px; }
.lab-question { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.lab-question h2 { margin: 0; font-size: 1.38rem; }
.lab-question span { color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.mini-clue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-clue { min-height: 112px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 22, 17, .72); text-align: center; }
.mini-clue.active { border-color: var(--lime); background: rgba(102, 155, 64, .16); }
.mini-clue strong { display: block; margin-top: 9px; font-size: .77rem; }
.clue-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid #557469; border-radius: 50%; background: #102c21; color: var(--lime); }
.clue-icon::before { font-size: 1.25rem; line-height: 1; }
.clue-icon-droppings::before { content: "•••"; letter-spacing: 2px; transform: rotate(-18deg); }
.clue-icon-eggs::before { content: "◉"; }
.clue-icon-skins::before { content: "⌁"; font-size: 2rem; }
.clue-icon-frass::before { content: "∴"; font-size: 1.7rem; }
.clue-icon-holes::before { content: "⊙"; }
.clue-icon-stains::before { content: "◒"; }
.clue-icon-webs::before { content: "✳"; }
.clue-icon-damage::before { content: "⌁"; }
.clue-icon-odor::before { content: "≈"; font-size: 1.8rem; }
.clue-icon-sounds::before { content: "))"; font-family: var(--mono); }
.clue-icon-larvae::before { content: "∿"; font-size: 1.8rem; }
.clue-icon-wings::before { content: "⋈"; font-size: 1.8rem; }
.lab-progress { height: 5px; margin-top: 20px; border-radius: 99px; background: #294438; }
.lab-progress span { display: block; width: 48%; height: 100%; border-radius: inherit; background: var(--lime); }
.lab-note { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: .75rem; }

.metric-rail { border-block: 1px solid var(--line-soft); background: rgba(16, 42, 31, .66); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 28px 24px; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--lime); font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: .86rem; }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 18px; }
.feature-card { min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background-color: #0c2119;
  background-image: linear-gradient(145deg, #102a20, #0c2119); }
.feature-card.large { grid-row: span 2; min-height: 638px; }
.feature-card h3 { margin: 18px 0 10px; font-size: 1.45rem; line-height: 1.15; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-visual { position: relative; min-height: 190px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px; background: #071b14; }
.evidence-orbit { display: grid; width: 250px; height: 250px; place-items: center; margin: 38px auto 20px; border: 1px solid #365a49; border-radius: 50%; background: radial-gradient(circle, #173b2b 0 12%, transparent 13%), repeating-radial-gradient(circle, transparent 0 39px, rgba(178, 221, 184, .13) 40px 41px); }
.evidence-orbit::before { content: "CLUE"; color: var(--lime); font-family: var(--mono); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.evidence-orbit span { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--lime); font-size: .72rem; }
.evidence-orbit span:nth-child(1) { transform: translate(0,-124px); }
.evidence-orbit span:nth-child(2) { transform: translate(113px,-46px); }
.evidence-orbit span:nth-child(3) { transform: translate(76px,102px); }
.evidence-orbit span:nth-child(4) { transform: translate(-76px,102px); }
.evidence-orbit span:nth-child(5) { transform: translate(-113px,-46px); }
.specimen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.specimen { min-height: 150px; padding: 14px; border-radius: 10px; background-color: #d8d4c6; background-image: radial-gradient(#6e5a42 1.2px, transparent 1.5px), radial-gradient(#8a755b 1px, transparent 1.4px); background-position: 0 0, 9px 11px; background-size: 17px 17px, 21px 21px; color: #19291f; }
.specimen:nth-child(2) { background-image: radial-gradient(ellipse at center, #382c23 0 2px, transparent 2.5px), radial-gradient(#756047 1px, transparent 1.4px); background-size: 26px 15px, 19px 19px; }
.specimen strong { display: inline-block; padding: 4px 7px; border-radius: 6px; background: rgba(242, 241, 232, .88); font-size: .7rem; }
.room-map { position: relative; margin: 22px; height: 160px; border: 1px solid #5d7669; border-radius: 8px 8px 4px 4px; background: linear-gradient(135deg, #152d23, #0b1b15); }
.room-map::before { content: ""; position: absolute; width: 100px; height: 100px; left: 50%; top: -52px; border: 1px solid #5d7669; border-width: 1px 1px 0 0; transform: translateX(-50%) rotate(-45deg); background: #132b21; }
.room-map i { position: absolute; width: 12px; height: 12px; border: 3px solid var(--lime); border-radius: 50%; background: #122c21; box-shadow: 0 0 0 5px rgba(184,229,75,.1); }
.room-map i:nth-child(1) { left: 22%; top: 26%; }
.room-map i:nth-child(2) { left: 72%; top: 32%; }
.room-map i:nth-child(3) { left: 47%; top: 70%; }
.lock-visual { display: grid; min-height: 205px; place-items: center; }
.lock-visual span { display: grid; width: 100px; height: 86px; place-items: center; border-radius: 18px; background-color: var(--lime);
  background-image: linear-gradient(145deg, var(--lime), #5eaa35); color: #0a2116; font-size: 2.6rem; box-shadow: 0 0 60px rgba(132, 199, 67, .2); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background-color: #0a1e16;
  background-image: linear-gradient(145deg, rgba(19, 48, 36, .96), rgba(10, 30, 22, .96)); }
.card h2, .card h3 { margin: 6px 0 10px; line-height: 1.15; letter-spacing: -.025em; }
.card h2 { font-size: 1.35rem; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0 0 17px; color: var(--muted); }
.card:hover { border-color: #527863; }
.card-link { position: absolute; inset: 0; border-radius: inherit; }
.card > * { position: relative; z-index: 1; pointer-events: none; }
.card > a:not(.card-link) { pointer-events: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.risk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.risk-low { color: #b8de9b; }
.risk-low::before { background: #78b34b; }
.risk-medium { color: #f2cd7e; }
.risk-medium::before { background: var(--amber); }
.risk-high { color: #ffab98; }
.risk-high::before { background: var(--coral); }

.proof-band { padding: 70px 0; background: var(--lime); color: #091810; }
.proof-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 60px; }
.proof-grid h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: .98; letter-spacing: -.055em; }
.proof-grid p { margin: 0; max-width: 680px; color: #21371f; font-weight: 650; }
.proof-list { display: grid; gap: 12px; }
.proof-list span { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(16, 40, 22, .24); font-weight: 800; }
.proof-list span::before { content: "✓"; display: grid; width: 27px; height: 27px; flex: none; place-items: center; border: 2px solid #173d20; border-radius: 50%; }

.page-hero { padding: 70px 0 58px; border-bottom: 1px solid var(--line-soft); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 70px; }
.page-hero h1 { max-width: 830px; margin: 0 0 18px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.058em; }
.page-hero .lead { max-width: 780px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.page-meta { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.page-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0; }
.page-meta dt { color: var(--muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; }
.page-meta dd { margin: 0; text-align: right; font-weight: 750; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 28px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { color: #6e8177; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 58px; }
.prose { max-width: 780px; }
.prose h2 { margin: 54px 0 18px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
.prose h3 { margin: 34px 0 12px; font-size: 1.35rem; }
.prose p { color: var(--muted); }
.prose li { margin: 9px 0; color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { color: var(--lime); font-weight: 750; }
.sidebar { position: sticky; top: 104px; display: grid; gap: 16px; }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sidebar-card h2, .sidebar-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.sidebar-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.sidebar-card ul { margin: 0; padding-left: 18px; }
.sidebar-card li { margin: 8px 0; color: var(--muted); font-size: .88rem; }
.action-row { margin-top: 28px; }
.hero-actions-spaced { margin-top: 28px; }
.editorial-stamp { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 18px; margin: 42px 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(17, 43, 32, .72); }
.editorial-stamp div { display: grid; gap: 3px; }
.editorial-stamp strong { color: var(--ink); font-size: .78rem; }
.editorial-stamp span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.editorial-stamp a { white-space: nowrap; color: var(--lime); font-size: .78rem; font-weight: 800; text-decoration: none; }
.source-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.source-list li { margin: 0; }
.source-list a { display: block; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(17, 43, 32, .76); color: var(--ink); text-decoration: none; }
.source-list a:hover { border-color: var(--lime-2); }
.source-list small { display: block; margin-top: 4px; color: var(--muted); }

.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.fact-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.fact-card h3 { margin: 0 0 8px; font-size: 1rem; }
.fact-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.check-list, .x-list { padding: 0; list-style: none; }
.check-list li, .x-list li { position: relative; padding-left: 30px; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.check-list li::before { content: "✓"; color: var(--lime); }
.x-list li::before { content: "×"; color: var(--coral); }
.notice { margin: 28px 0; padding: 23px 24px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: rgba(240, 197, 106, .1); }
.notice strong { color: #ffdda0; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.safety-callout { padding: 24px; border: 1px solid rgba(255,144,118,.5); border-radius: 14px; background: rgba(109, 39, 28, .22); }
.safety-callout strong { color: #ffc0b1; }
.safety-callout p { margin: 6px 0 8px; color: var(--muted); }
.safety-callout a { color: #ffd0c4; font-weight: 800; }

.comparison-table { width: 100%; margin: 30px 0; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--surface-2); color: var(--ink); font-size: .82rem; }
.comparison-table td { color: var(--muted); }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td:first-child { color: var(--ink); font-weight: 780; }

.directory-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px 180px; gap: 12px; margin-bottom: 26px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .search-box input {
  min-height: 49px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b2018;
  color: var(--ink);
}
.field input::placeholder, .search-box input::placeholder { color: #94a58f; }
.directory-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.directory-empty { padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.search-box { max-width: 820px; margin: 28px 0; }
.search-box input { min-height: 62px; padding-inline: 20px; font-size: 1.08rem; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.search-result { min-height: 220px; }

.decoder-wrap { padding: 62px 0 100px; }
.decoder-shell { max-width: 1040px; margin-inline: auto; overflow: hidden; border: 1px solid #3d6050; border-radius: 24px; background: linear-gradient(145deg, #102c21, #081d16); box-shadow: var(--shadow); }
.decoder-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); }
.decoder-header p { margin: 0; color: var(--muted); font-size: .88rem; }
.decoder-progress { position: relative; height: 6px; background: #294438; }
.decoder-progress::after { content: ""; display: block; width: var(--progress, 16.6%); height: 100%; background: var(--lime); transition: width .25s ease; }
.decoder-body { padding: 42px 44px 32px; }
.decoder-question { max-width: 720px; margin-bottom: 28px; }
.decoder-question h2 { margin: 0 0 9px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; letter-spacing: -.045em; }
.decoder-question p:last-child { margin: 0; color: var(--muted); }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.option-button { display: grid; min-height: 138px; align-content: center; justify-items: start; gap: 8px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7, 24, 18, .75); color: var(--ink); text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.option-button:hover { transform: translateY(-2px); border-color: #658271; background: #112e22; }
.option-button.selected { border-color: var(--lime); background: rgba(118, 178, 66, .18); box-shadow: inset 0 0 0 1px var(--lime); }
.option-button strong { font-size: .96rem; line-height: 1.18; }
.option-button small { color: var(--muted); line-height: 1.35; }
.decoder-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 44px 40px; }
.decoder-controls .button:last-child { min-width: 150px; }
.results { padding: 40px 44px 48px; scroll-margin-top: 100px; }
.results-intro { max-width: 760px; margin-bottom: 30px; }
.results-intro h2 { margin: 0 0 10px; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.048em; }
.results-intro > p { color: var(--muted); }
.answer-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.answer-strip span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #0c241a; font-size: .78rem; }
.answer-strip small { display: block; color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-list { display: grid; gap: 15px; }
.result-card { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: rgba(8, 27, 20, .82); }
.result-card.leading { border-color: var(--lime-2); background-color: #0b2118;
  background-image: linear-gradient(145deg, rgba(55, 91, 44, .28), rgba(7, 25, 18, .94)); }
.result-rank { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.result-heading { display: flex; justify-content: space-between; gap: 20px; }
.result-heading h3 { margin: 0 0 3px; font-size: 1.5rem; }
.result-heading .scientific { margin: 0; font-size: .88rem; }
.fit-meter { min-width: 78px; text-align: right; }
.fit-meter strong { display: block; color: var(--lime); font-size: 1.55rem; line-height: 1; }
.fit-meter span { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.fit-bar { width: 100%; height: 5px; margin: 17px 0 20px; border: 0; border-radius: 99px; background: #2b443a; appearance: none; }
.fit-bar::-webkit-meter-bar { border: 0; border-radius: 99px; background: #2b443a; }
.fit-bar::-webkit-meter-optimum-value { border-radius: 99px; background: linear-gradient(90deg, #6faf3e, var(--lime)); }
.fit-bar::-moz-meter-bar { border-radius: 99px; background: linear-gradient(90deg, #6faf3e, var(--lime)); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reason-grid section { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(17, 46, 34, .54); }
.reason-grid h4 { margin: 0 0 7px; font-size: .78rem; }
.reason-grid p, .reason-grid li { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.reason-grid ul { margin: 0; padding-left: 17px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.result-actions .button { min-height: 40px; padding: 9px 13px; font-size: .78rem; }
.result-actions .text-link { font-size: .8rem; }
.results .safety-callout { margin-top: 20px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.source-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.source-chip::before { content: "↗"; color: var(--lime); }

.site-footer { padding: 62px 0 28px; border-top: 1px solid var(--line-soft); background: #05100d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .65fr); gap: 44px; }
.footer-brand p { max-width: 420px; color: var(--muted); }
.footer-nav h2 { margin: 0 0 14px; color: var(--ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-nav a { display: block; margin: 9px 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 77px 14px auto; display: none; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0a2118; box-shadow: var(--shadow); }
  .site-nav[data-open] { display: grid; }
  .site-nav a { padding: 13px 14px; }
  .nav-toggle { display: block; }
  .header-action { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 790px; }
  .lab-shell { max-width: 720px; transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.large { grid-row: auto; grid-column: 1 / -1; min-height: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .page-meta { max-width: 500px; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 68px; }
  .site-nav { top: 69px; }
  .brand-text { font-size: 1.05rem; }
  .hero { padding: 44px 0 50px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 14vw, 4.5rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; gap: 10px; }
  .lab-body { padding: 18px; }
  .mini-clue-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .feature-grid, .card-grid, .search-results, .fact-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: auto; }
  .proof-grid { grid-template-columns: 1fr; gap: 35px; }
  .page-hero { padding: 50px 0 42px; }
  .page-hero h1 { font-size: clamp(2.6rem, 14vw, 4.3rem); }
  .page-hero-grid { gap: 28px; }
  .directory-tools { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .comparison-table { display: block; overflow-x: auto; white-space: normal; }
  .editorial-stamp { grid-template-columns: 1fr; }
  .editorial-stamp a { white-space: normal; }
  .decoder-wrap { padding: 30px 0 68px; }
  .decoder-shell { border-radius: 17px; }
  .decoder-header { padding: 18px; }
  .decoder-body { padding: 28px 18px 20px; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .option-button { min-height: 125px; padding: 14px; }
  .option-button small { font-size: .7rem; }
  .decoder-controls { padding: 0 18px 25px; }
  .decoder-controls .button { min-width: 0; padding-inline: 14px; }
  .results { padding: 28px 18px 32px; }
  .result-card { grid-template-columns: 1fr; }
  .result-rank { display: none; }
  .reason-grid { grid-template-columns: 1fr; }
  .result-heading h3 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: grid; }
}

@media (max-width: 370px) {
  .option-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metric:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Explicit foreground/background pairs keep inherited section colors from crossing card surfaces. */
.card { color: var(--ink); }
.lab-progress span { color: var(--night); }

/* Any-two-candidate comparison workbench. */
.compare-workbench { border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(20, 51, 39, .34), transparent); }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 29, 21, .76); }
.compare-swap { min-width: 90px; margin-bottom: 1px; }
.custom-compare-output { margin-top: 28px; }
.compare-empty { padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.compare-summary { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 28px; align-items: end; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(145deg, #123428, #0a2018); }
.compare-summary h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.045em; }
.compare-summary h2 span { color: var(--lime); font-family: Georgia, serif; font-size: .7em; font-style: italic; font-weight: 400; }
.compare-summary p { margin: 0; color: var(--muted); }
.compare-link-state { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 19, 15, .62); }
.compare-link-state strong { color: var(--lime); }
.compare-link-state span { color: var(--muted); font-size: .82rem; }
.compare-shared { padding: 22px 28px; border: solid var(--line); border-width: 0 1px 1px; background: rgba(16, 42, 32, .72); }
.compare-shared h3 { margin: 0 0 12px; font-size: 1rem; }
.compare-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: solid var(--line); border-width: 0 1px; }
.compare-candidate { min-width: 0; padding: 28px; background: rgba(7, 25, 18, .72); }
.compare-candidate + .compare-candidate { border-left: 1px solid var(--line); }
.compare-candidate header h3 { margin: 12px 0 0; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.02; letter-spacing: -.035em; }
.compare-candidate header p { margin: 5px 0 0; }
.compare-signature { min-height: 78px; margin: 22px 0; color: var(--ink); font-size: 1.02rem; font-weight: 690; }
.compare-detail { min-height: 144px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.compare-detail h4 { margin: 0 0 10px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.compare-detail ul { margin: 0; padding-left: 19px; color: var(--muted); }
.compare-detail li + li { margin-top: 5px; }
.compare-conflict h4 { color: #ffc0b1; }
.compare-decision { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 28px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: rgba(240, 197, 106, .08); }
.compare-decision h3 { margin: 0; font-size: 1.35rem; line-height: 1.28; }
.compare-decision strong { color: #ffdda0; }
.compare-decision ol { margin-bottom: 0; padding-left: 20px; color: var(--muted); }
.compare-decision li + li { margin-top: 10px; }
.compare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.compare-profile-link { margin-top: 16px; font-size: .84rem; }

@media (max-width: 880px) {
  .compare-controls { grid-template-columns: 1fr 1fr; }
  .compare-swap { grid-row: 2; }
  .compare-controls > .button:last-child { grid-row: 2; }
  .compare-summary, .compare-decision { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .compare-controls, .compare-split { grid-template-columns: 1fr; }
  .compare-swap, .compare-controls > .button:last-child { grid-row: auto; width: 100%; }
  .compare-candidate + .compare-candidate { border-top: 1px solid var(--line); border-left: 0; }
  .compare-summary, .compare-shared, .compare-candidate, .compare-decision { padding: 21px; }
  .compare-signature, .compare-detail { min-height: 0; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .page-hero, .decoder-header, .decoder-progress, .share-actions, .skip-link { display: none !important; }
  .decoder-wrap, .results { padding: 0 !important; }
  .decoder-shell { max-width: none; border: 0; box-shadow: none; background: #fff; }
  .result-card, .results-intro, .safety-callout { break-inside: avoid; border-color: #999; background: #fff !important; color: #111 !important; }
  .result-card *, .results-intro *, .safety-callout * { color: #111 !important; }
}

/* Keep the first decision screen focused: three full explanations, two compact alternatives. */
.lower-matches { margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: rgba(7, 24, 18, .56); }
.lower-matches summary { padding: 16px 18px; cursor: pointer; color: var(--ink); font-weight: 760; list-style-position: inside; }
.lower-matches summary:hover { background: rgba(183, 235, 75, .06); }
.lower-match-list { display: grid; border-top: 1px solid var(--line-soft); }
.lower-match { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.lower-match + .lower-match { border-top: 1px solid var(--line-soft); }
.lower-match:hover { background: rgba(183, 235, 75, .06); }
.lower-match span:nth-child(2) { display: grid; gap: 2px; }
.lower-match small { color: var(--muted); font-family: Georgia, serif; font-style: italic; }
.lower-match b { color: var(--lime); font-size: 1.1rem; }

@media (max-width: 560px) {
  .lower-match { grid-template-columns: 30px minmax(0, 1fr) auto; padding-inline: 14px; }
}

/* On small screens, decision tools should reach the first control without an oversized editorial prelude. */
@media (max-width: 700px) {
  .tool-page .page-hero { padding: 32px 0 28px; }
  .tool-page .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .tool-page .page-hero .lead { font-size: 1rem; line-height: 1.55; }
  .tool-page .page-hero-grid { gap: 20px; }
  .tool-page .page-meta { padding: 15px; }
  .tool-page .page-meta div { min-height: 0; }
}

@media (max-width: 700px) {
  .tool-page .breadcrumbs { margin-bottom: 16px; }
  .tool-page .page-hero h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 10vw, 2.85rem); line-height: 1; }
  .tool-page .page-hero .lead { font-size: .96rem; line-height: 1.5; }
  .tool-page .page-meta { display: none; }
  .tool-page .compare-workbench { padding-top: 34px; }
  .tool-page .compare-workbench .section-header { margin-bottom: 22px; }
  .tool-page .compare-workbench .section-header h2 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .tool-page .compare-workbench .section-header p { font-size: .96rem; }
}
