/* The Emerging Human Lab: institutional site stylesheet.
   Loaded ONLY by the institutional pages (index.html, /lab/, /research/, /experiments/, /publications/, /collaborate/).
   Never loaded by the assessment, results, thank-you, or report pages. Every rule is scoped under body.lab. */

body.lab {
  --paper: #eef0eb;
  --paper-deep: #e2e6df;
  --ink: #1b2420;
  --muted: #56615b;
  --rule: #c5ccc3;
  --moss: #34503f;
  --ochre: #8a5f17;
  --plum: #2b1d28;
  --plum-ink: #f1e6ec;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lab *, body.lab *::before, body.lab *::after { box-sizing: border-box; }
body.lab img { max-width: 100%; height: auto; }
body.lab a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
body.lab a:hover { color: var(--ink); }
body.lab :focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
body.lab h1, body.lab h2, body.lab h3 { font-weight: 400; margin: 0; text-wrap: balance; }
body.lab p { margin: 0 0 1em; }
body.lab ul, body.lab ol { margin: 0; padding: 0; list-style: none; }
body.lab cite { font-style: italic; }

body.lab .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-family: var(--sans); font-size: 0.9rem; z-index: 10; }
body.lab .skip:focus { left: 8px; }
body.lab .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Masthead */
body.lab .masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
body.lab .masthead-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
body.lab .wordmark { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
body.lab .wordmark-the { font-style: italic; color: var(--muted); }
body.lab .site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--sans); font-size: 0.875rem; }
body.lab .site-nav ul { display: flex; gap: 22px; }
body.lab .site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
body.lab .site-nav a:hover { border-bottom-color: var(--ink); }
body.lab .site-nav a[aria-current="page"] { border-bottom-color: var(--moss); color: var(--moss); }
body.lab .site-nav .nav-assessment { border: 1px solid var(--plum); color: var(--plum); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
body.lab .site-nav .nav-assessment:hover { background: var(--plum); color: var(--plum-ink); }
body.lab .nav-toggle { display: none; font: 500 0.875rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Buttons and links */
body.lab .button { display: inline-block; font: 500 0.95rem var(--sans); text-decoration: none; background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 2px; border: 1px solid var(--ink); }
body.lab .button:hover { background: var(--moss); border-color: var(--moss); color: var(--paper); }
body.lab .button-quiet { background: transparent; color: var(--ink); }
body.lab .button-quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.lab .button-light { background: var(--plum-ink); color: var(--plum); border-color: var(--plum-ink); }
body.lab .button-light:hover { background: #fff; border-color: #fff; color: var(--plum); }
body.lab .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 1.75em; }
body.lab .text-link { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; display: inline-block; margin-top: 0.5em; }

/* Hero: the one loud moment */
body.lab .hero { border-bottom: 1px solid var(--rule); }
body.lab .hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vw, 128px) var(--gutter) clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
body.lab .hero-kicker { grid-column: 1 / -1; font: 500 0.9rem var(--sans); color: var(--muted); margin-bottom: 2.5rem; }
body.lab .hero-title { grid-column: 1 / -1; font-size: clamp(3rem, 7.8vw, 7.5rem); line-height: 0.94; letter-spacing: -0.035em; font-weight: 300; font-variation-settings: "opsz" 72; }
body.lab .hero-line { display: block; }
body.lab .hero-line-turn { padding-left: 16.66%; font-style: italic; font-weight: 300; color: var(--moss); }
body.lab .hero-text { grid-column: 7 / span 6; margin-top: clamp(40px, 6vw, 72px); max-width: 34em; }
body.lab .hero-text p:first-child { font-size: 1.25rem; }

/* Central inquiry */
body.lab .inquiry { background: var(--ink); color: var(--paper); }
body.lab .inquiry-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
body.lab .inquiry-label { grid-column: 1 / span 4; font: 500 0.9rem/1.5 var(--sans); color: #a9b5ad; padding-top: 0.6em; }
body.lab .inquiry-question { grid-column: 5 / span 8; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.2em; }
body.lab .inquiry-text { grid-column: 5 / span 7; color: #d6ddd7; }
body.lab .inquiry-subquestions { margin: 1.5em 0; border-top: 1px solid #3a4741; }
body.lab .inquiry-subquestions li { padding: 0.9em 0; border-bottom: 1px solid #3a4741; font-style: italic; color: var(--paper); }

/* Bands: label column + body column */
body.lab .band { border-bottom: 1px solid var(--rule); }
body.lab .band-tint { background: var(--paper-deep); }
body.lab .band-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
body.lab .band-label { grid-column: 1 / span 3; font: 600 0.9rem/1.5 var(--sans); color: var(--ink); padding-top: 0.35em; margin-bottom: 1.5rem; }
body.lab .band-body { grid-column: 4 / span 9; min-width: 0; }
body.lab .band-body > p, body.lab .band-body > ul:not(.initiative-grid):not(.pub-list):not(.pathways), body.lab .founder { max-width: 38em; }
body.lab .band-intro { color: var(--muted); }
body.lab .lede { font-size: 1.4rem; line-height: 1.45; }
body.lab .pull { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0.6em 0; }
body.lab .litany li { font-size: 1.35rem; line-height: 1.5; color: var(--muted); }
body.lab .litany { margin-bottom: 1.2em; }

/* Domain list (home) */
body.lab .domain-list { border-top: 1px solid var(--ink); }
body.lab .domain-row { display: grid; grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; align-items: baseline; }
body.lab .domain-row:hover .domain-name { color: var(--moss); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
body.lab .domain-num { font: 500 0.85rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
body.lab .domain-name { font-size: 1.45rem; line-height: 1.2; }
body.lab .domain-summary { color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

/* Initiatives */
body.lab .initiative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
body.lab .initiative { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--rule); }
body.lab .initiative:nth-child(2n) { padding: 26px 0 30px 28px; border-left: 1px solid var(--rule); }
body.lab .initiative h3 { font-size: 1.6rem; line-height: 1.15; margin: 0.55em 0 0.45em; letter-spacing: -0.01em; }
body.lab .initiative p { font-size: 1.02rem; line-height: 1.55; color: #36413b; margin-bottom: 0.6em; }
body.lab .initiative-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font: 500 0.8rem var(--sans); color: var(--muted); }
body.lab .initiative-domain { display: block; font: 0.85rem var(--sans); color: var(--muted); }
body.lab .initiative-live h3 { color: var(--plum); }
body.lab .status { font: 600 0.72rem var(--sans); letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; }
body.lab .status-live { color: var(--plum); background: #f3e9ef; }
body.lab .status-forthcoming { color: var(--ochre); }
body.lab .status-proposed { color: var(--muted); border-style: dashed; }
body.lab .status-paused { color: var(--plum); border-style: dashed; }

/* Publications */
body.lab .pub-list { border-top: 1px solid var(--ink); }
body.lab .pub { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: 24px; }
body.lab .pub-meta { grid-row: 1 / span 2; font: 0.85rem/1.6 var(--sans); color: var(--muted); }
body.lab .pub-domain { display: block; }
body.lab .pub h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.35em; }
body.lab .pub h3 a { color: var(--ink); text-decoration: none; }
body.lab .pub h3 a:hover { color: var(--moss); text-decoration: underline; }
body.lab .pub p:last-child { font-size: 1.02rem; color: #36413b; margin: 0; max-width: 36em; }
body.lab .cat-desc { color: var(--muted); }
body.lab .cat-empty { font-style: italic; color: var(--muted); }
body.lab .toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2rem; font: 0.9rem var(--sans); }
body.lab .toc-count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Pathways */
body.lab .pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
body.lab .pathway { padding: 20px 0 24px; border-top: 1px solid var(--ink); }
body.lab .pathway h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
body.lab .pathway p { font-size: 1.02rem; color: #36413b; margin-bottom: 0.3em; }

/* Inner page heads */
body.lab .page-head { border-bottom: 1px solid var(--rule); }
body.lab .page-head-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(40px, 6vw, 72px); }
body.lab .crumb { font: 500 0.88rem var(--sans); color: var(--muted); margin-bottom: 1.6rem; }
body.lab .crumb a { color: var(--muted); }
body.lab .page-head h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 300; max-width: 15em; }
body.lab .page-lede { font-size: 1.3rem; line-height: 1.5; max-width: 34em; margin-top: 1.6rem; color: #36413b; }

/* Research index */
body.lab .domain-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--ink); }
body.lab .domain-card { grid-column: span 2; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
body.lab .domain-card:nth-child(3n) { border-right: 0; }
body.lab .domain-card:nth-child(4), body.lab .domain-card:nth-child(5) { grid-column: span 3; }
body.lab .domain-card:nth-child(5) { border-right: 0; }
body.lab .domain-card a { display: block; height: 100%; padding: 26px 24px 30px; color: var(--ink); text-decoration: none; }
body.lab .domain-card a:hover { background: var(--paper-deep); }
body.lab .domain-card h2 { font-size: 1.65rem; line-height: 1.15; margin: 0.6em 0 0.5em; }
body.lab .domain-card p { font-size: 1rem; color: #36413b; line-height: 1.55; }
body.lab .domain-counts { font: 0.85rem var(--sans); color: var(--muted) !important; margin: 0; }
body.lab .question-list li { font-size: 1.35rem; line-height: 1.35; padding: 0.7em 0; border-bottom: 1px solid var(--rule); font-style: italic; }
body.lab .question-list li:first-child { border-top: 1px solid var(--ink); }
body.lab .next-link { padding-top: 32px; padding-bottom: 56px; font: 500 0.95rem var(--sans); }

/* Method list, founder */
body.lab .method-list { columns: 2; column-gap: 32px; margin: 1em 0 1.4em; }
body.lab .method-list li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 1.05rem; }
body.lab .founder-name { font-size: 2rem; line-height: 1.1; margin-bottom: 0.2em; }
body.lab .founder-role { font: 500 0.9rem var(--sans); color: var(--muted); margin-bottom: 1.4em; }
body.lab .inline-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 0.9rem var(--sans); }

/* Experiments */
body.lab .experiment-list { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: clamp(40px, 6vw, 72px) 0; }
body.lab .experiment > a { display: block; height: 100%; background: var(--plum); color: var(--plum-ink); text-decoration: none; padding: clamp(28px, 4vw, 48px); border-radius: 2px; }
body.lab .experiment > a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
body.lab .experiment-num { font: 500 0.88rem var(--sans); opacity: 0.8; }
body.lab .experiment h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0.5em 0; letter-spacing: -0.02em; }
body.lab .experiment p { max-width: 30em; }
body.lab .experiment-foot { display: flex; align-items: center; gap: 16px; margin-top: 1.5em; }
body.lab .experiment .text-link { color: var(--plum-ink); margin: 0; }
body.lab .experiment-empty { border: 1px dashed var(--rule); padding: clamp(28px, 4vw, 40px); color: var(--muted); font-size: 1.02rem; }
body.lab .experiment-empty .experiment-num { display: block; margin-bottom: 1em; }

/* Experiment 001 anteroom: echoes the assessment's own palette */
body.lab .anteroom { background: var(--plum); color: var(--plum-ink); }
body.lab .anteroom-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter); }
body.lab .anteroom .crumb, body.lab .anteroom .crumb a { color: #c9b5c1; }
body.lab .anteroom h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 300; max-width: 12em; }
body.lab .anteroom-sub { font-size: 1.4rem; font-style: italic; margin-top: 1.2rem; max-width: 30em; }
body.lab .anteroom-facts { font: 0.9rem var(--sans); color: #c9b5c1; }
body.lab .anteroom-close .anteroom-inner { padding-top: 56px; padding-bottom: 64px; }
body.lab .dimensions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4em 0 1.4em; }
body.lab .dimensions li { font-size: 1.3rem; padding: 6px 16px; border: 1px solid var(--ink); border-radius: 999px; }

/* Colophon */
body.lab .colophon { background: var(--ink); color: #c4ccc6; font: 0.92rem/1.6 var(--sans); }
body.lab .colophon-inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
body.lab .colophon-name { font: 1.35rem var(--serif); color: var(--paper); margin-bottom: 0.4em; }
body.lab .colophon-id p:last-child { max-width: 26em; }
body.lab .colophon-links li { padding: 3px 0; }
body.lab .colophon a { color: #e3e8e4; text-decoration: none; }
body.lab .colophon a:hover { text-decoration: underline; color: #fff; }
body.lab .colophon-legal { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 32px; color: #8c978f; font-size: 0.82rem; }

/* Responsive */
@media (max-width: 1080px) {
  body.lab .site-nav ul { gap: 16px; }
  body.lab .site-nav { gap: 18px; }
}
@media (max-width: 960px) {
  body.lab .nav-toggle { display: inline-block; }
  body.lab .masthead-inner { flex-wrap: wrap; }
  body.lab .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 12px; }
  body.lab .site-nav.is-open { display: flex; }
  body.lab .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  body.lab .site-nav ul a { display: block; padding: 10px 0; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  body.lab .hero-text { grid-column: 3 / -1; }
  body.lab .inquiry-label, body.lab .inquiry-question, body.lab .inquiry-text { grid-column: 1 / -1; }
  body.lab .inquiry-label { margin-bottom: 1.5rem; }
  body.lab .band-label, body.lab .band-body { grid-column: 1 / -1; }
  body.lab .domain-cards { grid-template-columns: 1fr 1fr; }
  body.lab .domain-card, body.lab .domain-card:nth-child(4), body.lab .domain-card:nth-child(5) { grid-column: span 1; border-right: 1px solid var(--rule); }
  body.lab .domain-card:nth-child(2n) { border-right: 0; }
  body.lab .domain-card:nth-child(5) { grid-column: span 2; border-right: 0; }
  body.lab .experiment-list { grid-template-columns: 1fr; }
  body.lab .colophon-inner { grid-template-columns: 1fr 1fr; }
  body.lab .colophon-id { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body.lab { font-size: 1.0625rem; }
  body.lab .wordmark { font-size: 1.08rem; }
  body.lab .hero-line-turn { padding-left: 0; }
  body.lab .hero-text { grid-column: 1 / -1; }
  body.lab .hero-kicker { margin-bottom: 1.5rem; }
  body.lab .domain-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  body.lab .domain-summary { grid-column: 2; }
  body.lab .initiative-grid, body.lab .pathways { grid-template-columns: 1fr; }
  body.lab .initiative, body.lab .initiative:nth-child(2n) { padding: 22px 0 24px; border-left: 0; }
  body.lab .pub { grid-template-columns: 1fr; }
  body.lab .pub-meta { grid-row: auto; margin-bottom: 0.3em; }
  body.lab .pub-domain { display: inline; }
  body.lab .pub-domain::before { content: ", "; }
  body.lab .domain-cards { grid-template-columns: 1fr; }
  body.lab .domain-card, body.lab .domain-card:nth-child(n) { grid-column: auto; border-right: 0; }
  body.lab .method-list { columns: 1; }
  body.lab .lede { font-size: 1.22rem; }
  body.lab .colophon-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.lab * { transition: none !important; animation: none !important; }
}
body.lab .anteroom .status, body.lab .experiment .status { color: var(--plum-ink); background: transparent; }

/* Contact form */
body.lab .contact-form { max-width: 40em; margin-top: 1.5em; }
body.lab .contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
body.lab .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
body.lab .field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
body.lab .field label { font: 500 0.88rem var(--sans); color: var(--ink); }
body.lab .field .optional { color: var(--muted); font-weight: 400; }
body.lab .field input, body.lab .field select, body.lab .field textarea { font: 1rem/1.5 var(--sans); color: var(--ink); background: #fbfcfa; border: 1px solid #a9b2a8; border-radius: 2px; padding: 11px 12px; width: 100%; }
body.lab .field textarea { resize: vertical; min-height: 9em; }
body.lab .field input:focus, body.lab .field select:focus, body.lab .field textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: var(--moss); }
body.lab .contact-form .button { cursor: pointer; }
@media (max-width: 640px) { body.lab .field-row { grid-template-columns: 1fr; } }
