:root {
  color-scheme: light;
  --lab-bg: #FAF7F2;
  --lab-bg-deep: #FAF7F2;
  --lab-text: #514D48;
  --lab-muted: #514D48;
  --lab-faint: #69625B;
  --lab-accent: #5d17ea;
  --lab-border: #DDD7CE;
  --lab-shell: 1000px;
  --lab-reading: 1000px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--lab-shell), calc(100% - 48px));
  margin: 0 auto;
}

.reading-column {
  max-width: var(--lab-reading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--lab-border);
  background: var(--lab-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  position: relative;
  width: min(var(--lab-shell), calc(100% - 48px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
  color: #302D2A;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 28px);
  color: var(--lab-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-header--home .site-nav {
  left: auto;
  right: 0;
  transform: none;
}

.site-nav a {
  padding: 8px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #5d17ea;
}

.hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--lab-border);
  background: var(--lab-bg-deep);
}

.hero__field {
  position: absolute;
  inset: 0;
  background-image:
    url("/assets/img/research-field.svg?v=ivory-blue-20260919");
  background-position: center;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.hero__copy {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  color: #302D2A;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero__thesis {
  margin: 20px 0 0;
  color: #302D2A;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero__identity {
  max-width: 680px;
  margin: 12px 0 0;
  color: #514D48;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--lab-border);
  opacity: 1;
  visibility: visible;
  transition: none;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lab-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 26px;
  color: #302D2A;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.prose-block {
  max-width: 820px;
}

.prose-block p {
  margin: 0 0 18px;
  color: #514D48;
  font-size: 16px;
  line-height: 1.6;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.research-questions {
  border-top: 1px solid var(--lab-border);
}

.research-question {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--lab-border);
}

.question-number {
  margin: 0 0 10px;
  color: var(--lab-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-question h3 {
  max-width: 820px;
  margin: 0 0 20px;
  color: #302D2A;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.research-question h4 {
  margin: 25px 0 9px;
  color: #302D2A;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.research-question > p:not(.question-number),
.research-question li {
  max-width: 830px;
  color: var(--lab-muted);
  font-size: 15px;
  line-height: 1.7;
}

.research-question > p:not(.question-number) {
  margin: 13px 0 0;
}

.research-question ul {
  max-width: 830px;
  margin: 14px 0 0;
  padding-left: 21px;
}

.research-question li {
  margin: 5px 0;
  padding-left: 5px;
}

.research-question .research-criterion {
  margin-top: 20px;
  color: #514D48;
}

.research-criterion strong {
  color: #302D2A;
  font-weight: 600;
}

.research-question .causal-sequence,
.research-question .semantic-bridge {
  margin: 18px 0;
  color: #302D2A;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.research-question .inline-enumeration {
  color: #514D48;
}

.research-list {
  border-top: 1px solid var(--lab-border);
}

.research-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.35fr);
  gap: 36px;
  padding: 24px 0;
  border-bottom: 1px solid var(--lab-border);
}

.research-item h3 {
  margin: 0;
  color: #302D2A;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.research-item p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.6;
}

.research-item .research-detail {
  margin-top: 9px;
  color: var(--lab-faint);
  font-size: 14px;
}

.research-closing {
  margin: 28px 0 0;
  color: #514D48;
  font-size: 16px;
  line-height: 1.6;
}

.section--blog,
.section--notes {
  background: #FAF7F2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--compact {
  align-items: center;
}

.section-heading--compact .eyebrow {
  margin-bottom: 0;
}

.text-link,
.site-footer a {
  text-decoration-color: #8b5cff;
  text-underline-offset: 4px;
}

.text-link {
  margin-bottom: 3px;
  color: var(--lab-muted);
  font-size: 13px;
}

.text-link--inline {
  margin: 0;
  color: #514D48;
  font-size: inherit;
}

.notes-list {
  border-top: 1px solid var(--lab-border);
}

.notes-list--empty {
  border-bottom: 1px solid var(--lab-border);
}

.notes-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--lab-faint);
  font-size: 14px;
  line-height: 1.6;
}

.note {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lab-border);
  text-decoration: none;
}

.note time {
  color: var(--lab-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.note strong {
  color: #302D2A;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.note__body > span {
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.6;
}

.note:hover strong,
.note:focus-visible strong {
  color: #5d17ea;
}

.site-footer {
  padding: 38px 0;
  background: var(--lab-bg-deep);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--lab-muted);
  font-size: 13px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.contact-line span {
  color: var(--lab-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line a {
  color: #514D48;
}

.site-footer__meta {
  text-align: right;
}

.site-footer__meta p {
  margin: 0 0 3px;
}

.page-intro {
  padding: 88px 0 54px;
  border-bottom: 1px solid var(--lab-border);
  background: var(--lab-bg)
    url("/assets/img/research-field.svg?v=ivory-blue-20260919") center / cover;
}

.page-intro h1 {
  max-width: 840px;
  margin: 0 0 14px;
  color: #302D2A;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-intro p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
}

.page-intro--program {
  padding-bottom: 64px;
}

.external-reference {
  margin: 30px 0 0;
  color: var(--lab-faint);
  font-size: 14px;
  line-height: 1.6;
}

.blog-index {
  padding: 0 0 70px;
}

.blog-entry {
  padding: 52px 0;
  border-bottom: 1px solid var(--lab-border);
  scroll-margin-top: 90px;
}

.blog-entry time {
  display: block;
  margin-bottom: 10px;
  color: var(--lab-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-entry h2 {
  margin: 0 0 13px;
  color: #302D2A;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-entry p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-entry .blog-entry__summary {
  color: #514D48;
  font-weight: 600;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 120px;
  }

  .site-header__inner {
    min-height: 52px;
    padding: 0;
    align-items: center;
    flex-direction: row;
    gap: 0;
  }

  .brand {
    display: none;
  }

  .site-nav {
    width: auto;
    justify-content: center;
    gap: 3px 12px;
    overflow: visible;
    padding: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .hero,
  .hero__inner {
    min-height: 340px;
  }

  .hero__thesis {
    font-size: 21px;
  }

  .section {
    padding: 60px 0;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 0;
  }

  .research-question {
    padding: 31px 0 35px;
  }

  .research-question h3 {
    font-size: 19px;
  }

  .note__body {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 22px;
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .shell,
  .site-header__inner {
    width: min(100% - 32px, var(--lab-shell));
  }

  .note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accommodate the supplied brand lockup without changing the site palette or type. */
.brand img {
  display: block;
  width: 250px;
  height: auto;
}

.site-nav {
  left: auto;
  right: 0;
  transform: none;
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }

  .brand {
    display: block;
  }

  .brand img {
    width: 200px;
  }

  .site-nav,
  .site-header--home .site-nav {
    position: static;
    transform: none;
  }
}

/* Keep keyboard navigation visible on the ivory surface. */
a:focus-visible {
  outline: 2px solid var(--lab-accent);
  outline-offset: 4px;
}

.newsletter { border-top: 1px solid var(--lab-border, #ddd5ca); }
.newsletter form { margin-top: 24px; }
.newsletter label { display: block; margin-bottom: 8px; }
.newsletter__row { display: flex; gap: 12px; align-items: stretch; }
.newsletter input[type="email"], .newsletter input[name="organization"], .newsletter input[name="name"] { min-width: 0; flex: 1; padding: 12px; border: 1px solid #8c8276; border-radius: 4px; background: #fffdf9; color: #302d2a; font: inherit; }
.newsletter button { padding: 12px 18px; border: 0; border-radius: 4px; background: #5d17ea; color: #fff; font: inherit; cursor: pointer; }
.newsletter button:disabled { opacity: .65; cursor: default; }
.newsletter :is(button,input,summary):focus-visible { outline: 2px solid #5d17ea; outline-offset: 4px; }
.newsletter__small { font-size: .85rem; line-height: 1.65; margin-top: 16px; }
.newsletter summary { cursor: pointer; }
.newsletter__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.newsletter fieldset { border: 1px solid #b6aca0; padding: 20px; margin-top: 20px; }
.newsletter fieldset[hidden] { display: none; }
.newsletter fieldset label { padding: 8px 0; }
.newsletter input[type="checkbox"] { width: 18px; height: 18px; accent-color: #5d17ea; vertical-align: middle; }
@media (max-width: 560px) { .newsletter__row { flex-direction: column; } }

.newsletter input[name="organization"], .newsletter input[name="name"] { display: block; box-sizing: border-box; width: 100%; margin-bottom: 16px; }

/* The outer disclosure is compact; privacy keeps its own native summary. */
.section.newsletter { padding-top: 28px; padding-bottom: 28px; }
.newsletter__summary { list-style: none; padding: 8px 0; }
.newsletter__summary::-webkit-details-marker { display: none; }
.newsletter__summary h2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.newsletter__action { font-size: 1rem; font-weight: 500; color: #5d17ea; white-space: nowrap; }
.newsletter__close { display: none; }
.newsletter__disclosure[open] > .newsletter__summary .newsletter__subscribe { display: none; }
.newsletter__disclosure[open] > .newsletter__summary .newsletter__close { display: inline; }
.newsletter__content { padding-top: 20px; }
@media (max-width: 560px) {
  .newsletter__summary h2 { flex-wrap: wrap; gap: 8px 16px; }
}

/* Founder presentation stays scoped to the homepage identity block. */
#founder .founder__name { font-size: 1.65rem; font-weight: 600; line-height: 1.3; color: var(--lab-text); }
#founder .founder__external { display: inline-block; vertical-align: -.1em; margin-left: .15em; }

/* Research map: scoped to the research page, with native independent disclosures. */
.research-map__intro { padding-top: 32px; }
.research-map__intro h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.2; font-weight: 600; color: #302d2a; }
.research-map__nav { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 14px; }
.research-map__nav a { color: #5d17ea; }
.research-page .section--overview { padding: 32px 0; }
.research-page .section--research { padding: 24px 0; }
.research-page #writing { padding: 40px 0 48px; }
.research-map__question { border-bottom: 1px solid var(--lab-border); }
.research-map__summary { position: relative; padding: 14px 100px 14px 0; list-style: none; cursor: pointer; }
.research-map__summary::-webkit-details-marker { display: none; }
.research-map__summary h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.35; font-weight: 600; color: #302d2a; }
.research-map__number { color: #5d17ea; white-space: nowrap; }
.research-map__description { display: block; color: #514d48; font-size: 13px; line-height: 1.45; }
.research-map__action { position: absolute; top: 17px; right: 0; color: #5d17ea; font-size: 13px; white-space: nowrap; }
.research-map__close { display: none; }
.research-map__question[open] > summary .research-map__explore { display: none; }
.research-map__question[open] > summary .research-map__close { display: inline; }
.research-map__question > .research-question { border: 0; padding: 0 0 28px; }
.research-map__summary:focus-visible { outline: 2px solid #5d17ea; outline-offset: 4px; }
.research-map__writing-intro { font-size: 16px; line-height: 1.6; }
.research-page :is(#overview,#research-questions,#writing,.research-map__question) { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .research-map__summary { padding: 16px 0; }
  .research-map__summary h3 { font-size: 16px; }
  .research-map__action { display: block; position: static; margin-top: 8px; }
}
